From dc93f1c1fd7b67e2da5af2ffada732b9ddeb2d6a Mon Sep 17 00:00:00 2001 From: Kent Daleng Date: Sun, 17 Aug 2025 16:05:41 +0200 Subject: github wiki replacement / mkdocs-docs (#2147) * Add wiki based on mkdocs * wording fixes * fix github bg color on narrow * Fix left sidebar section headers being bigger than pages * fix hover accent * fix list rendering on fractional layout * fix videos * fix automatic full links * remove redundant commented css * improve dark mode contrast * update pygments for better child node coloring * update logo * remove blank lines * add systemd language hint --------- Co-authored-by: Ivan Molodetskikh --- docs/wiki/_assets/icons/logo.svg | 412 +++++++++++++++++++++++++++++++++ docs/wiki/_assets/stylesheets/niri.css | 60 +++++ 2 files changed, 472 insertions(+) create mode 100644 docs/wiki/_assets/icons/logo.svg create mode 100644 docs/wiki/_assets/stylesheets/niri.css (limited to 'docs/wiki/_assets') diff --git a/docs/wiki/_assets/icons/logo.svg b/docs/wiki/_assets/icons/logo.svg new file mode 100644 index 00000000..24fef54b --- /dev/null +++ b/docs/wiki/_assets/icons/logo.svg @@ -0,0 +1,412 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/wiki/_assets/stylesheets/niri.css b/docs/wiki/_assets/stylesheets/niri.css new file mode 100644 index 00000000..7c172486 --- /dev/null +++ b/docs/wiki/_assets/stylesheets/niri.css @@ -0,0 +1,60 @@ +:root > * { + --md-primary-fg-color: #1e97b5; + --md-primary-fg-color--dark: color-mix(in srgb, var(--md-primary-fg-color), black 20%); + --md-accent-fg-color: var(--md-primary-fg-color--dark); +} + +.md-logo > img { + background-color: white; + border-radius: 8px; +} + +@media (prefers-color-scheme: dark) { + :root > * { + --md-primary-fg-color: #167188; + --md-accent-fg-color: #1e97b5; + --md-typeset-a-color: color-mix(in srgb, var(--md-accent-fg-color), white 30%); + } + + .md-logo > img { + background-color: #eee; + } +} + +.md-nav--primary .md-nav__title { + box-shadow: none; +} + +@media screen and (min-width: 76.25em) { + .md-nav__title { + display: none; + } +} + +@media screen and (min-width: 76.25em) { + .md-main { + min-height: 100vh; + } +} + +.md-nav__link--active { + font-weight: bold; +} + +.highlight .gp, .highlight .go { + user-select: none; +} + +.md-source-file__fact { + visibility: hidden; +} + +.badge { + font-size: 0.85em; + box-shadow: 0 0 0 1px inset var(--md-accent-fg-color--transparent); + padding: 0.2rem 0.3rem; +} + +.md-typeset table:not([class]) td { + padding: .5em 1.25em; +} \ No newline at end of file -- cgit