BraddCorp Tools

Tools / Pages Docs Template

Pages Docs Template

A ready-to-fork Astro Starlight documentation site for Cloudflare Pages. Copy it, replace the placeholder pages, and publish with Wrangler or Cloudflare’s Git integration.

MITAstroStarlightCloudflare Pagesearly-stage

What it does

A ready-to-fork Astro Starlight documentation site for Cloudflare Pages. Placeholder pages only, DM Sans and a simple accent, unlisted by default, with a README for Wrangler and Git-integration deploys.

Features

  • Astro and Starlight, with DM Sans and a small set of accent tokens you can rebrand.
  • Placeholder guides only — no client or organization content in the template.
  • Ships unlisted (noindex, robots.txt, and X-Robots-Tag) so internal docs are not offered to search engines. That is not access control.
  • Deploy with pnpm deploy (Wrangler) or by connecting the repo in the Cloudflare dashboard. A GitHub Action is included for the Wrangler path.
  • MIT licensed, with a security policy that tells operators not to commit tokens or put secrets in Markdown.

See it in action

Simulated A preview of the Starlight template homepage and a placeholder guide.

Documentation

Your Docs

Replace this homepage with your own overview. The template ships unlisted (noindex) until you change that.

Guides Example how-to

Example how-to

  1. Open the tool your team uses.
  2. Make the change.
  3. Check the published URL.

This is placeholder copy from the template. Fork it and write a real procedure.

Set it up

Fork the repository or use it as a GitHub template, then install and run it locally:

Local dev
git clone https://github.com/BadBraddA1/cf-pages-docs-template.git my-docs
cd my-docs
pnpm install
pnpm dev
Create a Pages project
pnpm exec wrangler pages project create docs-site --production-branch=main
Deploy with Wrangler
# After you have renamed the project in wrangler.toml and package.json:
pnpm deploy

To publish with Cloudflare’s Git integration instead, connect the repository in the dashboard and use build command pnpm build, output directory dist, production branch main, and Node.js 22. Rename the default Pages project (docs-site) in wrangler.toml and package.json before you deploy, and keep CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID in the environment — not in the repo.

Full instructions live in the repository README.

Security

  • The default search-engine exclusion is not a login wall. Anyone who has the URL can read the pages. Put Cloudflare Access in front of confidential docs.
  • Do not commit API tokens, account ids, or .env files. The Wrangler config is written without an account id on purpose.
  • Do not put secrets, passwords, or private hostnames into src/content/docs/ or public/.
  • The template has no application database, no login, and no Pages Functions.

Report vulnerabilities to Hello@Braddcorp.com, and read the full SECURITY.md for the threat model and operator hygiene.

Known limitations

Unlisted is not private

noindex only asks search engines not to list the site. A public Pages URL is still readable.

Placeholder project name

The default Wrangler project name is docs-site. Change it before you deploy so you do not overwrite the wrong project.

Pre-1.0

Only the main branch is supported.

Changelog

No tagged releases yet. The project is pre-1.0 and only main is supported, so this is the commit history.

Commits

  • 3bac9ebInitial commit: Astro Starlight docs template for Cloudflare Pages

Generated at build time from 1 commits on main (3bac9eb) on 2026-12-06 UTC. Dates are UTC. No requests to GitHub happen when you view this page.

License

MIT, copyright BraddCorp. See LICENSE. Contributions and forks are welcome on GitHub.