From 3e3f31a93233e43b457fe0c38cf7b334f27a9dbd Mon Sep 17 00:00:00 2001 From: rasmus-kirk Date: Sun, 3 Mar 2024 22:49:57 +0100 Subject: [PATCH] Add wiki --- docs/pandoc/script.js | 13 ++++++ docs/pandoc/style.css | 23 +++++++++-- docs/pandoc/template.html | 17 +------- docs/wiki/ddns/njalla/domain.png | Bin 0 -> 66669 bytes docs/wiki/ddns/njalla/index.md | 68 +++++++++++++++++++++++++++++++ docs/wiki/ddns/njalla/record.png | Bin 0 -> 116475 bytes docs/wiki/index.md | 9 ++++ docs/wiki/secrets/index.md | 52 +++++++++++++++++++++++ mkDocs.nix | 26 ++++++++++++ 9 files changed, 189 insertions(+), 19 deletions(-) create mode 100644 docs/pandoc/script.js create mode 100644 docs/wiki/ddns/njalla/domain.png create mode 100644 docs/wiki/ddns/njalla/index.md create mode 100644 docs/wiki/ddns/njalla/record.png create mode 100644 docs/wiki/index.md create mode 100644 docs/wiki/secrets/index.md diff --git a/docs/pandoc/script.js b/docs/pandoc/script.js new file mode 100644 index 0000000..7c44650 --- /dev/null +++ b/docs/pandoc/script.js @@ -0,0 +1,13 @@ +addEventListener('DOMContentLoaded', () => { + const fullpath = location.origin + location.pathname + + document.querySelectorAll('nav a').forEach((el) => { + const url = new URL(el.href) + const fullurl = url.origin + url.pathname.replace(/\/$/, "") + console.log(fullurl) + console.log(fullpath) + if (fullurl === fullpath) { + el.classList.add('active') + } + }) +}) diff --git a/docs/pandoc/style.css b/docs/pandoc/style.css index b583ac8..c7f451c 100644 --- a/docs/pandoc/style.css +++ b/docs/pandoc/style.css @@ -85,10 +85,6 @@ nav a.active { color: #faf8e4 !important; } -a code { - text-decoration-line: underline; -} - footer { height: 2rem; position: absolute; @@ -140,6 +136,25 @@ a:focus { outline: thin dotted; } +a code { + text-decoration-line: underline; +} + +strong a { + text-decoration-line: underline; + color: var(--fg0); +} + +strong a:hover { + text-decoration-line: underline; + color: var(--fg0); +} + +strong a:visited { + text-decoration-line: underline; + color: var(--fg0); +} + *::-moz-selection { /* background: var(--ltred); */ background: rgba(255, 255, 0, 0.3); diff --git a/docs/pandoc/template.html b/docs/pandoc/template.html index d5e1e2b..8299bdf 100644 --- a/docs/pandoc/template.html +++ b/docs/pandoc/template.html @@ -36,18 +36,7 @@ - + @@ -61,6 +50,7 @@
Home Options + Wiki Github
@@ -100,9 +90,6 @@

$toc-title$