From d53e289407b59f2026baeaa3f1b749508ab86f7d Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Wed, 28 Feb 2024 21:16:48 +0100 Subject: [PATCH] docs: adjust table of contents depth of changelog --- docs/changelog.md | 3 ++ docs/overrides/partials/toc-item.html | 43 +++++++++++++++++++++++++++ mkdocs.yaml | 1 + 3 files changed, 47 insertions(+) create mode 100644 docs/overrides/partials/toc-item.html diff --git a/docs/changelog.md b/docs/changelog.md index fe25b5b..926450b 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,3 +1,6 @@ +--- +toc_depth: 1 +--- # Changelog All notable changes to this project will be documented in this file. diff --git a/docs/overrides/partials/toc-item.html b/docs/overrides/partials/toc-item.html new file mode 100644 index 0000000..0cc97fd --- /dev/null +++ b/docs/overrides/partials/toc-item.html @@ -0,0 +1,43 @@ + + + +
  • + + + {{ toc_item.title }} + + + + + {% if toc_item.children %} + + {% endif %} +
  • \ No newline at end of file diff --git a/mkdocs.yaml b/mkdocs.yaml index 7fccbde..3e0cb5c 100644 --- a/mkdocs.yaml +++ b/mkdocs.yaml @@ -9,6 +9,7 @@ edit_uri: edit/main/docs/ theme: name: material + custom_dir: docs/overrides palette: - media: "(prefers-color-scheme: light)" scheme: default