Skip to content

Improvements for website-next#9768

Merged
tobias-tengler merged 11 commits into
mainfrom
website-next
May 22, 2026
Merged

Improvements for website-next#9768
tobias-tengler merged 11 commits into
mainfrom
website-next

Conversation

@tobias-tengler

Copy link
Copy Markdown
Member

No description provided.

@tobias-tengler tobias-tengler marked this pull request as ready for review May 22, 2026 08:29
Copilot AI review requested due to automatic review settings May 22, 2026 08:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the website-next Next.js static-export site to improve docs rendering (including build-time Mermaid), add SEO metadata/routes, and introduce an NGINX-based container/deployment setup.

Changes:

  • Render Mermaid diagrams at build time via rehype-mermaid (Playwright/Chromium) and remove client-side Mermaid rendering.
  • Add git-backed “last updated” metadata for docs and use it for doc footers + sitemap last-modified timestamps.
  • Add robots/sitemap routes and ship an NGINX + Docker setup (including redirect rules and caching headers).

Reviewed changes

Copilot reviewed 39 out of 75 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
website-next/yarn.lock Lockfile updates for Mermaid/rehype-mermaid/Playwright and related deps.
website-next/package.json Adds rehype-mermaid + playwright, removes runtime mermaid, adds browserslist.
website-next/src/mdx-plugins.ts Introduces rehype pipeline (mermaid + style fix) alongside existing remark pipeline.
website-next/src/rehype/styleStringToObject.mjs New rehype pass converting style strings to MDX-compatible objects.
website-next/src/helpers/compileDoc.ts Hooks rehype plugins into MDX compilation for docs.
website-next/src/helpers/siteUrl.ts Centralizes canonical site URL for metadata/sitemap/robots.
website-next/src/helpers/gitMetadata.ts New manifest-based git attribution for docs/blog/content pages.
website-next/src/design-system/MermaidDiagram.tsx Removes client-side Mermaid renderer component.
website-next/src/design-system/CodeBlock.tsx Stops special-casing mermaid code blocks (now handled at build time).
website-next/src/design-system/DocPageMeta.tsx New footer component showing last-updated metadata.
website-next/next.config.ts Enables rehype plugins for @next/mdx; marks Playwright/Mermaid packages as server externals.
website-next/app/layout.tsx Adds global site metadata + Inter font setup.
website-next/app/globals.css Defines Tailwind --font-sans theme to use Inter variable font.
website-next/app/sitemap.ts New sitemap generator covering static pages, docs content, and blog posts.
website-next/app/robots.ts New robots route referencing sitemap + host.
website-next/app/docs/page.tsx New docs landing page listing products.
website-next/app/docs/[...slug]/page.tsx Adds doc-page git metadata footer; tightens params typing.
website-next/app/blogs/page.tsx New blogs index page listing posts.
website-next/app/(content)/resources/page.tsx Adds placeholder Resources marketing page.
website-next/app/(content)/page.tsx Simplifies homepage links (points to example docs).
website-next/content/docs/hotchocolate/structure.yaml Adds Hot Chocolate docs structure stub.
website-next/content/docs/hotchocolate/index.md Adds Hot Chocolate docs placeholder page.
website-next/content/docs/fusion/structure.yaml Adds Fusion docs structure stub.
website-next/content/docs/fusion/index.md Adds Fusion docs placeholder page.
website-next/content/docs/strawberryshake/structure.yaml Adds Strawberry Shake docs structure stub.
website-next/content/docs/strawberryshake/index.md Adds Strawberry Shake docs placeholder page.
website-next/content/docs/nitro/structure.yaml Adds Nitro docs structure stub.
website-next/content/docs/nitro/index.md Adds Nitro docs placeholder page.
website-next/content/docs/mocha/structure.yaml Adds Mocha docs structure stub.
website-next/content/docs/mocha/index.md Adds Mocha docs placeholder page.
website-next/content/docs/example/structure.yaml Adds example docs section structure.
website-next/content/docs/example/getting-started.md Adds a large example doc to exercise the renderer.
website-next/content/docs/example/mermaid-showcase.md Adds Mermaid showcase doc to validate build-time SVG rendering.
website-next/nginx/nginx.conf New base NGINX config (gzip/static settings).
website-next/nginx/conf.d/default.conf New server block for static export, caching rules, and clean URLs.
website-next/nginx/conf.d/redirects.conf New centralized redirect rules for legacy paths/docs versions.
website-next/Dockerfile New NGINX image packaging for the pre-built out/ export + gzip_static assets.
website-next/.dockerignore New Docker ignore rules for smaller build contexts.
.github/workflows/publish-website-next.yml New workflow to build the site and build a Docker image (no push yet).
.github/workflows/ci.yml Installs Playwright Chromium in website-next CI job before lint/build.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread website-next/nginx/conf.d/default.conf Outdated
Comment thread website-next/nginx/nginx.conf Outdated
Comment thread website-next/src/helpers/siteUrl.ts
Comment thread website-next/app/sitemap.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants