Skip to content

Appearance of code block headings in the navigation sidebar #31

Answered by pawamoy
NikosAlexandris asked this question in Q&A
Discussion options

You must be logged in to vote

Good investigation 😄

mkdocstrings now offers this feature (symbol types in headings and in the table of contents) for free (previously it was an Insiders feature), but the navigation is built using the gen_ref_nav.py script, as you mention. Since mkdocstrings has zero control over which files are created, or their names, this feature (adding symbol types to the navigation) cannot be exposed, neither through mkdocstrings, nor markdown-exec.

If you want to add these symbols to your own navigation, you can follow what I do in gen_ref_nav.py (look for mod_symbol). I'm afraid there's no clean way to add such symbols in physical pages (non-generated ones) without mkdocs-literate-nav.

In the fut…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@NikosAlexandris
Comment options

@pawamoy
Comment options

Answer selected by NikosAlexandris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #30 on January 12, 2024 14:38.