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.
With the outlineTitle
config, you can set the title of the outline bar.
import { defineConfig } from 'rspress/config';
import path from 'path';
export default defineConfig({
themeConfig: {
outlineTitle: 'ON THIS PAGE',
},
});
With the prevPageText
and nextPageText
config, you can set the previous/next page text.
import { defineConfig } from 'rspress/config';
export default defineConfig({
themeConfig: {
prevPageText: 'Prev Page',
nextPageText: 'Next Page',
},
});