1
0
mirror of synced 2026-01-11 03:01:04 -05:00
Files
docs/layouts/dev-toc.html
Kevin Heis d47d795e7c Enable dark mode, matching OS setting (#18749)
* Enable dark mode, matching OS setting

* A few more dark mode tweaks

* Revert mountain opacity

* Update mountains on homepage to rgba

* Revert "Update sidebar to use primer backgrounds (#18818)"

This reverts commit 229ce4518f.

* Revert "Revert "Update sidebar to use primer backgrounds (#18818)""

This reverts commit 5845e25c5d5236776fb83acc42a3444b5f44b960.

* Update overrides.scss

* Remove labtocat and waldocat from 500 and 404

* Readd sidebar changes
2021-05-10 11:06:54 -07:00

77 lines
2.2 KiB
HTML

<!doctype html>
<html lang="{{currentLanguage}}" data-color-mode="auto" data-dark-theme="dark_dimmed">
<head>
<meta charset="utf-8" />
<title>Docs TOC</title>
<link rel="stylesheet" href="{{ builtAssets.main.css }}">
<link rel="alternate icon" type="image/png" href="/assets/images/site/favicon.png">
<link rel="icon" type="image/svg+xml" href="/assets/images/site/favicon.svg">
</head>
<body class="dev-toc p-3 m-3">
<main class="width-full">
<h3>Versions</h3>
<ul class="versions-list">
{% for version in allVersions %}
<li><a href="/{{ version[0] }}/dev-toc">{{ version[1].versionTitle }}</a>
{% endfor %}
</ul>
{% if allVersions[currentVersion] %}
<h2 class="mt-3 mb-3"><abbr>TOC</abbr> for {{ allVersions[currentVersion].versionTitle }}</h2>
<button class="btn mb-3 js-expand" type="button">Expand All</button>
<div/>
{% for product in siteTree[currentLanguage][currentVersion].products %}
<details class="mb-1"><summary>{{product[1].title}}</summary>
<ul class="products-list">
<li title="{{product[1].title}}">
<a href="{{product[1].href}}">{{ product[1].title }}</a>
{% for category in product[1].categories %}
<ul>
<li>
<a href="{{ category[1].href }}">{{ category[1].title }}</a>
<!-- some categories have maptopics with child articles -->
{% if category[1].maptopics %}
<ul>
{% for maptopic in category[1].maptopics %}
{% unless maptopic[1].hidden %}
<li>
<a href="{{ maptopic[1].href }}">{{ maptopic[1].title }}</a>
<ul>
{% for article in maptopic[1].articles %}
<li>
<a href="{{ article[1].href }}">{{ article[1].title }}</a>
</li>
{% endfor %}
</ul>
</li>
{% endunless %}
{% endfor %}
</ul>
<!-- some categories have no maptopics, only articles -->
{% else %}
<ul>
{% for article in category[1].articles %}
<li>
<a href="{{ article[1].href }}">{{ article[1].title }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
</li>
</ul>
</details>
{% endfor %}
{% endif %}
{% include scripts %}
</main>
</body>
</html>