Skip to content

Site: Cloudflare Pages, a /guides page by library, team roles - #4

Merged
hyanmandian merged 10 commits into
mainfrom
hyan/cloudflare-pages
Oct 9, 2026
Merged

hyanmandian merged 10 commits into
mainfrom
hyan/cloudflare-pages

Conversation

@hyanmandian

@hyanmandian hyanmandian commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

One PR for everything in flight on the site.

Cloudflare Pages instead of GitHub Pages and Vercel

  • Production: the publish job of conformance.yml deploys site/out to the Cloudflare Pages project brazilian-utils-docs, production branch main. SITE_URL defaults to https://brazilian-utils.com.br (domain root, no base path). The first deploy creates the project.
  • Previews: site-check.yml deploys each same-repo PR to the Pages branch pr-<number> and keeps one PR comment with the link. Fork PRs get no preview (no secrets).
  • vercel.json is gone; SITE_PREVIEW=true replaces the VERCEL checks (root base path, noindex meta). Cloudflare adds X-Robots-Tag: noindex to previews, and _headers adds it to the production pages.dev address.
  • site/public/_redirects sends the pages of the old JavaScript site at brazilian-utils.com.br to where they are now, including /migration-v1-to-v2 → the JavaScript migration guide.
  • Docs (pipeline, privacy, READMEs, roadmap) describe Cloudflare.

Guides by library (was #5)

Team roles (was #6)

  • Hyan Mandian: Project Founder / Fundador do projeto. Camila Maia, Maria Antônia Maia, Nilton Pimentel: Python contributor. Leonel Sanches da Silva: Rust, Ruby, Go and .NET contributor.

Before merging

Secrets CLOUDFLARE_API_TOKEN (Cloudflare Pages: Edit) and CLOUDFLARE_ACCOUNT_ID (set), variable PUBLISH_SITE=true. Until the token exists, the preview step fails.

Checked locally

check:i18n --strict, lint --max-warnings 0, build, typecheck, actionlint, npm test (the 3 failures need the Python/Go/Rust toolchains and fail on main too). Production build: no noindex, canonical https://brazilian-utils.com.br/; SITE_PREVIEW=true build: noindex meta, robots.txt without sitemap.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RaUEDkvXY8rVWTJG2GKfhu

The publish job deploys site/out to the Cloudflare Pages project brazilian-utils-docs (production
branch main) and SITE_URL defaults to https://brazilian-utils.com.br. site / check deploys each
same-repo PR to the branch pr-<number> and links it in one PR comment. SITE_PREVIEW=true replaces
the VERCEL checks (root base path, noindex). public/_headers keeps the security headers and
public/_redirects sends the pages of the old JavaScript site to their new places.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RaUEDkvXY8rVWTJG2GKfhu
@vercel

vercel Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Error Error Oct 9, 2026 3:40am UTC

… first deploy

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RaUEDkvXY8rVWTJG2GKfhu
hyanmandian and others added 3 commits October 9, 2026 00:38
/guides lists every guide under the library that publishes it, and the header links there. In
the sidebar the overview comes first, then a folder per library with guides: JavaScript today,
any other library as soon as it declares site.usage.guides. The page is in the sitemap and the
search.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RaUEDkvXY8rVWTJG2GKfhu
…ides

`order` (default 0) sorts the guides of a library, then the file name: the JavaScript migration
guide uses order: 1 to come after the others. Documented in the usage files page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RaUEDkvXY8rVWTJG2GKfhu
@hyanmandian hyanmandian changed the title Site: Cloudflare Pages for the site and the PR previews, no more Vercel Site: Cloudflare Pages, a /guides page by library, team roles Oct 9, 2026
…6.0.0–16.3.7)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RaUEDkvXY8rVWTJG2GKfhu
@github-actions

github-actions Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Preview: https://pr-4.brazilian-utils-docs.pages.dev (9578d8d)

…iles next to the guides

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RaUEDkvXY8rVWTJG2GKfhu
@hyanmandian
hyanmandian merged commit 3e0fc2d into main Oct 9, 2026
5 checks passed
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.

1 participant