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

pages -> nav #29

Open
charlesreid1 opened this issue Aug 4, 2018 · 1 comment
Open

pages -> nav #29

charlesreid1 opened this issue Aug 4, 2018 · 1 comment

Comments

@charlesreid1
Copy link

In mkdocs.yml, the pages: directive is being deprecated in favor of the nav: directive. This means that eventually mkdocs-pandoc will not work with functional mkdocs.yml files.

Here's the error you will see if you use nav: (as per mkdocs spec) instead of pages::

$ mkdocs2pandoc > mydocs.pd
Traceback (most recent call last):
  File "/Users/charles/davis/dahak/dahak-comparison/vp/bin/mkdocs2pandoc", line 11, in <module>
    sys.exit(main())
  File "/Users/charles/davis/dahak/dahak-comparison/vp/lib/python3.6/site-packages/mkdocs_pandoc/cli/mkdocs2pandoc.py", line 80, in main
    for line in pconv.convert():
  File "/Users/charles/davis/dahak/dahak-comparison/vp/lib/python3.6/site-packages/mkdocs_pandoc/pandoc_converter.py", line 103, in convert
    pages = self.flatten_pages(self.config['pages'])
KeyError: 'pages'
@catcosmo
Copy link

catcosmo commented Nov 8, 2018

fixed for mkdocs >1.0.4 in this pull-request:
#30

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

2 participants