-
-
Notifications
You must be signed in to change notification settings - Fork 27
Description
Hi there,
Assuming I've understood 2.7.0 changes correctly, it creates a neat TOC structure based on the navigation structure in the yaml file but it no longer uses markdown headings (like ##
, ###
, within a page as 1.1, 1.1.1, etc). If I've got this wrong, please correct me! Side point but related is I'm confused on how the demo print page is supposed to look (e.g. the 4. Demo Content has numbered headings underneath but this isn't shown on the TOC).
Unfortunately, this change directly conflicts with our usage, which is to convert the single site into a pdf book (much like word doc to pdf) output for customers (and, yes we would like to get away from this). We convert a mkdocs site into a pdf book based on a flat navigation structure (i.e. no nesting), and use the headings for the TOC depth (using some post-processing scripts/DOM manipulation to populate page numbers, etc). For us, this allows a predictable formatting and numbering (so e.g. ###
heading is always 1.1.1 and always heading 3 font size), which each markdown file being a chapter/nav item in the book. We think the trade-off of not allowing nested structure and having a larger markdown file is best way of achieving this. However, with 2.7.2 we only see the very top level #
heading in the TOC unlike 2.6.0.
Hope this explanation is clear but please ask clarification questions. I'm unclear whether the intention is to continue supporting our type of usage, whether it was overlooked and is intended to be supported, or if I've missed something obvious and my understanding is wrong.
Thanks,
Mark