mkdocs-carbon 2.0.2__tar.gz → 2.0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mkdocs_carbon-2.0.2 → mkdocs_carbon-2.0.3}/PKG-INFO +1 -1
- mkdocs_carbon-2.0.3/mkdocs_carbon_theme/toc.html.j2 +66 -0
- {mkdocs_carbon-2.0.2 → mkdocs_carbon-2.0.3}/pyproject.toml +1 -1
- mkdocs_carbon-2.0.2/mkdocs_carbon_theme/toc.html.j2 +0 -42
- {mkdocs_carbon-2.0.2 → mkdocs_carbon-2.0.3}/.gitignore +0 -0
- {mkdocs_carbon-2.0.2 → mkdocs_carbon-2.0.3}/README.md +0 -0
- {mkdocs_carbon-2.0.2 → mkdocs_carbon-2.0.3}/mkdocs_carbon_theme/__init__.py +0 -0
- {mkdocs_carbon-2.0.2 → mkdocs_carbon-2.0.3}/mkdocs_carbon_theme/base.html.j2 +0 -0
- {mkdocs_carbon-2.0.2 → mkdocs_carbon-2.0.3}/mkdocs_carbon_theme/breadcrumbs.html.j2 +0 -0
- {mkdocs_carbon-2.0.2 → mkdocs_carbon-2.0.3}/mkdocs_carbon_theme/css/theme.css +0 -0
- {mkdocs_carbon-2.0.2 → mkdocs_carbon-2.0.3}/mkdocs_carbon_theme/fonts/ibmplexmono-light.ttf +0 -0
- {mkdocs_carbon-2.0.2 → mkdocs_carbon-2.0.3}/mkdocs_carbon_theme/fonts/ibmplexsans-light.ttf +0 -0
- {mkdocs_carbon-2.0.2 → mkdocs_carbon-2.0.3}/mkdocs_carbon_theme/js/theme.js +0 -0
- {mkdocs_carbon-2.0.2 → mkdocs_carbon-2.0.3}/mkdocs_carbon_theme/main.html +0 -0
- {mkdocs_carbon-2.0.2 → mkdocs_carbon-2.0.3}/mkdocs_carbon_theme/mkdocs_theme.yml +0 -0
- {mkdocs_carbon-2.0.2 → mkdocs_carbon-2.0.3}/mkdocs_carbon_theme/nav-footer.html.j2 +0 -0
- {mkdocs_carbon-2.0.2 → mkdocs_carbon-2.0.3}/mkdocs_carbon_theme/nav.html.j2 +0 -0
- {mkdocs_carbon-2.0.2 → mkdocs_carbon-2.0.3}/mkdocs_carbon_theme/search.html +0 -0
- {mkdocs_carbon-2.0.2 → mkdocs_carbon-2.0.3}/mkdocs_carbon_theme/theme-toggle.html.j2 +0 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{%- if page and page.toc and page.toc.items %}
|
|
2
|
+
<nav class="md-sidebar md-sidebar--secondary" aria-label="Table of contents">
|
|
3
|
+
<div class="md-sidebar__scrollwrap">
|
|
4
|
+
<div class="md-sidebar__inner">
|
|
5
|
+
<div class="md-toc">
|
|
6
|
+
<div class="md-toc__title">On this page</div>
|
|
7
|
+
<ul class="md-toc__list">
|
|
8
|
+
{%- set skip_h1 = page.toc.items | length == 1 and page.toc.items[0].children %}
|
|
9
|
+
{%- if skip_h1 %}
|
|
10
|
+
{#- Single H1 with children: show H2s as root items -#}
|
|
11
|
+
{%- for toc_item_2 in page.toc.items[0].children %}
|
|
12
|
+
<li class="md-toc__item">
|
|
13
|
+
<a href="{{ toc_item_2.url }}" class="md-toc__link" data-md-level="1">
|
|
14
|
+
{{ toc_item_2.title }}
|
|
15
|
+
</a>
|
|
16
|
+
{%- if toc_item_2.children %}
|
|
17
|
+
<ul class="md-toc__list">
|
|
18
|
+
{%- for toc_item_3 in toc_item_2.children %}
|
|
19
|
+
<li class="md-toc__item">
|
|
20
|
+
<a href="{{ toc_item_3.url }}" class="md-toc__link" data-md-level="2">
|
|
21
|
+
{{ toc_item_3.title }}
|
|
22
|
+
</a>
|
|
23
|
+
</li>
|
|
24
|
+
{%- endfor %}
|
|
25
|
+
</ul>
|
|
26
|
+
{%- endif %}
|
|
27
|
+
</li>
|
|
28
|
+
{%- endfor %}
|
|
29
|
+
{%- else %}
|
|
30
|
+
{#- Multiple H1s or no children: show normal structure -#}
|
|
31
|
+
{%- for toc_item in page.toc.items %}
|
|
32
|
+
<li class="md-toc__item">
|
|
33
|
+
<a href="{{ toc_item.url }}" class="md-toc__link" data-md-level="1">
|
|
34
|
+
{{ toc_item.title }}
|
|
35
|
+
</a>
|
|
36
|
+
{%- if toc_item.children %}
|
|
37
|
+
<ul class="md-toc__list">
|
|
38
|
+
{%- for toc_item_2 in toc_item.children %}
|
|
39
|
+
<li class="md-toc__item">
|
|
40
|
+
<a href="{{ toc_item_2.url }}" class="md-toc__link" data-md-level="2">
|
|
41
|
+
{{ toc_item_2.title }}
|
|
42
|
+
</a>
|
|
43
|
+
{%- if toc_item_2.children %}
|
|
44
|
+
<ul class="md-toc__list">
|
|
45
|
+
{%- for toc_item_3 in toc_item_2.children %}
|
|
46
|
+
<li class="md-toc__item">
|
|
47
|
+
<a href="{{ toc_item_3.url }}" class="md-toc__link" data-md-level="3">
|
|
48
|
+
{{ toc_item_3.title }}
|
|
49
|
+
</a>
|
|
50
|
+
</li>
|
|
51
|
+
{%- endfor %}
|
|
52
|
+
</ul>
|
|
53
|
+
{%- endif %}
|
|
54
|
+
</li>
|
|
55
|
+
{%- endfor %}
|
|
56
|
+
</ul>
|
|
57
|
+
{%- endif %}
|
|
58
|
+
</li>
|
|
59
|
+
{%- endfor %}
|
|
60
|
+
{%- endif %}
|
|
61
|
+
</ul>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
</nav>
|
|
66
|
+
{%- endif %}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{%- if page and page.toc and page.toc.items %}
|
|
2
|
-
<nav class="md-sidebar md-sidebar--secondary" aria-label="Table of contents">
|
|
3
|
-
<div class="md-sidebar__scrollwrap">
|
|
4
|
-
<div class="md-sidebar__inner">
|
|
5
|
-
<div class="md-toc">
|
|
6
|
-
<div class="md-toc__title">On this page</div>
|
|
7
|
-
<ul class="md-toc__list">
|
|
8
|
-
{%- for toc_item in page.toc.items %}
|
|
9
|
-
<li class="md-toc__item">
|
|
10
|
-
<a href="{{ toc_item.url }}" class="md-toc__link" data-md-level="1">
|
|
11
|
-
{{ toc_item.title }}
|
|
12
|
-
</a>
|
|
13
|
-
{%- if toc_item.children %}
|
|
14
|
-
<ul class="md-toc__list">
|
|
15
|
-
{%- for toc_item_2 in toc_item.children %}
|
|
16
|
-
<li class="md-toc__item">
|
|
17
|
-
<a href="{{ toc_item_2.url }}" class="md-toc__link" data-md-level="2">
|
|
18
|
-
{{ toc_item_2.title }}
|
|
19
|
-
</a>
|
|
20
|
-
{%- if toc_item_2.children %}
|
|
21
|
-
<ul class="md-toc__list">
|
|
22
|
-
{%- for toc_item_3 in toc_item_2.children %}
|
|
23
|
-
<li class="md-toc__item">
|
|
24
|
-
<a href="{{ toc_item_3.url }}" class="md-toc__link" data-md-level="3">
|
|
25
|
-
{{ toc_item_3.title }}
|
|
26
|
-
</a>
|
|
27
|
-
</li>
|
|
28
|
-
{%- endfor %}
|
|
29
|
-
</ul>
|
|
30
|
-
{%- endif %}
|
|
31
|
-
</li>
|
|
32
|
-
{%- endfor %}
|
|
33
|
-
</ul>
|
|
34
|
-
{%- endif %}
|
|
35
|
-
</li>
|
|
36
|
-
{%- endfor %}
|
|
37
|
-
</ul>
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
</nav>
|
|
42
|
-
{%- endif %}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|