@docusaurus/theme-classic 0.0.0-5101 → 0.0.0-5112
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.
|
@@ -5,13 +5,6 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
:global(.theme-code-block-highlighted-line) {
|
|
9
|
-
background-color: var(--docusaurus-highlighted-code-line-bg);
|
|
10
|
-
display: block;
|
|
11
|
-
margin: 0 calc(-1 * var(--ifm-pre-padding));
|
|
12
|
-
padding: 0 var(--ifm-pre-padding);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
8
|
/* Intentionally has zero specificity, so that to be able to override
|
|
16
9
|
the background in custom CSS file due bug https://github.com/facebook/docusaurus/issues/3678 */
|
|
17
10
|
:where(:root) {
|
|
@@ -22,6 +15,13 @@ the background in custom CSS file due bug https://github.com/facebook/docusaurus
|
|
|
22
15
|
--docusaurus-highlighted-code-line-bg: rgb(100 100 100);
|
|
23
16
|
}
|
|
24
17
|
|
|
18
|
+
:global(.theme-code-block-highlighted-line) {
|
|
19
|
+
background-color: var(--docusaurus-highlighted-code-line-bg);
|
|
20
|
+
display: block;
|
|
21
|
+
margin: 0 calc(-1 * var(--ifm-pre-padding));
|
|
22
|
+
padding: 0 var(--ifm-pre-padding);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
25
|
.codeLine {
|
|
26
26
|
display: table-row;
|
|
27
27
|
counter-increment: line-count;
|
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-5112",
|
|
4
4
|
"description": "Classic theme for Docusaurus",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/theme-classic.d.ts",
|
|
@@ -20,18 +20,18 @@
|
|
|
20
20
|
"copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@docusaurus/core": "0.0.0-
|
|
24
|
-
"@docusaurus/mdx-loader": "0.0.0-
|
|
25
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
26
|
-
"@docusaurus/plugin-content-blog": "0.0.0-
|
|
27
|
-
"@docusaurus/plugin-content-docs": "0.0.0-
|
|
28
|
-
"@docusaurus/plugin-content-pages": "0.0.0-
|
|
29
|
-
"@docusaurus/theme-common": "0.0.0-
|
|
30
|
-
"@docusaurus/theme-translations": "0.0.0-
|
|
31
|
-
"@docusaurus/types": "0.0.0-
|
|
32
|
-
"@docusaurus/utils": "0.0.0-
|
|
33
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
34
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
23
|
+
"@docusaurus/core": "0.0.0-5112",
|
|
24
|
+
"@docusaurus/mdx-loader": "0.0.0-5112",
|
|
25
|
+
"@docusaurus/module-type-aliases": "0.0.0-5112",
|
|
26
|
+
"@docusaurus/plugin-content-blog": "0.0.0-5112",
|
|
27
|
+
"@docusaurus/plugin-content-docs": "0.0.0-5112",
|
|
28
|
+
"@docusaurus/plugin-content-pages": "0.0.0-5112",
|
|
29
|
+
"@docusaurus/theme-common": "0.0.0-5112",
|
|
30
|
+
"@docusaurus/theme-translations": "0.0.0-5112",
|
|
31
|
+
"@docusaurus/types": "0.0.0-5112",
|
|
32
|
+
"@docusaurus/utils": "0.0.0-5112",
|
|
33
|
+
"@docusaurus/utils-common": "0.0.0-5112",
|
|
34
|
+
"@docusaurus/utils-validation": "0.0.0-5112",
|
|
35
35
|
"@mdx-js/react": "^1.6.22",
|
|
36
36
|
"clsx": "^1.1.1",
|
|
37
37
|
"copy-text-to-clipboard": "^3.0.1",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"engines": {
|
|
65
65
|
"node": ">=16.14"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "0a08a97d1502d101defde8e3160324a291b45c64"
|
|
68
68
|
}
|
|
@@ -141,18 +141,17 @@ const aliases = {
|
|
|
141
141
|
warning: 'danger',
|
|
142
142
|
} as const;
|
|
143
143
|
|
|
144
|
-
function getAdmonitionConfig(
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
const
|
|
148
|
-
const config = AdmonitionConfigs[type];
|
|
144
|
+
function getAdmonitionConfig(unsafeType: string): AdmonitionConfig {
|
|
145
|
+
const type =
|
|
146
|
+
(aliases as {[key: string]: Props['type']})[unsafeType] ?? unsafeType;
|
|
147
|
+
const config = (AdmonitionConfigs as {[key: string]: AdmonitionConfig})[type];
|
|
149
148
|
if (config) {
|
|
150
149
|
return config;
|
|
151
150
|
}
|
|
152
151
|
console.warn(
|
|
153
152
|
`No admonition config found for admonition type "${type}". Using Info as fallback.`,
|
|
154
153
|
);
|
|
155
|
-
return AdmonitionConfigs.info
|
|
154
|
+
return AdmonitionConfigs.info;
|
|
156
155
|
}
|
|
157
156
|
|
|
158
157
|
// Workaround because it's difficult in MDX v1 to provide a MDX title as props
|
|
@@ -5,13 +5,6 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
:global(.theme-code-block-highlighted-line) {
|
|
9
|
-
background-color: var(--docusaurus-highlighted-code-line-bg);
|
|
10
|
-
display: block;
|
|
11
|
-
margin: 0 calc(-1 * var(--ifm-pre-padding));
|
|
12
|
-
padding: 0 var(--ifm-pre-padding);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
8
|
/* Intentionally has zero specificity, so that to be able to override
|
|
16
9
|
the background in custom CSS file due bug https://github.com/facebook/docusaurus/issues/3678 */
|
|
17
10
|
:where(:root) {
|
|
@@ -22,6 +15,13 @@ the background in custom CSS file due bug https://github.com/facebook/docusaurus
|
|
|
22
15
|
--docusaurus-highlighted-code-line-bg: rgb(100 100 100);
|
|
23
16
|
}
|
|
24
17
|
|
|
18
|
+
:global(.theme-code-block-highlighted-line) {
|
|
19
|
+
background-color: var(--docusaurus-highlighted-code-line-bg);
|
|
20
|
+
display: block;
|
|
21
|
+
margin: 0 calc(-1 * var(--ifm-pre-padding));
|
|
22
|
+
padding: 0 var(--ifm-pre-padding);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
25
|
.codeLine {
|
|
26
26
|
display: table-row;
|
|
27
27
|
counter-increment: line-count;
|