Skip to content

docs: update blog UI - #1882

Merged
Timeless0911 merged 1 commit into
mainfrom
david/feat-blog-ui
Aug 27, 2026
Merged

docs: update blog UI#1882
Timeless0911 merged 1 commit into
mainfrom
david/feat-blog-ui

Conversation

@Timeless0911

Copy link
Copy Markdown
Contributor

Summary

This PR aligns the Rslib blog with the current Rsbuild blog UI so posts use consistent cards, metadata, and navigation.

  • Replace the hand-written localized blog indexes with shared blog cards generated from page frontmatter.
  • Add localized author metadata and blog back navigation to the introduction post.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI lite review requested due to automatic review settings August 27, 2026 11:38
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rslib with  Cloudflare Pages  Cloudflare Pages

Latest commit: 252ea0c
Status: ✅  Deploy successful!
Preview URL: https://1c70e01c.rslib.pages.dev
Branch Preview URL: https://david-feat-blog-ui.rslib.pages.dev

View logs

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

Aligns the Rslib documentation site’s blog pages with the Rsbuild blog UI by switching to shared blog-card rendering driven by page frontmatter, and by adding blog navigation/metadata components to individual posts.

Changes:

  • Add a shared BlogList component that derives blog cards from usePages() + frontmatter.
  • Introduce a custom DocLayout wrapper to inject the blog back button before doc content.
  • Update localized blog index pages and introduction posts to use the new UI (authors metadata), plus fix the @components alias path and extend the cspell dictionary.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
website/theme/index.tsx Adds a custom DocLayout that injects a blog back button; continues exporting the base theme pieces.
website/theme/components/BlogList.tsx New shared blog list that builds post cards from page frontmatter and sorts by date.
website/rspress.config.ts Fixes the @components alias to point at theme/components.
website/docs/zh/blog/introducing-rslib.mdx Adds localized authors metadata rendering and updates the post description.
website/docs/zh/blog/index.mdx Replaces hand-written index content with <BlogList />.
website/docs/en/blog/introducing-rslib.mdx Adds localized authors metadata rendering and updates the post description.
website/docs/en/blog/index.mdx Replaces hand-written index content with <BlogList />.
scripts/dictionary.txt Adds author names to the project dictionary.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread website/theme/components/BlogList.tsx

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 252ea0cdbb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread website/theme/components/BlogList.tsx
@Timeless0911
Timeless0911 merged commit 49abb77 into main Aug 27, 2026
13 checks passed
@Timeless0911
Timeless0911 deleted the david/feat-blog-ui branch August 27, 2026 11:44
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