mprivat / mkdocs-snippet-plugin

An mkdocs plugin that injects snippets from a file in a git repository
MIT License
12 stars 3 forks source link

Trying to load the plugin ends with error #1

Closed Maddimax closed 5 years ago

Maddimax commented 5 years ago

INFO - Building documentation... ERROR - Config value: 'markdown_extensions'. Error: Failed to initiate extension 'snippet': module 'snippet' has no attribute 'makeExtension'

mkdocs version is 1.0.4, python is 3.7

mprivat commented 5 years ago

That's probably because you're defining it under markdownExtensions in mkdocs.yml. It needs to be under plugins:

plugins:
    - snippet:
          base_path: docs

INFO - Building documentation... ERROR - Config value: 'markdown_extensions'. Error: Failed to initiate extension 'snippet': module 'snippet' has no attribute 'makeExtension'

mkdocs version is 1.0.4, python is 3.7