Authoring Workflow
Prerequisites
Section titled “Prerequisites”- Node.js 20 or newer
pnpminstalled globally (npm install -g pnpm)- Optional: install Chrome/Chromium locally for Lighthouse CI (
pnpm dlx puppeteer browsers install chrome)
Create or Edit Content
Section titled “Create or Edit Content”-
Add Markdown/MDX files under
src/content/docs/. -
Include the required front matter:
---title: Example Titledescription: One-sentence summary of the page.publishDate: 2025-10-08updatedDate: 2025-10-08 # optionaldraft: falsetags:- exampleheroImage: ../../assets/example.webp # optional--- -
Place images in
public/orsrc/assets/and reference them with relative paths.
Local Validation Checklist
Section titled “Local Validation Checklist”pnpm lint # astro check – schema/typespnpm test:links # astro check --links – link validationpnpm test:lighthouse # build + Lighthouse CI (requires Chrome)Run these commands before opening a pull request. Lighthouse CI saves reports in .lighthouseci/.
Development Server
Section titled “Development Server”pnpm devThe site reloads automatically at http://localhost:4321 when you edit content or configuration.
Pull Request Workflow
Section titled “Pull Request Workflow”- Branch from
main. - Make content/config changes.
- Run the validation checklist.
- Commit and push. The GitHub Actions workflow (
.github/workflows/ci.yml) reruns the same checks in CI. - Review SWA preview (once infrastructure is provisioned) and gather evidence for the active milestone.
Troubleshooting
Section titled “Troubleshooting”- Schema errors: ensure front matter fields match
src/content.config.ts. - Link errors: update broken URLs or add redirects.
- Lighthouse failures: verify Chrome is available locally/CI and adjust content or performance issues before retrying.
For milestone status and follow-ups see /docs/10_projects/agentic-compass/2-build/agentic-compass-v0/04-planning/milestones/MLS-AC-V0-0001.yaml.