Skip to content

Commit

Permalink
docs(fix): should use ssr for document (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
SoonIter authored Sep 19, 2024
1 parent 0fffb8b commit a13c877
Show file tree
Hide file tree
Showing 4 changed files with 446 additions and 199 deletions.
7 changes: 0 additions & 7 deletions packages/document/docs/404.mdx

This file was deleted.

2 changes: 1 addition & 1 deletion packages/document/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
"dependencies": {
"react-markdown": "^9.0.1",
"@rstack-dev/doc-ui": "1.5.2",
"rspress": "^1.30.0"
"rspress": "^1.31.0"
}
}
5 changes: 4 additions & 1 deletion packages/document/rspress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export default defineConfig({
markdown: {
checkDeadLinks: true,
},
ssg: {
strict: true,
},
route: {
cleanUrls: true,
// exclude document fragments from routes
Expand All @@ -41,7 +44,7 @@ export default defineConfig({
content: 'https://github.com/web-infra-dev/rsdoctor',
},
{
icon: 'twitter',
icon: 'X',
mode: 'link',
content: 'https://twitter.com/rspack_dev',
},
Expand Down
Loading

0 comments on commit a13c877

Please sign in to comment.