@docusaurus/theme-classic 0.0.0-4652 → 0.0.0-4655
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.
|
@@ -8,14 +8,14 @@ import React from 'react';
|
|
|
8
8
|
export default function IconLanguage({width = 20, height = 20, ...props}) {
|
|
9
9
|
return (
|
|
10
10
|
<svg
|
|
11
|
-
viewBox="0 0
|
|
11
|
+
viewBox="0 0 24 24"
|
|
12
12
|
width={width}
|
|
13
13
|
height={height}
|
|
14
|
-
aria-hidden
|
|
14
|
+
aria-hidden
|
|
15
15
|
{...props}>
|
|
16
16
|
<path
|
|
17
17
|
fill="currentColor"
|
|
18
|
-
d="
|
|
18
|
+
d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"
|
|
19
19
|
/>
|
|
20
20
|
</svg>
|
|
21
21
|
);
|
|
@@ -30,8 +30,22 @@ const MDXComponents = {
|
|
|
30
30
|
return <Head {...props}>{unwrappedChildren}</Head>;
|
|
31
31
|
},
|
|
32
32
|
code: (props) => {
|
|
33
|
+
const inlineElements = [
|
|
34
|
+
'a',
|
|
35
|
+
'b',
|
|
36
|
+
'big',
|
|
37
|
+
'i',
|
|
38
|
+
'span',
|
|
39
|
+
'em',
|
|
40
|
+
'strong',
|
|
41
|
+
'sup',
|
|
42
|
+
'sub',
|
|
43
|
+
'small',
|
|
44
|
+
];
|
|
33
45
|
const shouldBeInline = React.Children.toArray(props.children).every(
|
|
34
|
-
(el) =>
|
|
46
|
+
(el) =>
|
|
47
|
+
(typeof el === 'string' && !el.includes('\n')) ||
|
|
48
|
+
(React.isValidElement(el) && inlineElements.includes(el.props.mdxType)),
|
|
35
49
|
);
|
|
36
50
|
return shouldBeInline ? <code {...props} /> : <CodeBlock {...props} />;
|
|
37
51
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/theme-classic",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-4655",
|
|
4
4
|
"description": "Classic theme for Docusaurus",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/theme-classic.d.ts",
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
"format:lib-next": "prettier --config ../../.prettierrc --write \"lib-next/**/*.{js,ts,jsx,tsc}\""
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@docusaurus/core": "0.0.0-
|
|
25
|
-
"@docusaurus/plugin-content-blog": "0.0.0-
|
|
26
|
-
"@docusaurus/plugin-content-docs": "0.0.0-
|
|
27
|
-
"@docusaurus/plugin-content-pages": "0.0.0-
|
|
28
|
-
"@docusaurus/theme-common": "0.0.0-
|
|
29
|
-
"@docusaurus/theme-translations": "0.0.0-
|
|
30
|
-
"@docusaurus/utils": "0.0.0-
|
|
31
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
32
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
24
|
+
"@docusaurus/core": "0.0.0-4655",
|
|
25
|
+
"@docusaurus/plugin-content-blog": "0.0.0-4655",
|
|
26
|
+
"@docusaurus/plugin-content-docs": "0.0.0-4655",
|
|
27
|
+
"@docusaurus/plugin-content-pages": "0.0.0-4655",
|
|
28
|
+
"@docusaurus/theme-common": "0.0.0-4655",
|
|
29
|
+
"@docusaurus/theme-translations": "0.0.0-4655",
|
|
30
|
+
"@docusaurus/utils": "0.0.0-4655",
|
|
31
|
+
"@docusaurus/utils-common": "0.0.0-4655",
|
|
32
|
+
"@docusaurus/utils-validation": "0.0.0-4655",
|
|
33
33
|
"@mdx-js/react": "^1.6.22",
|
|
34
34
|
"clsx": "^1.1.1",
|
|
35
35
|
"copy-text-to-clipboard": "^3.0.1",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"rtlcss": "^3.3.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
46
|
-
"@docusaurus/types": "0.0.0-
|
|
45
|
+
"@docusaurus/module-type-aliases": "0.0.0-4655",
|
|
46
|
+
"@docusaurus/types": "0.0.0-4655",
|
|
47
47
|
"@types/mdx-js__react": "^1.5.5",
|
|
48
48
|
"@types/prismjs": "^1.26.0",
|
|
49
49
|
"@types/rtlcss": "^3.1.2",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": ">=14"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "9f0edee4694adaf8c8a6e11ef83991519e1f4b90"
|
|
63
63
|
}
|
|
@@ -15,14 +15,14 @@ export default function IconLanguage({
|
|
|
15
15
|
}: Props): JSX.Element {
|
|
16
16
|
return (
|
|
17
17
|
<svg
|
|
18
|
-
viewBox="0 0
|
|
18
|
+
viewBox="0 0 24 24"
|
|
19
19
|
width={width}
|
|
20
20
|
height={height}
|
|
21
|
-
aria-hidden
|
|
21
|
+
aria-hidden
|
|
22
22
|
{...props}>
|
|
23
23
|
<path
|
|
24
24
|
fill="currentColor"
|
|
25
|
-
d="
|
|
25
|
+
d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"
|
|
26
26
|
/>
|
|
27
27
|
</svg>
|
|
28
28
|
);
|
|
@@ -37,8 +37,22 @@ const MDXComponents: MDXComponentsObject = {
|
|
|
37
37
|
return <Head {...props}>{unwrappedChildren}</Head>;
|
|
38
38
|
},
|
|
39
39
|
code: (props) => {
|
|
40
|
+
const inlineElements = [
|
|
41
|
+
'a',
|
|
42
|
+
'b',
|
|
43
|
+
'big',
|
|
44
|
+
'i',
|
|
45
|
+
'span',
|
|
46
|
+
'em',
|
|
47
|
+
'strong',
|
|
48
|
+
'sup',
|
|
49
|
+
'sub',
|
|
50
|
+
'small',
|
|
51
|
+
];
|
|
40
52
|
const shouldBeInline = React.Children.toArray(props.children).every(
|
|
41
|
-
(el) =>
|
|
53
|
+
(el) =>
|
|
54
|
+
(typeof el === 'string' && !el.includes('\n')) ||
|
|
55
|
+
(React.isValidElement(el) && inlineElements.includes(el.props.mdxType)),
|
|
42
56
|
);
|
|
43
57
|
|
|
44
58
|
return shouldBeInline ? <code {...props} /> : <CodeBlock {...props} />;
|