Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using 'inheritHeadingDepth: True' in MkDocs config #17

Closed
mollieswenson opened this issue May 17, 2019 · 2 comments
Closed

Using 'inheritHeadingDepth: True' in MkDocs config #17

mollieswenson opened this issue May 17, 2019 · 2 comments

Comments

@mollieswenson
Copy link

I have the markdown-include extension working with MkDocs, but when I try to add the inheritHeadingDepth: True config value, I get an error. I'm guessing I just don't have the config syntax right. Can anyone advise? Thanks :)

From my mkdocs.yml

markdown_extensions:
    - markdown_include.include:
        base_path: docs
        inheritHeadingDepth: True

Config instructions: https://github.com/cmacmackin/markdown-include#configuration
I have tried formatting the YML several different ways with no luck.

Debug says:

DEBUG   -  Config value: 'markdown_extensions' = [{}, u'extra', u'admonition', {}, u'sane_lists']

And the error:

ERROR   -  Config value: 'markdown_extensions'. Error: inheritHeadingDepth
[E 190516 17:55:31 ioloop:801] Exception in callback <bound method type.poll_tasks of <class 'livereload.handlers.LiveReloadHandler'>>
    Traceback (most recent call last):
      File "c:\python27\lib\site-packages\tornado\ioloop.py", line 1229, in _run
        return self.callback()
      File "c:\python27\lib\site-packages\livereload\handlers.py", line 67, in poll_tasks
        filepath, delay = cls.watcher.examine()
      File "c:\python27\lib\site-packages\livereload\watcher.py", line 73, in examine
        func and func()
      File "c:\python27\lib\site-packages\mkdocs\commands\serve.py", line 107, in builder
        site_dir=site_dir
      File "c:\python27\lib\site-packages\mkdocs\config\base.py", line 210, in load_config
        "Aborted with {0} Configuration Errors!".format(len(errors))
    ConfigurationError: Aborted with 1 Configuration Errors!
@jobbyworld
Copy link

Same problem but fixed,
It Seems the pip version is not up to date
pip install git+https://github.com/cmacmackin/markdown-include.git

@cmacmackin
Copy link
Owner

This fix is included in v0.6.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants