docusaurus-theme-openapi-docs 1.3.0 → 1.3.1
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/lib/theme/ParamsItem/index.js +6 -1
- package/lib/theme/SchemaItem/index.js +6 -1
- package/lib-next/theme/ParamsItem/index.js +6 -1
- package/lib-next/theme/SchemaItem/index.js +6 -1
- package/package.json +4 -3
- package/src/theme/ParamsItem/index.js +6 -1
- package/src/theme/SchemaItem/index.js +6 -1
|
@@ -9,6 +9,7 @@ import React from "react";
|
|
|
9
9
|
|
|
10
10
|
import CodeBlock from "@theme/CodeBlock";
|
|
11
11
|
import ReactMarkdown from "react-markdown";
|
|
12
|
+
import rehypeRaw from "rehype-raw";
|
|
12
13
|
|
|
13
14
|
import { createDescription } from "../../markdown/createDescription";
|
|
14
15
|
import { getQualifierMessage, getSchemaName } from "../../markdown/schema";
|
|
@@ -28,7 +29,10 @@ function ParamsItem({
|
|
|
28
29
|
|
|
29
30
|
const renderSchema = guard(getQualifierMessage(schema), (message) => (
|
|
30
31
|
<div>
|
|
31
|
-
<ReactMarkdown
|
|
32
|
+
<ReactMarkdown
|
|
33
|
+
children={createDescription(message)}
|
|
34
|
+
rehypePlugins={[rehypeRaw]}
|
|
35
|
+
/>
|
|
32
36
|
</div>
|
|
33
37
|
));
|
|
34
38
|
|
|
@@ -48,6 +52,7 @@ function ParamsItem({
|
|
|
48
52
|
);
|
|
49
53
|
},
|
|
50
54
|
}}
|
|
55
|
+
rehypePlugins={[rehypeRaw]}
|
|
51
56
|
/>
|
|
52
57
|
</div>
|
|
53
58
|
));
|
|
@@ -9,6 +9,7 @@ import React from "react";
|
|
|
9
9
|
|
|
10
10
|
import CodeBlock from "@theme/CodeBlock";
|
|
11
11
|
import ReactMarkdown from "react-markdown";
|
|
12
|
+
import rehypeRaw from "rehype-raw";
|
|
12
13
|
|
|
13
14
|
import { createDescription } from "../../markdown/createDescription";
|
|
14
15
|
import { guard } from "../../markdown/utils";
|
|
@@ -45,13 +46,17 @@ function SchemaItem({
|
|
|
45
46
|
);
|
|
46
47
|
},
|
|
47
48
|
}}
|
|
49
|
+
rehypePlugins={[rehypeRaw]}
|
|
48
50
|
/>
|
|
49
51
|
</div>
|
|
50
52
|
));
|
|
51
53
|
|
|
52
54
|
const renderQualifierMessage = guard(qualifierMessage, (message) => (
|
|
53
55
|
<div className={styles.schemaQualifierMessage}>
|
|
54
|
-
<ReactMarkdown
|
|
56
|
+
<ReactMarkdown
|
|
57
|
+
children={createDescription(message)}
|
|
58
|
+
rehypePlugins={[rehypeRaw]}
|
|
59
|
+
/>
|
|
55
60
|
</div>
|
|
56
61
|
));
|
|
57
62
|
|
|
@@ -9,6 +9,7 @@ import React from "react";
|
|
|
9
9
|
|
|
10
10
|
import CodeBlock from "@theme/CodeBlock";
|
|
11
11
|
import ReactMarkdown from "react-markdown";
|
|
12
|
+
import rehypeRaw from "rehype-raw";
|
|
12
13
|
|
|
13
14
|
import { createDescription } from "../../markdown/createDescription";
|
|
14
15
|
import { getQualifierMessage, getSchemaName } from "../../markdown/schema";
|
|
@@ -28,7 +29,10 @@ function ParamsItem({
|
|
|
28
29
|
|
|
29
30
|
const renderSchema = guard(getQualifierMessage(schema), (message) => (
|
|
30
31
|
<div>
|
|
31
|
-
<ReactMarkdown
|
|
32
|
+
<ReactMarkdown
|
|
33
|
+
children={createDescription(message)}
|
|
34
|
+
rehypePlugins={[rehypeRaw]}
|
|
35
|
+
/>
|
|
32
36
|
</div>
|
|
33
37
|
));
|
|
34
38
|
|
|
@@ -48,6 +52,7 @@ function ParamsItem({
|
|
|
48
52
|
);
|
|
49
53
|
},
|
|
50
54
|
}}
|
|
55
|
+
rehypePlugins={[rehypeRaw]}
|
|
51
56
|
/>
|
|
52
57
|
</div>
|
|
53
58
|
));
|
|
@@ -9,6 +9,7 @@ import React from "react";
|
|
|
9
9
|
|
|
10
10
|
import CodeBlock from "@theme/CodeBlock";
|
|
11
11
|
import ReactMarkdown from "react-markdown";
|
|
12
|
+
import rehypeRaw from "rehype-raw";
|
|
12
13
|
|
|
13
14
|
import { createDescription } from "../../markdown/createDescription";
|
|
14
15
|
import { guard } from "../../markdown/utils";
|
|
@@ -45,13 +46,17 @@ function SchemaItem({
|
|
|
45
46
|
);
|
|
46
47
|
},
|
|
47
48
|
}}
|
|
49
|
+
rehypePlugins={[rehypeRaw]}
|
|
48
50
|
/>
|
|
49
51
|
</div>
|
|
50
52
|
));
|
|
51
53
|
|
|
52
54
|
const renderQualifierMessage = guard(qualifierMessage, (message) => (
|
|
53
55
|
<div className={styles.schemaQualifierMessage}>
|
|
54
|
-
<ReactMarkdown
|
|
56
|
+
<ReactMarkdown
|
|
57
|
+
children={createDescription(message)}
|
|
58
|
+
rehypePlugins={[rehypeRaw]}
|
|
59
|
+
/>
|
|
55
60
|
</div>
|
|
56
61
|
));
|
|
57
62
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docusaurus-theme-openapi-docs",
|
|
3
3
|
"description": "OpenAPI theme for Docusaurus.",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"openapi",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"buffer": "^6.0.3",
|
|
51
51
|
"clsx": "^1.1.1",
|
|
52
52
|
"crypto-js": "^4.1.1",
|
|
53
|
-
"docusaurus-plugin-openapi-docs": "^1.3.
|
|
53
|
+
"docusaurus-plugin-openapi-docs": "^1.3.1",
|
|
54
54
|
"immer": "^9.0.7",
|
|
55
55
|
"lodash": "^4.17.20",
|
|
56
56
|
"process": "^0.11.10",
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"react-modal": "^3.15.1",
|
|
61
61
|
"react-redux": "^7.2.0",
|
|
62
62
|
"redux-devtools-extension": "^2.13.8",
|
|
63
|
+
"rehype-raw": "^6.1.1",
|
|
63
64
|
"webpack": "^5.61.0",
|
|
64
65
|
"xml-formatter": "^2.6.1"
|
|
65
66
|
},
|
|
@@ -70,5 +71,5 @@
|
|
|
70
71
|
"engines": {
|
|
71
72
|
"node": ">=14"
|
|
72
73
|
},
|
|
73
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "5f41e8dc4981409902ae96a7d127a2ae7eb9a47d"
|
|
74
75
|
}
|
|
@@ -9,6 +9,7 @@ import React from "react";
|
|
|
9
9
|
|
|
10
10
|
import CodeBlock from "@theme/CodeBlock";
|
|
11
11
|
import ReactMarkdown from "react-markdown";
|
|
12
|
+
import rehypeRaw from "rehype-raw";
|
|
12
13
|
|
|
13
14
|
import { createDescription } from "../../markdown/createDescription";
|
|
14
15
|
import { getQualifierMessage, getSchemaName } from "../../markdown/schema";
|
|
@@ -28,7 +29,10 @@ function ParamsItem({
|
|
|
28
29
|
|
|
29
30
|
const renderSchema = guard(getQualifierMessage(schema), (message) => (
|
|
30
31
|
<div>
|
|
31
|
-
<ReactMarkdown
|
|
32
|
+
<ReactMarkdown
|
|
33
|
+
children={createDescription(message)}
|
|
34
|
+
rehypePlugins={[rehypeRaw]}
|
|
35
|
+
/>
|
|
32
36
|
</div>
|
|
33
37
|
));
|
|
34
38
|
|
|
@@ -48,6 +52,7 @@ function ParamsItem({
|
|
|
48
52
|
);
|
|
49
53
|
},
|
|
50
54
|
}}
|
|
55
|
+
rehypePlugins={[rehypeRaw]}
|
|
51
56
|
/>
|
|
52
57
|
</div>
|
|
53
58
|
));
|
|
@@ -9,6 +9,7 @@ import React from "react";
|
|
|
9
9
|
|
|
10
10
|
import CodeBlock from "@theme/CodeBlock";
|
|
11
11
|
import ReactMarkdown from "react-markdown";
|
|
12
|
+
import rehypeRaw from "rehype-raw";
|
|
12
13
|
|
|
13
14
|
import { createDescription } from "../../markdown/createDescription";
|
|
14
15
|
import { guard } from "../../markdown/utils";
|
|
@@ -45,13 +46,17 @@ function SchemaItem({
|
|
|
45
46
|
);
|
|
46
47
|
},
|
|
47
48
|
}}
|
|
49
|
+
rehypePlugins={[rehypeRaw]}
|
|
48
50
|
/>
|
|
49
51
|
</div>
|
|
50
52
|
));
|
|
51
53
|
|
|
52
54
|
const renderQualifierMessage = guard(qualifierMessage, (message) => (
|
|
53
55
|
<div className={styles.schemaQualifierMessage}>
|
|
54
|
-
<ReactMarkdown
|
|
56
|
+
<ReactMarkdown
|
|
57
|
+
children={createDescription(message)}
|
|
58
|
+
rehypePlugins={[rehypeRaw]}
|
|
59
|
+
/>
|
|
55
60
|
</div>
|
|
56
61
|
));
|
|
57
62
|
|