Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 2.01 KB

AGENTS.md

File metadata and controls

27 lines (16 loc) · 2.01 KB

Working in this repo

Nimbus (Astro) docs site, deployed to Cloudflare Workers as kmworks, served at https://kmworks.date.

Read and follow AGENT.md — the canonical guide for the Nimbus machinery (content collections, MDX components, lint, upgrades). This file only covers what AGENT.md does not.

Verify before calling work done

pnpm typecheck && pnpm build && pnpm exec nimbus-docs check && pnpm lint:docs

Then confirm dist/ still serves every public route: /, /server/, /reader/, /faq/, /compare/, /architecture/, /server/{intro,installation,configuration,webui,search,compatibility,enhancements,limitations,development,migration}/, /server/enhancements/{webhooks,history-events,epub2-metadata,natural-sort,komf,trackers,thumbnail-storage,komga-riir,next-previous,reading-stats,smart-lists,server-stats,update-check,sse-recovery,session-management}/, /reader/{intro,reading,offline,library,translation,settings,privacy}/, /oauth/{anilist,mal,bangumi,mangabaka}/callback/.

Content conventions

  • Internal links are absolute (/server/webui); the build does not rewrite relative ./x.md links.
  • reader/privacy keeps sidebar.hidden: true — rendered, but not in the sidebar tree.
  • Landing pages (src/pages/index.astro, src/pages/{server,reader}/index.astro) carry their design in scoped styles plus src/styles/landing.css; landing-only selectors use the .km-landing prefix and --km-* tokens; dark mode is [data-mode="dark"].

CI

.github/workflows/ci.yml runs the verify chain above (typecheck → build → nimbus-docs check → lint:docs) on PRs and pushes to main. It does not deploy.

Deploy

Pushes to main auto-deploy via Workers Builds (pnpm install --frozen-lockfile && pnpm run build, then pnpm exec wrangler deploy with wrangler.jsonc). Local manual deploy: pnpm deploy. Both ship to production — only deploy when the user asks. Inspect pipeline state with cf builds list --external-script-id "$(cf workers get kmworks | jq -r .id)".