doc/nixos: setup nav.json migration

This commit is contained in:
Johannes Kirschbauer
2026-09-11 09:48:02 +02:00
parent d2eb9418d9
commit cfe7713c42
3 changed files with 8 additions and 2 deletions

View File

@@ -6,9 +6,10 @@ from typing import TypedDict
# Coupled to where this file lives!
# Needed to resolve the relative includes file paths
DOC_ROOT = Path(__file__).resolve().parent.parent
REPO_ROOT = Path(__file__).resolve().parent.parent.parent
ROOT_FILE = DOC_ROOT / "manual.md.in"
ROOT_FILE = REPO_ROOT / "nixos/doc/manual/manual.md"
DOC_ROOT = ROOT_FILE.parent
INCLUDE_RE = re.compile(r"^```\{=include=\}(?P<rest>.*)$")
FENCE_RE = re.compile(r"^(```|~~~)")

View File

@@ -203,6 +203,7 @@ rec {
--sidebar-depth 2 \
--header ${./header.html}\
--no-navheader \
--experimental-config ${./nav.json} \
./manual.md \
$dst/${common.indexPath}

View File

@@ -0,0 +1,4 @@
{
"open": [],
"items": []
}