Repository navigation
docs: rebuild documentation site (SEO, quick starts, Cloudflare preview) - #163
Merged
Merged
Conversation
- Fix broken styles: remove stale dotenv.run CNAME and target Cloudflare Pages at the domain root (absolute /_astro asset paths now resolve) - Simplify the site: reorganize sidebar into Getting Started / Popular / Bundlers / Guides and drop empty/thin pages - Add prominent quick starts for @ngx-env/builder (Angular), @dotenv-run/cli and @dotenv-run/core on the landing and Quick Start pages - Add a dedicated, SEO-focused Angular (@ngx-env/builder) page and emphasize monorepo (Nx/Turborepo) usage - SEO: per-page titles/descriptions, keywords, Open Graph tags, canonical URLs, sitemap and robots.txt - Replace the GitHub Pages workflow with a Cloudflare Pages workflow that deploys production on main and posts a preview URL on each PR Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P9Pkjv6hPMrpxE94tkRQhc
Re-run the docs workflow now that CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID are configured, so the PR gets a preview deployment. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P9Pkjv6hPMrpxE94tkRQhc
cloudflare/wrangler-action runs `pnpm add wrangler` at the workspace root, which pnpm rejects on this monorepo (ERR_PNPM_ADDING_TO_ROOT). Invoke wrangler through npx in isolation and parse the preview URL from its output. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P9Pkjv6hPMrpxE94tkRQhc
Fresh run so the Cloudflare deploy is exercised with the npx-based workflow (head), rather than re-running stale pre-fix runs. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P9Pkjv6hPMrpxE94tkRQhc
📚 Docs previewYour changes to the documentation site are deployed:
This comment updates automatically on every push to the PR. |
Drop the Starlight header logo and the landing-page hero image so the site uses the plain wordmark. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P9Pkjv6hPMrpxE94tkRQhc
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.
What & why
The docs site was rendering without styles. Root cause: the site was serving from a subpath while assets were referenced from the domain root, and the
dotenv.runcustom domain (which is no longer owned) meant every deploy dropped the domain and all/_astro/*assets 404'd. This rebuilds the site, fixes the hosting, and makes it easy to preview.Changes
Fix the broken styles
CNAME(dotenv.runis no longer owned)./_astro/*asset paths resolve correctly.Simpler, clearer content
@ngx-env/builder— new dedicated, SEO-focused page.@dotenv-run/cli@dotenv-run/coreSEO
robots.txt.Preview on the PR (Cloudflare Pages)
.github/workflows/docs.yml, which deploys production onmainand posts a preview URL comment on every PR.One-time setup to enable previews
The workflow safely no-ops until these exist (so it won't fail PR checks):
dotenv-run:CLOUDFLARE_API_TOKEN(Pages: Edit) andCLOUDFLARE_ACCOUNT_ID.Full instructions are in
docs/README.md. Once set up, this PR will get a preview link automatically.Verification
Built locally (
pnpm --filter @dotenv-run/docs build, 16 pages) and rendered the homepage, Quick Start and Angular pages with a headless browser — styles, sidebar, tabs and code blocks all render correctly.🤖 Generated with Claude Code
Generated by Claude Code