@rspress/plugin-api-docgen 2.0.0-alpha.1 → 2.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/plugin-api-docgen",
3
- "version": "2.0.0-alpha.1",
3
+ "version": "2.0.0-alpha.2",
4
4
  "description": "A plugin for rspress to generate api doc.",
5
5
  "bugs": "https://github.com/web-infra-dev/rspress/issues",
6
6
  "repository": {
@@ -23,7 +23,7 @@
23
23
  "react-docgen-typescript": "2.2.2",
24
24
  "react-markdown": "8.0.7",
25
25
  "remark-gfm": "3.0.1",
26
- "@rspress/shared": "2.0.0-alpha.1"
26
+ "@rspress/shared": "2.0.0-alpha.2"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@microsoft/api-extractor": "^7.51.1",
@@ -40,7 +40,7 @@
40
40
  "unist-util-visit": "^4.1.2"
41
41
  },
42
42
  "peerDependencies": {
43
- "@rspress/core": "^2.0.0-alpha.1",
43
+ "@rspress/core": "^2.0.0-alpha.2",
44
44
  "react": ">=17.0.0",
45
45
  "react-router-dom": "^6.8.1",
46
46
  "typescript": "^5.5.3"
@@ -0,0 +1,9 @@
1
+ .rspress-plugin-api-docgen table {
2
+ table-layout: fixed;
3
+ width: 100%;
4
+ }
5
+
6
+ .rspress-plugin-api-docgen table td {
7
+ /* allow use 
 to break line */
8
+ white-space: pre-wrap;
9
+ }
@@ -4,7 +4,7 @@ import { useLang, usePageData } from '@rspress/core/runtime';
4
4
  import { getCustomMDXComponent } from '@rspress/core/theme';
5
5
  import ReactMarkdown from 'react-markdown';
6
6
  import remarkGfm from 'remark-gfm';
7
- import './API.scss';
7
+ import './API.css';
8
8
 
9
9
  export default (props: { moduleName: string }) => {
10
10
  const lang = useLang();
@@ -1,11 +0,0 @@
1
- .rspress-plugin-api-docgen {
2
- table {
3
- table-layout: fixed;
4
- width: 100%;
5
-
6
- td {
7
- // allow use 
 to break line
8
- white-space: pre-wrap;
9
- }
10
- }
11
- }