Doc Page

Page Type

You can specify the pageType in the frontmatter metadata to use different layouts in the page. By default, the pageType of the document is doc, so the sidebar on the left and the outline on the right will appear by default. If you don't need these, you can set pageType to custom:

---
pageType: custom
---

In rspress.config.ts, you can configure the content of the sidebar, for details, please refer to Sidebar Config.

Outline Title

With the outlineTitle config, you can set the title of the outline bar.

rspress.config.ts
import { defineConfig } from 'rspress/config';
import path from 'path';

export default defineConfig({
  themeConfig: {
    outlineTitle: 'ON THIS PAGE',
  },
});

Previous/Next Page Text

With the prevPageText and nextPageText config, you can set the previous/next page text.

rspress.config.ts
import { defineConfig } from 'rspress/config';

export default defineConfig({
  themeConfig: {
    prevPageText: 'Prev Page',
    nextPageText: 'Next Page',
  },
});