Skip to content

refactor(config): merge doc config layers with Rspress - #531

Open
chenjiahan wants to merge 1 commit into
mainfrom
chenjiahan/doc-config-merge
Open

chenjiahan wants to merge 1 commit into
mainfrom
chenjiahan/doc-config-merge

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Motivation

Continue the unified configuration RFC by adding internal support for Doc configuration layers.

Changes

Resolve Doc definitions in layer order and use Rspress's mergeDocConfig for multiple definitions. Objects merge recursively, arrays append, and later function values replace earlier ones; builderConfig follows these same rules.

Load the helper only when merging is needed and return a single config unchanged. Preserve user watch files when appending configuration dependencies. Shared-layer registration will follow separately.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-02T03:10:09.983720Z aadcfc0 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: aadcfc0
Status: ✅  Deploy successful!
Preview URL: https://0e97ba00.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-doc-config-merge.rstack-cli.pages.dev

View logs

This branch has not been deployed

No deployments
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.

1 participant