Skip to content

Add base Astro + Nebari Starlight docs site (experimental) - #5

Merged
jbouder merged 2 commits into
mainfrom
feat/astro-starlight-docs
Aug 25, 2026
Merged

Add base Astro + Nebari Starlight docs site (experimental)#5
jbouder merged 2 commits into
mainfrom
feat/astro-starlight-docs

Conversation

@jbouder

@jbouder jbouder commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Closes #4

Summary

Scaffolds an experimental docs/ site mirroring the pattern used by the other software packs (nebari-chat-pack, mlflow-pack, harbor-pack, ...):

  • Astro + @astrojs/starlight project under docs/ (astro.config.mjs, src/content/docs/, public/)
  • Nebari branding via the shared @nebari/starlight theme plugin with nebari({ logoHref: 'https://packs.nebari.dev/' })
  • astro.config.mjs respects the BASE and SITE env vars for portal deployment, plus the remark-base-links plugin so root-absolute links work under a base path
  • Landing page is a placeholder that clearly marks the docs as experimental with content coming soon
  • Root README.md now points to docs/ and how to run it locally; docs/README.md covers install/dev/build/preview

Now that the Cloudflare Pages project exists, this PR also wires up deployment:

  • pack-metadata.yaml: docs_site: true and links.docs: https://packs.nebari.dev/pi-coding-agent-pack/ (validated against the dashboard schema)
  • .github/workflows/docs.yml: build, internal link check, Cloudflare Pages deploy, PR preview URL comment (same pinned actions as the other packs)
  • .github/workflows/docs-preview-cleanup.yml: deletes preview deployments when a PR closes
  • scripts/check-links.sh: shared internal link checker

Verification

  • npm install && npm run dev — serves locally; landing page renders with title and experimental banner
  • npm run build — clean static build
  • SITE=https://packs.nebari.dev BASE=/pi-coding-agent-pack/ npm run build — asset/link paths correctly prefixed with /pi-coding-agent-pack/
  • BASE=/pi-coding-agent-pack/ SKIP_BUILD=1 bash scripts/check-links.shLINKS_OK
  • pack-metadata.yaml validates against the dashboard schema (check-jsonschema)

Requirements

Deploys need the CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID repository secrets and a Cloudflare Pages project named pi-coding-agent-pack.

Out of scope (per #4)

  • Actual documentation content

🤖 Generated with Claude Code

jbouder and others added 2 commits August 25, 2026 13:49
Scaffolds a docs/ site mirroring the other software packs: Astro with the
@astrojs/starlight integration, Nebari branding via the @nebari/starlight
theme plugin, and BASE/SITE env-var support for portal deployment. The
landing page is a placeholder marking the docs as experimental with
content coming soon.

Closes #4

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Marks docs_site: true and points links.docs at the packs portal URL in
pack-metadata.yaml. Adds the standard Docs CI workflow (build, internal
link check, Cloudflare Pages deploy with PR preview comments), the
preview-cleanup workflow, and the shared check-links.sh script, all
mirroring the other software packs.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

📄 Docs preview for feat/astro-starlight-docs:
https://feat-astro-starlight-docs.pi-coding-agent-pack.pages.dev

@jbouder
jbouder merged commit 902e683 into main Aug 25, 2026
1 check passed
@jbouder
jbouder deleted the feat/astro-starlight-docs branch August 25, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Base Astro Site with Nebari Starlight Docs (Experimental)

2 participants