Skip to content

Commit 1320858

Browse files
authored
chore: remove documate in Rspress cases (#137)
1 parent 3f69a9e commit 1320858

File tree

10 files changed

+6
-32
lines changed

10 files changed

+6
-32
lines changed

cases/rspress/rspress-website-mdxjs-ssg-false/docs/en/guide/start/introduction.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,12 @@ Rspress supports two ways to customize themes:
176176
// theme/index.tsx
177177
import Theme from 'rspress/theme';
178178
import { NoSSR } from 'rspress/runtime';
179-
import { Documate } from '@documate/react';
180-
import '@documate/react/dist/style.css';
181179

182180
const Layout = () => (
183181
<Theme.Layout
184182
afterNavTitle={
185183
<NoSSR>
186-
<Documate endpoint="" />
184+
<></>
187185
</NoSSR>
188186
}
189187
/>

cases/rspress/rspress-website-mdxjs-ssg-false/docs/zh/guide/start/introduction.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,14 +177,12 @@ Rspress 支持两种自定义主题的方式:
177177
// theme/index.tsx
178178
import Theme from 'rspress/theme';
179179
import { NoSSR } from 'rspress/runtime';
180-
import { Documate } from '@documate/react';
181-
import '@documate/react/dist/style.css';
182180

183181
const Layout = () => (
184182
<Theme.Layout
185183
afterNavTitle={
186184
<NoSSR>
187-
<Documate endpoint="" />
185+
<></>
188186
</NoSSR>
189187
}
190188
/>

cases/rspress/rspress-website-mdxjs-ssg-false/documate.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

cases/rspress/rspress-website-mdxjs-ssg-false/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@
1818
"typescript": "^5",
1919
"@types/react": "18.2.0",
2020
"@rsbuild/plugin-sass": "^1.2.2",
21-
"@documate/documate": "^0.1.0",
22-
"@documate/react": "0.2.1",
2321
"framer-motion": "10.16.4"
2422
},
2523
"files": [
2624
"docs"
2725
]
28-
}
26+
}

cases/rspress/rspress-website-mdxjs-ssg-false/theme/index.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* Fix the @documate/react stack context style problem */
21
.dialog {
32
position: fixed !important;
43
z-index: 100 !important;

cases/rspress/rspress-website-mdxjs/docs/en/guide/start/introduction.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,12 @@ Rspress supports two ways to customize themes:
176176
// theme/index.tsx
177177
import Theme from 'rspress/theme';
178178
import { NoSSR } from 'rspress/runtime';
179-
import { Documate } from '@documate/react';
180-
import '@documate/react/dist/style.css';
181179

182180
const Layout = () => (
183181
<Theme.Layout
184182
afterNavTitle={
185183
<NoSSR>
186-
<Documate endpoint="" />
184+
<></>
187185
</NoSSR>
188186
}
189187
/>

cases/rspress/rspress-website-mdxjs/docs/zh/guide/start/introduction.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,14 +177,12 @@ Rspress 支持两种自定义主题的方式:
177177
// theme/index.tsx
178178
import Theme from 'rspress/theme';
179179
import { NoSSR } from 'rspress/runtime';
180-
import { Documate } from '@documate/react';
181-
import '@documate/react/dist/style.css';
182180

183181
const Layout = () => (
184182
<Theme.Layout
185183
afterNavTitle={
186184
<NoSSR>
187-
<Documate endpoint="" />
185+
<></>
188186
</NoSSR>
189187
}
190188
/>

cases/rspress/rspress-website-mdxjs/documate.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

cases/rspress/rspress-website-mdxjs/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@
1818
"typescript": "^5",
1919
"@types/react": "18.2.0",
2020
"@rsbuild/plugin-sass": "^1.2.2",
21-
"@documate/documate": "^0.1.0",
22-
"@documate/react": "0.2.1",
2321
"framer-motion": "10.16.4"
2422
},
2523
"files": [
2624
"docs"
2725
]
28-
}
26+
}

cases/rspress/rspress-website-mdxjs/theme/index.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* Fix the @documate/react stack context style problem */
21
.dialog {
32
position: fixed !important;
43
z-index: 100 !important;

0 commit comments

Comments
 (0)