File tree 3 files changed +57
-4
lines changed
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 4
4
" markdown_extensions " :
5
5
- " pymdownx.highlight"
6
6
- " pymdownx.superfences"
7
+ - " mdx_truly_sane_lists " :
8
+ " nested_indent " : 2
9
+ " truly_sane " : true
7
10
" plugins " :
8
11
- " search " :
9
- " indexing " : " titles"
10
- " min_search_length " : 2
11
- " prebuild_index " : true
12
12
" separator " : " [\\ s\\ -\\ .]+"
13
13
- " minify " :
14
14
" minify_html " : true
17
17
" site_name " : " actions-runner-controller jsonnet library"
18
18
" site_url " : " https://jsonnet-libs.github.io/actions-runner-controller-libsonnet"
19
19
" theme " :
20
+ " features " :
21
+ - " navigation.tabs"
22
+ - " navigation.indexes"
20
23
" name " : " material"
21
24
" palette " :
22
25
- " accent " : " indigo"
Original file line number Diff line number Diff line change @@ -9,3 +9,6 @@ mkdocs-minify-plugin>=0.3
9
9
10
10
# Include the theme
11
11
mkdocs-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