Skip to content

DS1: the docs site on Workers - #2

Merged
pullely merged 1 commit into
mainfrom
orun/DS-2-the-docs-site-on-workers
Oct 28, 2026
Merged

pullely merged 1 commit into
mainfrom
orun/DS-2-the-docs-site-on-workers

Conversation

@pullely

@pullely pullely commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Vercel's Docusaurus example (vercel/examples framework-boilerplates/docusaurus-2 at de86723: Docusaurus 2.0.1's classic template) in apps/web, moved to Docusaurus 3.10.2 — React 19, MDX 3, prism-react-renderer 2, an ESM config, onBrokenMarkdownLinks under markdown.hooks — and built fully static: docusaurus build writes every docs page, blog post, tag page, archive, the RSS and Atom feeds, the sitemap and the 404 page to build/, and one small Worker (worker/index.ts) hands requests matching no file back to the assets for the site's 404 page. Links without a trailing slash, as Docusaurus renders them, answered directly (html_handling drop-trailing-slash). The docs and the blog live under content/ (apps/web/docs is the component's generated catalog pages). The site's name and repository are one seam (site.js SITE_NAME, SOURCE_URL) that docusaurus.config.js reads for the title, the navbar, the footer, the GitHub links and every Edit this page link; each deploy builds for its own origin (PUBLIC_SITE_URL: SITE_URL, else the environment's workers.dev URL). component.yaml is the deploy contract with a smoke over /, /docs/intro, the blog's feed and a 404. tests/web (vitest): the seam and where the config reads it, the edit links, the origin, the Worker's assets config, the template's docs, sidebar and blog. typecheck, lint, test and build are green, and wrangler dev serves every docs page, post, tag page, feed, the sitemap and the 404.

🤖 Generated with Claude Code

Vercel's Docusaurus example (vercel/examples framework-boilerplates/docusaurus-2 at de86723: Docusaurus 2.0.1's classic template) in apps/web, moved to Docusaurus 3.10.2 — React 19, MDX 3, prism-react-renderer 2, an ESM config, onBrokenMarkdownLinks under markdown.hooks — and built fully static: docusaurus build writes every docs page, blog post, tag page, archive, the RSS and Atom feeds, the sitemap and the 404 page to build/, and one small Worker (worker/index.ts) hands requests matching no file back to the assets for the site's 404 page. Links without a trailing slash, as Docusaurus renders them, answered directly (html_handling drop-trailing-slash). The docs and the blog live under content/ (apps/web/docs is the component's generated catalog pages). The site's name and repository are one seam (site.js SITE_NAME, SOURCE_URL) that docusaurus.config.js reads for the title, the navbar, the footer, the GitHub links and every Edit this page link; each deploy builds for its own origin (PUBLIC_SITE_URL: SITE_URL, else the environment's workers.dev URL). component.yaml is the deploy contract with a smoke over /, /docs/intro, the blog's feed and a 404. tests/web (vitest): the seam and where the config reads it, the edit links, the origin, the Worker's assets config, the template's docs, sidebar and blog. typecheck, lint, test and build are green, and wrangler dev serves every docs page, post, tag page, feed, the sitemap and the 404.

Co-Authored-By: Claude <noreply@anthropic.com>
Orun-Task: DS-2
@pullely
pullely merged commit 36e5d91 into main Oct 28, 2026
2 checks passed
@pullely
pullely deleted the orun/DS-2-the-docs-site-on-workers branch October 28, 2026 15:06
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.

2 participants