From b50fb52613e8cd2bd152009eb10d4a403062f2d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Onur=20=C3=96zkan?= Date: Sun, 9 Aug 2026 15:02:44 +0300 Subject: [PATCH] docs: simplify navigation and layout --- docs/book.toml | 2 +- docs/src/SUMMARY.md | 15 --------------- docs/theme/{lore.css => layout.css} | 26 +++++++++----------------- 3 files changed, 10 insertions(+), 33 deletions(-) rename docs/theme/{lore.css => layout.css} (92%) diff --git a/docs/book.toml b/docs/book.toml index 2bf715b..90a4b10 100644 --- a/docs/book.toml +++ b/docs/book.toml @@ -13,6 +13,6 @@ create-missing = false [output.html] default-theme = "navy" preferred-dark-theme = "navy" -additional-css = ["theme/lore.css"] +additional-css = ["theme/layout.css"] fold = { enable = false } search = { enable = false } diff --git a/docs/src/SUMMARY.md b/docs/src/SUMMARY.md index 2766509..3ea6bd8 100644 --- a/docs/src/SUMMARY.md +++ b/docs/src/SUMMARY.md @@ -1,28 +1,13 @@ # Summary - [Overview](index.md) - -# Start here - - [Getting started](getting-started.md) - [Development and verification](development.md) - -# Design - - [Architecture](architecture.md) - [Safety boundary](safety-boundary.md) - [MAVLink and telemetry](mavlink.md) - -# Platforms - - [Boards](boards/index.md) - [Kakute F7 Mini V3](boards/kakute-f7-mini-v3.md) - [GEPRC GEP-F722-HD V2](boards/geprc-f722-v2.md) - -# Simulation - - [Host SITL](sitl.md) - -# Reference - - [Reference](reference.md) diff --git a/docs/theme/lore.css b/docs/theme/layout.css similarity index 92% rename from docs/theme/lore.css rename to docs/theme/layout.css index 07a5dc6..13f6da6 100644 --- a/docs/theme/lore.css +++ b/docs/theme/layout.css @@ -1,7 +1,4 @@ -/* - * A static documentation layout: kernel-docs navigation with lore-like - * restraint. Colours follow Orkavian's black, silver, and green palette. - */ +/* Static documentation layout. */ :root, html.light, html.rust, @@ -80,16 +77,6 @@ body { margin: 0; } -.sidebar-scrollbox .part-title { - color: var(--kaptan-muted); - font-size: 0.75rem; - font-weight: 700; - letter-spacing: 0.08em; - margin: 0; - padding: 1rem 1rem 0.3rem; - text-transform: uppercase; -} - .sidebar-scrollbox .chapter-item a { color: var(--kaptan-text); display: block; @@ -123,7 +110,12 @@ body { box-sizing: border-box; margin: 0 auto; max-width: 78ch; - padding: 2rem 1.5rem 3rem; + padding: 4rem 1.5rem 3rem; +} + +/* mdBook offsets this for its menu placeholder; this layout hides that menu. */ +.page { + margin-block-start: 0 !important; } .content main { @@ -202,8 +194,8 @@ code { } pre { - background: var(--kaptan-surface); - border: 1px solid var(--kaptan-border); + background: #1d1712; + border: 1px solid #5b4935; overflow-x: auto; padding: 0; }