
/* 
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 h6:before {
    counter-increment: last;
    content: counter(chapter) "." counter(section) "." counter(sub-section) "." counter(composite) "." counter(detail) "." counter(last) " " !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 h6.nav-section-title:before {
    counter-increment: sec-last;
    content: counter(sec-top, upper-roman) "." counter(sec-section, upper-roman) "." counter(sec-sub-section, upper-roman) "." counter(sec-composite, upper-roman) "." counter(sec-detail, upper-roman) "." counter(sec-last, upper-roman) " " !important;
}


/* Enumerate CHAPTERS in table of contents also */

.print-site-enumerate-headings .print-site-toc-level-6 > li a:before {
    counter-increment: toc-last;
    content: counter(toc-chapter) "." counter(toc-section) "." counter(toc-sub-section) "." counter(toc-composite) "." counter(toc-detail) "." counter(toc-last) " ";
}

/* Enumerate SECTIONS in table of contents also */

.print-site-enumerate-headings li.toc-nav-section-title-level-6:before {
    counter-increment: toc-sec-last;
    content: counter(toc-sec-chapter, upper-roman) "." counter(toc-sec-section, upper-roman) "." counter(toc-sec-sub-section, upper-roman) "." counter(toc-sec-composite, upper-roman) "." counter(toc-sec-detail, upper-roman) "." counter(toc-last, upper-roman) " ";
}

