Skip to content

docs: expand docs-site with guide section (Getting Started / Configuration / Presets / Themes / Trust / Cookbook) #78

Closed

Description

@unhappychoice

Tracks #76 (0.x release scope).

Background

Today, the docs-site (Starlight, docs-site/) only has the auto-generated reference/ pages (fetcher / renderer catalog). For the 0.x release, docs should stand on their own for "what can I do with this at a glance", "browse presets and pick one", and "write my own config".

The current sidebar has a single Reference section (docs-site/astro.config.mjs). This issue adds a Guides section alongside it.

Pages to add

Guides/

  • Getting Started (guides/getting-started.md)

  • Configuration (guides/configuration.md)

    • Location of $HOME/.splashboard/config.toml
    • Per-directory walk-up (./.splashboard/config.toml, ./.splashboard.toml)
    • Structure: [general] / [[widget]] / [[row]] / [[row.child]]
    • How fetcher / render / layout slot fit together
    • Renderer alignment / title / border options
  • Presets (guides/presets.md)

  • Themes (guides/themes.md)

    • Six presets (default / tokyo_night / nord / dracula / gruvbox_dark / catppuccin_mocha) side-by-side on the same splash
    • Selecting via [theme] preset = "..."
    • Per-token overrides (e.g. panel_title = "#ff0088")
    • The "reset" special value (for light terminals)
  • Trust model (guides/trust.md)

    • Safety classes (Safe / Network) — today only Safe is reachable because Network fetchers are disabled; document the concept for post-0.x expansion
    • splashboard trust flow
    • SPLASHBOARD_TRUST_ALL
  • Cookbook (guides/cookbook.md)

    • Where to put GH_TOKEN (env / $HOME/.splashboard/)
    • Different splash per repo via per-dir config
    • DIY widgets with ReadStore (habit tracker / goal progress, etc. — recipes from meta: widget catalog & roadmap #41)
    • Author a custom theme via token overrides

astro.config.mjs changes

Add a Guides section to the sidebar:

sidebar: [
  { label: 'Guides', items: [
    { label: 'Getting Started', link: '/guides/getting-started/' },
    { label: 'Configuration', link: '/guides/configuration/' },
    { label: 'Presets', link: '/guides/presets/' },
    { label: 'Themes', link: '/guides/themes/' },
    { label: 'Trust model', link: '/guides/trust/' },
    { label: 'Cookbook', link: '/guides/cookbook/' },
  ]},
  { label: 'Reference', items: [
    { label: 'Overview', link: '/reference/matrix/' },
    { label: 'Fetchers', autogenerate: { directory: 'reference/fetchers' } },
    { label: 'Renderers', autogenerate: { directory: 'reference/renderers' } },
  ]},
],

Rewrite the landing page (index.md) to lead with Guide links.

Screenshots

  • Four presets × 1 image each (Splash default theme)
  • Six themes × 1 image each (same splash — home_splash as baseline)

Use the static renders prepared in the preset issue. Drop the .png files under docs-site/src/assets/.

Definition of Done

  • guides/getting-started.md
  • guides/configuration.md
  • guides/presets.md (screenshots + TOML for all 4 presets)
  • guides/themes.md (screenshots for all 6 themes)
  • guides/trust.md
  • guides/cookbook.md
  • Sidebar update in astro.config.mjs
  • index.md rewritten with Guides front-and-center

Out of scope

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions