background fix

This commit is contained in:
Alicia Sykes
2026-07-04 18:26:38 +01:00
parent 2a2b51d08d
commit c44494942e
2 changed files with 1 additions and 11 deletions

View File

@@ -14,19 +14,12 @@ const path = require('path');
const DOCS_DIR = path.join(__dirname, 'docs');
// 'backup-restore' -> 'Backup Restore'
const labelFor = (id) => id
.split('-')
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
.join(' ');
/**
* Renders a doc as an expandable category when a same-named directory of
* sub-pages exists (e.g. docs/authentication/, docs/deployment/), and as a
* plain doc link otherwise. A directory only counts as having sub-pages if
* it contains markdown files other than a readme (docs/showcase/ holds just
* images and a readme stub, so it stays a plain link).
*/
// Docs with a same-named folder of sub-pages become expandable categories (readme stubs don't count)
const withSubPages = (id) => {
if (typeof id !== 'string') return id;
const dir = path.join(DOCS_DIR, id);

View File

@@ -85,9 +85,6 @@ nav.navbar {
html {
scroll-behavior: smooth;
}
body {
background: var(--background);
}