Skip to content

Commit

Permalink
docs enumerate headers
Browse files Browse the repository at this point in the history
  • Loading branch information
milesstoetzner committed Jun 25, 2023
1 parent f9d8555 commit 345af55
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
40 changes: 40 additions & 0 deletions docs/docs/assets/stylesheets/enumerate-headers.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
body {
counter-reset: h2
}

h2 {
counter-reset: h3
}

h3 {
counter-reset: h4
}

h4 {
counter-reset: h5
}

h5 {
counter-reset: h6
}


h2:before {
counter-increment: h2;
content: counter(h2) ". "
}

h3:before {
counter-increment: h3;
content: counter(h2) "." counter(h3) ". "
}

h4:before {
counter-increment: h4;
content: counter(h2) "." counter(h3) "." counter(h4) ". "
}

h5:before {
counter-increment: h4;
content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) ". "
}
1 change: 1 addition & 0 deletions docs/mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ extra_css:
- assets/stylesheets/extra.css
- assets/stylesheets/typeset.css
- assets/stylesheets/asciinema-player.css
- assets/stylesheets/enumerate-headers.css

extra_javascript:
- assets/javascripts/tablesort.min.js
Expand Down

0 comments on commit 345af55

Please sign in to comment.