🔨 Add Cloudflare Pages docs deploy (parallel to RtD)#2
Merged
Conversation
Parallel to ReadTheDocs and GitHub Pages. Builds with zensical and uploads via wrangler to a new owid-docs CF Pages project. Mirrors the same pattern owid/etl is using for its docs subproject. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Routes incoming requests on the umbrella custom domain so /projects/etl/* is served from the owid-etl-docs Pages project while everything else falls through to this project's own static assets. Lets one custom domain serve docs from both repos transparently. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stands up a parallel Cloudflare Pages deploy of the umbrella docs at
owid-docs.pages.dev, alongside the existing RtD and GitHub Pages builds (both untouched). Mirrors the pattern just landed inowid/etlfor the ETL subproject..github/workflows/deploy-docs-cf.ymlowid-docs(Direct Upload, production branch =main)https://owid-docs.pages.dev/.readthedocs.yml,zensical.toml,docs/all untoucheddocs.ymlworkflow continuesBefore merging — manual setup
CLOUDFLARE_API_TOKEN,CLOUDFLARE_ACCOUNT_ID. Settings → Secrets and variables → Actions → New repository secret.Cut-over architecture (out of scope here)
docs-cf.owid.iois currently bound to theowid-etl-docsproject for/projects/etl/. Two Pages projects can't share one custom domain, so unifying them under one URL needs a small CF Worker that routes:docs-cf.owid.io/projects/etl/*→owid-etl-docs.pages.devowid-docs.pages.devThat's a separate piece of work once both projects are healthy on their pages.dev URLs.