Skip to content

Documentation site

The documentation site (shackworks-docs) uses Astro and Starlight. npm run dev serves it at localhost:4321, and npm run build validates the front matter and builds ./dist.

Pages are Markdown or MDX files in src/content/docs/, each with a title and a description. The sidebar is hand-written in astro.config.mjs. The top-level sections are Welcome, Member Guide, Administrator Guide, Radio Bridge Guide, Offline Application, Installation Guide, Hosting Guide, API, Contributor Guide and Changelog. The Clerk and Better Auth pages come in pairs, so keep each pair in step.

  • Write in the present tense, in full sentences, and address the reader as “you” when you describe a task. Keep pages short and skip narrative. Cover only what is complex or unique to Shackworks, for readers who already understand the hardware and software.
  • Use the names the app shows, and use the permission names from shared/roles.ts.
  • List required permissions in the front matter, for example permissions: [contacts.log].
  • Give every aside a title. Use danger for data loss or lockout, caution for traps, note for facts that are easy to miss, and tip for shortcuts.
  • Draw diagrams with an archify code fence, which holds an Archify JSON diagram and renders at build time through astro-archify. The integration must stay before Starlight in astro.config.mjs. Archify rejects a diagram whose labels or routes collide, so adjust positions until it renders.
  • Use Example Radio Club and W1XYZ in examples.
  • Give an unfinished page a banner in its front matter, and remove the banner when the page is done.

src/styles/shackworks.css provides the styling. Change tokens in the app first. See Themes and design. The Settings reference and the Theme reference derive from server/config.ts and shared/theme-api.ts, so update them when those files change.