Improvements for website-next#9768
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
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.
a2a5e3c to
a0d9c4e
Compare
This was referenced Jun 1, 2026
This was referenced Jun 8, 2026
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.
No description provided.