/* Enumerate level 2 headings of CHAPTERS, that are part of an original included page Only displayed when set in mkdocs.yml: print-site: - enumerate_headings: true - enumerate_headings_depth: 2 # or more */ .print-site-enumerate-headings .print-page h3:before { counter-increment: sub-section; content: counter(chapter) "." counter(section) "." counter(sub-section) " " !important; } /* Enumerate level 2 headings of SECTIONS, that are part of an original included page Only displayed when set in mkdocs.yml: print-site: - enumerate_headings: true - enumerate_headings_depth: 2 # or more */ .print-site-enumerate-headings h3.nav-section-title:before { counter-increment: sec-sub-section; content: counter(sec-top, upper-roman) "." counter(sec-section, upper-roman) "." counter(sec-sub-section, upper-roman) " " !important; } /* Enumerate CHAPTERS in table of contents also */ .print-site-enumerate-headings .print-site-toc-level-3 > li a:before { counter-increment: toc-sub-section; content: counter(toc-chapter) "." counter(toc-section) "." counter(toc-sub-section) " "; } /* Enumerate SECTIONS in table of contents also */ .print-site-enumerate-headings li.toc-nav-section-title-level-3:before { counter-increment: toc-sec-sub-section; content: counter(toc-sec-chapter, upper-roman) "." counter(toc-sec-section, upper-roman) "." counter(toc-sec-sub-section, upper-roman) " "; }