From 9bc6d1035857e43424c5968159201ac767659a37 Mon Sep 17 00:00:00 2001 From: rootiest Date: Mon, 8 Jun 2026 11:35:00 -0400 Subject: [PATCH] feat(docs): add dark-mode HTML styling and drop per-page ToC - Add docs/html-style.html with Catppuccin Latte/Mocha palette, auto-selected via prefers-color-scheme - Update html-docs workflow: embed stylesheet via --include-in-header, remove --toc so per-page sidebar is gone (index.html remains the ToC) - Touch docs/fish-config.md to trigger the HTML generation workflow --- .gitea/workflows/html-docs.yml | 3 +- docs/fish-config.md | 1 + docs/html-style.html | 154 +++++++++++++++++++++++++++++++++ 3 files changed, 157 insertions(+), 1 deletion(-) create mode 100644 docs/html-style.html diff --git a/.gitea/workflows/html-docs.yml b/.gitea/workflows/html-docs.yml index fac9cd5..0d64fbd 100644 --- a/.gitea/workflows/html-docs.yml +++ b/.gitea/workflows/html-docs.yml @@ -25,7 +25,8 @@ jobs: - name: Generate chunked HTML docs run: | - pandoc -f gfm -t chunkedhtml --split-level=1 --toc -V toc=true \ + pandoc -f gfm -t chunkedhtml --split-level=1 \ + --include-in-header docs/html-style.html \ docs/fish-config.md \ -o docs/html/ diff --git a/docs/fish-config.md b/docs/fish-config.md index 1170a03..439cf3e 100644 --- a/docs/fish-config.md +++ b/docs/fish-config.md @@ -1268,3 +1268,4 @@ a completely separate command. Do not mix them up. help config fish-deps The keyword is matched case-insensitively against section headings. + diff --git a/docs/html-style.html b/docs/html-style.html new file mode 100644 index 0000000..a4cbda4 --- /dev/null +++ b/docs/html-style.html @@ -0,0 +1,154 @@ +