Publish Docs
Keep content edits small enough to validate quickly.
Treat docs changes like product changes. Small, deliberate updates are easier to review, build, and rollback than giant content drops.
Preconditions
Section titled “Preconditions”- dependencies are installed
- you know which page or section you are updating
- the content builds locally
Workflow
Section titled “Workflow”- Edit or add the page under
src/content/docs/. - If it is a new page, add it to the sidebar in
astro.config.mjs. - Run a production build.
- Preview locally if the change needs a visual check.
- Push the branch when the result looks right, or run a manual Pages deploy if you need one.
npm run buildnpm run previewgit push origin <branch-name>npm run deploy