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.
Conventions
Section titled “Conventions”- 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
dangerfor data loss or lockout,cautionfor traps,notefor facts that are easy to miss, andtipfor shortcuts. - Draw diagrams with an
archifycode fence, which holds an Archify JSON diagram and renders at build time throughastro-archify. The integration must stay before Starlight inastro.config.mjs. Archify rejects a diagram whose labels or routes collide, so adjust positions until it renders. - Use Example Radio Club and
W1XYZin examples. - Give an unfinished page a
bannerin 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.