Skip to content

Added support for pages without titles specified in mkdocs.yml - #20

Open
twardoch wants to merge 21 commits into
jgrassler:masterfrom
twardoch:2017-01-07-pagesnotitles
Open

Added support for pages without titles specified in mkdocs.yml#20
twardoch wants to merge 21 commits into
jgrassler:masterfrom
twardoch:2017-01-07-pagesnotitles

Conversation

@twardoch

@twardoch twardoch commented Jan 7, 2017

Copy link
Copy Markdown

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.

pfossati and others added 21 commits February 27, 2016 12:00
Allow mkdocs-pandoc to support structured pages. For example, the following pages structure

```yaml
pages:
  - Section 1: section-1.md
  - Section 2:
    - Section 2.1: section-2/section-2-1.md
    - Section 2.2: section-2/section-2-2.md
```

will become

> # Section 1
>
> section-1.md content ...
>
> # Section 2
>
> # Section 2.1
>
> section-2/section-2-1.md content
>
> # Section 2.2
>
> section-2/section-2-2.md content
Remove extra added header # symbol
Allow mkdocs-pandoc to support structured pages
Added a filter to convert mathematical expressions
@twardoch

twardoch commented Jan 7, 2017

Copy link
Copy Markdown
Author

Sorry, looks like I've messed up a bit with this PR, and it actually also includes changes from:

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

Successfully merging this pull request may close these issues.

3 participants