Skip to content

[feat] add sub-chapter support in sidebar #290

Description

@deathbymanatee

by sub chapters i mean something like the following (ss taken from mdBook documentation site):

Image

this idea could possibly work by adding a sub_chapters key under sidebar, and by allowing decimals in the position value under sidebar.matches, like so:

[sidebar]
number_special_files = true
numbered = true
ordering = "custom"
sub_chapters = true

[[sidebar.matches]]
new_title = "Configuration"
path = "configuring.md"
position = 4

[[sidebar.matches]]
new_title = "Session Management"
path = "session-management.md"
position = 4.1

apologies if this is a supported feature already, but i did not see any mention of this in the documentation nor in any previous issues

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions