docs: update blog UI - #1882
Conversation
Deploying rslib with
|
| Latest commit: |
252ea0c
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://1c70e01c.rslib.pages.dev |
| Branch Preview URL: | https://david-feat-blog-ui.rslib.pages.dev |
There was a problem hiding this comment.
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
BlogListcomponent that derives blog cards fromusePages()+ frontmatter. - Introduce a custom
DocLayoutwrapper 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
@componentsalias 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.
There was a problem hiding this comment.
💡 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".
Summary
This PR aligns the Rslib blog with the current Rsbuild blog UI so posts use consistent cards, metadata, and navigation.
Checklist