Skip to content

Sub-number pages within sections #34

@mfoulds

Description

@mfoulds

Thanks for this great plug-in, and for mkdocs-print-site-plugin.

Is there a way to give sections a number, and then treat subsidiary pages as sub-pages? For example, if we had this nav structure:

nav
  - "Section 1":
    - 'Page 1.1': 'section1_page_1.md'
    - 'Page 1.2': 'section1_page_2.md'
  - "Section 2":
    - 'Page 2.1': 'section1_page_1.md'
    - 'Page 2.2': 'section1_page_2.md'
    - "Subsection 2.3":
      - "Page 2.3.1": "subsection_2.3.1_page.md"

Currently, Page 1.1 will be numbered as 1, Page 2.2 numbered as 4, etc. "Page 2.3.1" will be numbered as 4.1.

I couldn't find a way to treat sections as numbers, and the pages as subsections, as per the names shown in the example above. If there's no current option, is it a common enough use case to warrant an enhancement?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions