Repository navigation
Adds a AnchorLink.level property - #1272
funkyfuture wants to merge 1 commit into
Conversation
|
Hmm, so this adds a Regardless, this would need to have some tests. Also, it should be against the 1.0.dev branch. Finally, as this would be a 1.0 feature, the template specific setting (in the associated Material PR) may want to take advantage of the new template settings implemented in #1201, |
in general i tend to keep the logic in templates at a minimum and rather pass rich context objects. imo this is easier to read in the templates. also, all theme developers and users can easily access this information w/o implementing a logic for it. it's obviously simply implemented and maintainable on the Python side. thanks for the other hints. |
|
Add some tests and I'll give this another look. |
|
a test is added. the fails are caused by missing interpreters. |
This allows themes to restrict the toc to a certain depth.
This relimplements mkdocs#1272 on the current code in master. Thanks to @funkyfuture for the original work on this. Also removes some unused code after mkdocs#1504. Closes mkdocs#1272.
This relimplements #1272 on the current code in master. Thanks to @funkyfuture for the original work on this. Also removes some unused code after #1504. Closes #1272.
this allows themes to restrict the toc to a certain depth.
here's a proof-of-concept: squidfunk/mkdocs-material#450