File tree Expand file tree Collapse file tree 3 files changed +57
-4
lines changed Expand file tree Collapse file tree 3 files changed +57
-4
lines changed Original file line number Diff line number Diff line change 1- .md-nav__link : first-letter { text-transform : lowercase; }
1+ /* Menu */
2+ /* Decapitalize menu items, Mkdocs capilizes by default and can't be configured */
3+ nav nav .md-nav__link .md-ellipsis ::first-letter { text-transform : lowercase }
4+
5+ /* TOC */
6+ /* Don't wrap TOC links with spaces */
7+ .md-sidebar--secondary .md-nav__item { white-space : nowrap }
8+ /* Scroll horizontal to make them accessible */
9+ .md-sidebar--secondary .md-sidebar__scrollwrap { overflow-x : auto }
10+
11+ /* Code */
12+ /* Make codeblocks stand out */
13+ .md-typeset pre > code { border-left : 0.2rem solid var (--md-accent-fg-color ) }
14+
15+ /* Headings */
16+ /* Hide headings for functions but don't remove them, they function as deeplink targets */
17+ h2 [id ^= "fn-" ],
18+ h3 [id ^= "fn-" ],
19+ h4 [id ^= "fn-" ],
20+ h5 [id ^= "fn-" ],
21+ h6 [id ^= "fn-" ],
22+ h7 [id ^= "fn-" ],
23+ h8 [id ^= "fn-" ],
24+ h9 [id ^= "fn-" ] {
25+ visibility : hidden;
26+ width : 0 ;
27+ height : 0 ;
28+ padding : 0 ;
29+ margin : 0 ;
30+ }
31+
32+ /* Parameters */
33+ /* Format 'PARAMETERS' after highlight (div.highlight) */
34+ /* Match first paragraph (p) but only if it is followed by an unsorted list (ul) */
35+ article .md-content__inner .md-typeset div .highlight + p : has (+ ul ) {
36+ padding-left : 1em ;
37+ margin-top : 0 ;
38+ margin-bottom : 0 ;
39+ }
40+ /* Match first unsorted list (ul) after paragraph (p) */
41+ article .md-content__inner .md-typeset div .highlight + p + ul {
42+ padding-left : 1em ;
43+ margin-top : 0 ;
44+ }
45+ article .md-content__inner .md-typeset div .highlight + p + ul li {
46+ margin-top : 0 ;
47+ margin-bottom : 0 ;
48+ }
Original file line number Diff line number Diff line change 44" markdown_extensions " :
55 - " pymdownx.highlight"
66 - " pymdownx.superfences"
7+ - " mdx_truly_sane_lists " :
8+ " nested_indent " : 2
9+ " truly_sane " : true
710" plugins " :
811 - " search " :
9- " indexing " : " titles"
10- " min_search_length " : 2
11- " prebuild_index " : true
1212 " separator " : " [\\ s\\ -\\ .]+"
1313 - " minify " :
1414 " minify_html " : true
1717" site_name " : " kube-prometheus jsonnet library"
1818" site_url " : " https://jsonnet-libs.github.io/kube-prometheus-libsonnet"
1919" theme " :
20+ " features " :
21+ - " navigation.tabs"
22+ - " navigation.indexes"
2023 " name " : " material"
2124 " palette " :
2225 - " accent " : " indigo"
Original file line number Diff line number Diff line change @@ -9,3 +9,6 @@ mkdocs-minify-plugin>=0.3
99
1010# Include the theme
1111mkdocs-material >= 7.1.6
12+
13+ # Deal with list indent of 2 spaces
14+ mdx-truly-sane-lists >= 1.3
You can’t perform that action at this time.
0 commit comments