Edit Link Feature
Rspress has a built-in "Edit this page" feature that allows users to directly jump to GitHub to edit the current document page.
Configuration Method
Add editLink configuration in themeConfig of rspress.config.ts:
Configuration Options
How It Works
Rspress will automatically concatenate docRepoBaseUrl with the current page's file path to generate the complete edit link.
For example, when a user visits the /guide/edit-link page, the edit link will point to:
Disabling the Feature
If you don't need this feature, simply don't configure editLink and it won't be displayed by default.
Example
Configuration for this project: