mkdocs-pandoc
mkdocs-pandoc copied to clipboard
Added support for pages without titles specified in mkdocs.yml
MkDocs accepts the site structure without explicit page titles, with just filenames, as in:
pages:
- index.md
- Release-Notes.md
- Table-of-Contents.md
- Basic Concepts:
- Font.md
- Font-families.md
- Font-formats.md
- Font-Project.md
MkDocs will then infer the page title from the filename using mkdocs.utils.filename_to_title(page)
. This PR adds support for the same handling into mkdocs2pandoc.
Sorry, looks like I've messed up a bit with this PR, and it actually also includes changes from:
- https://github.com/jgrassler/mkdocs-pandoc/pull/14
- https://github.com/jgrassler/mkdocs-pandoc/pull/15
- https://github.com/jgrassler/mkdocs-pandoc/pull/21 I'm still learning. But I think these commits are all good and useful.