Skip to content

apps docs site

bondiano edited this page Nov 12, 2026 · 1 revision

Documentation website

Active contributors: Vassiliy Kuzenkov.

site/ publishes the repository guides as a static Astro Starlight site at https://bondiano.github.io/sych/. It is separate from the Vue dashboard and does not serve or call the review API.

Sources, navigation and synchronization

site/package.json pins Astro 7.4.4, Starlight 0.42.8 and Inter Variable 5.3.0. It uses npm, not the dashboard's pnpm workflow:

cd site
npm ci
npm test
npm run dev
# production: npm run build; npm run preview

Both dev and build run sync first. site/pages.mjs is the single list for publication and sidebar navigation:

Group Guides
Start Install, local review
Configure Config, models, deployment
Run a server Server, storage
How it works Analysis, semantic
Reference Execution-outcome ADR, brand guide; extra link to repository JSON schemas

The docs/README.md mapping resolves links to the site home. The actual home is hand-written site/src/content/docs/index.mdx, whose install tabs extract prompt blocks directly from docs/INSTALL.md.

site/scripts/sync-docs.mjs transforms each listed guide:

  1. Requires the first line to be an H1, turning it into frontmatter title plus GitHub edit URL.
  2. Rewrites links to published guides as /sych/<slug>/, retaining anchors.
  3. Rewrites other repository links to GitHub blob/tree URLs; missing target files fail synchronization.
  4. Preserves external URLs, anchors and fenced code text.
  5. Copies referenced brand PNGs/favicon to site/public/brand/, and imported lockups/symbol to site/src/assets/brand/.

Synchronization removes generated content entries but preserves index.mdx. Edit guides in docs/, not generated Markdown under site/src/content/docs/.

Assets and styling

site/astro.config.mjs fixes site/base URLs, light/dark logo files, favicon, GitHub social link and sidebar. site/src/content.config.ts uses Starlight's loader/schema.

Brand originals live in docs/brand/. Imported hero/logo images are Astro-optimized; public PNGs retain base-prefixed URLs. site/src/styles/brand.css sets Inter typography, dark/light surface and amber/orange accents, and hero sizing.

Tests and Pages pipeline

site/scripts/sync-docs.test.mjs uses Node's test runner. Its seven tests cover H1/frontmatter, guide anchors, GitHub links, copied images, preserved code/external links, missing-link rejection and README parity with the first install prompt.

.github/workflows/pages.yml runs for relevant README/docs/site/workflow changes on PRs and pushes to main, plus manual dispatch. A Node 24 build runs npm ci, npm test, then npm run build under site/, with a 15-minute job limit.

PRs build only. Non-PR builds upload site/dist; deployment additionally requires main, a successful build and the github-pages environment, with Pages/OIDC permissions scoped to the deployment job. Concurrency cancels older runs for the same workflow/ref. This is distinct from dashboard build/test CI.

Key source files

Source Change entry point
site/pages.mjs Add guide/slug/navigation group
site/scripts/sync-docs.mjs Link rewriting and asset copying
site/scripts/sync-docs.test.mjs Sync behavior and prompt parity
site/src/content/docs/index.mdx Home page and install tabs
site/astro.config.mjs Site/base, Starlight and logos
site/src/styles/brand.css Theme tokens and hero presentation
.github/workflows/pages.yml Build/deploy triggers and permissions

Scope and tests

6 source files, 1 test file; ratio 0.167; 1 unique human author. Method: application measurements. Scope: site/ plus .github/workflows/pages.yml; extension-filtered counts exclude package manifests, lockfiles, workflow YAML and generated/copied assets. Contributor history includes the workflow. The test/source ratio describes files, not browser or visual coverage.

Add pages in docs/ and site/pages.mjs together, run site tests/build, and keep base-prefixed links/assets correct. Shared repository check guidance is in Testing; Dashboard documents the separate application UI.

Clone this wiki locally