How the docs site works
The rule
Section titled “The rule”Bideward has one documentation site: the Markdown in docs/, built by the small Astro Starlight project in docs-site/, hosted on Cloudflare Pages at docs.bideward.com, and opened only by the people on its Cloudflare Access list.
Documentation lives in the same repository as the code, so repository permission and site permission describe the same group of people. Nothing about any other business is in this repository, so no list can expose it.
| Item | Value |
|---|---|
| Hostname | docs.bideward.com (single level, so Cloudflare’s free certificate covers it) |
| Source | docs/ in the repository (today bot-stats-server, later bideward/platform) |
| Builder | docs-site/ (Astro and Starlight, with Pagefind search) |
| Pages project | bideward-docs |
| Who may open it | The e-mail addresses on its Access policy (today only Frank) |
The build copies docs/ into docs-site/src/content/docs/ (generated, git-ignored, never edited by hand), rewrites the links, and builds the site. How to run it locally is in docs-site/README.md.
Sharing
Section titled “Sharing”| What you want to share | How | What the person can see |
|---|---|---|
| The whole site | Add their e-mail to the site’s Access policy. | Everything on docs.bideward.com. |
| One page or a few sections, today | Send a copy: open the page and use the browser’s Print → Save as PDF, or send the page’s Markdown file from the repository. | Exactly what you send. |
| One page or section, as a live link behind the login | Not available yet (backlog D-08). | — |
Why live page-level sharing is not a step-by-step yet. Cloudflare’s documented rules are: the more specific path rule wins, and a path ending in /* does not cover the parent path itself (so /setup/part-f/* does not cover /setup/part-f). A guest application for one page would also have to cover the style, script and search files the page loads from the same hostname. That last point is my inference, not a documented procedure, so it must be tested on the live site before it is written as steps.
Do not add a contractor to the whole site if they only need one part: send them a copy, or ask me to test path-scoped access first.
Moving to the bideward GitHub organisation
Section titled “Moving to the bideward GitHub organisation”Cloudflare Pages cannot change the repository of an existing project; its documented fix is to delete the project and create a new one pointing at the other repository. The move is therefore a rebuild of a small static project, not a reconfiguration. The repository transfer itself is in GitHub organisation and repositories, step 5. Then:
- Authorise the Cloudflare Pages app for the
bidewardorganisation on GitHub and limit it to the repositories you build with Pages (Cloudflare recommends limiting it). - Create a new Pages project from the moved repository with the same settings (publish guide, step 2). Check that its build succeeds on its
pages.devaddress. - Protect the new
pages.devaddresses (publish guide, step 6b). - Move the custom domain. Remove it from the old project and add it to the new one (Custom domains → Set up a domain). Cloudflare recreates the DNS record for a zone it already manages. The Access application is tied to the hostname, so it keeps working; test it. Verify on screen whether a hostname must be removed from the old project first.
- Delete the old project once the new site works.
Expect a gap of a few minutes on the custom domain; it is documentation only.