/* 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 h2:before { counter-increment: section; content: counter(chapter) "." counter(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 h2.nav-section-title:before { counter-increment: sec-section; content: counter(sec-top, upper-roman) "." counter(sec-section, upper-roman) " " !important; } /* Enumerate CHAPTERS in table of contents also */ .print-site-enumerate-headings .print-site-toc-level-2 > li a:before { counter-increment: toc-section; content: counter(toc-chapter) "." counter(toc-section) " "; } /* Enumerate SECTIONS in table of contents also */ .print-site-enumerate-headings li.toc-nav-section-title-level-2:before { counter-increment: toc-sec-section; content: counter(toc-sec-chapter, upper-roman) "." counter(toc-sec-section, upper-roman) " "; }