@docusaurus/theme-classic 4.0.0-canary-6870 → 4.0.0-canary-6872
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/index.js +2 -2
- package/package.json +14 -14
- package/src/index.ts +1 -1
package/lib/index.js
CHANGED
|
@@ -9,7 +9,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
9
9
|
exports.validateOptions = exports.validateThemeConfig = exports.getSwizzleConfig = void 0;
|
|
10
10
|
exports.default = themeClassic;
|
|
11
11
|
const tslib_1 = require("tslib");
|
|
12
|
-
const
|
|
12
|
+
const node_path_1 = tslib_1.__importDefault(require("node:path"));
|
|
13
13
|
const rtlcss_1 = tslib_1.__importDefault(require("rtlcss"));
|
|
14
14
|
const theme_translations_1 = require("@docusaurus/theme-translations");
|
|
15
15
|
const translations_1 = require("./translations");
|
|
@@ -49,7 +49,7 @@ function themeClassic(context, options) {
|
|
|
49
49
|
'./prism-include-languages',
|
|
50
50
|
'./nprogress',
|
|
51
51
|
];
|
|
52
|
-
modules.push(...customCss.map((p) =>
|
|
52
|
+
modules.push(...customCss.map((p) => node_path_1.default.resolve(context.siteDir, p)));
|
|
53
53
|
return modules;
|
|
54
54
|
},
|
|
55
55
|
configureWebpack(__config, __isServer, { currentBundler }) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/theme-classic",
|
|
3
|
-
"version": "4.0.0-canary-
|
|
3
|
+
"version": "4.0.0-canary-6872",
|
|
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": "4.0.0-canary-
|
|
24
|
-
"@docusaurus/mdx-loader": "4.0.0-canary-
|
|
25
|
-
"@docusaurus/module-type-aliases": "4.0.0-canary-
|
|
26
|
-
"@docusaurus/plugin-content-blog": "4.0.0-canary-
|
|
27
|
-
"@docusaurus/plugin-content-docs": "4.0.0-canary-
|
|
28
|
-
"@docusaurus/plugin-content-pages": "4.0.0-canary-
|
|
29
|
-
"@docusaurus/theme-common": "4.0.0-canary-
|
|
30
|
-
"@docusaurus/theme-translations": "4.0.0-canary-
|
|
31
|
-
"@docusaurus/types": "4.0.0-canary-
|
|
32
|
-
"@docusaurus/utils": "4.0.0-canary-
|
|
33
|
-
"@docusaurus/utils-common": "4.0.0-canary-
|
|
34
|
-
"@docusaurus/utils-validation": "4.0.0-canary-
|
|
23
|
+
"@docusaurus/core": "4.0.0-canary-6872",
|
|
24
|
+
"@docusaurus/mdx-loader": "4.0.0-canary-6872",
|
|
25
|
+
"@docusaurus/module-type-aliases": "4.0.0-canary-6872",
|
|
26
|
+
"@docusaurus/plugin-content-blog": "4.0.0-canary-6872",
|
|
27
|
+
"@docusaurus/plugin-content-docs": "4.0.0-canary-6872",
|
|
28
|
+
"@docusaurus/plugin-content-pages": "4.0.0-canary-6872",
|
|
29
|
+
"@docusaurus/theme-common": "4.0.0-canary-6872",
|
|
30
|
+
"@docusaurus/theme-translations": "4.0.0-canary-6872",
|
|
31
|
+
"@docusaurus/types": "4.0.0-canary-6872",
|
|
32
|
+
"@docusaurus/utils": "4.0.0-canary-6872",
|
|
33
|
+
"@docusaurus/utils-common": "4.0.0-canary-6872",
|
|
34
|
+
"@docusaurus/utils-validation": "4.0.0-canary-6872",
|
|
35
35
|
"@mdx-js/react": "^3.1.1",
|
|
36
36
|
"clsx": "^2.1.1",
|
|
37
37
|
"copy-text-to-clipboard": "^3.2.2",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": ">=24.21"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "97ddb0451f086d8a1c20967f0d324d667dc58ebf"
|
|
62
62
|
}
|
package/src/index.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import path from 'path';
|
|
8
|
+
import path from 'node:path';
|
|
9
9
|
import rtlcss from 'rtlcss';
|
|
10
10
|
import {readDefaultCodeTranslationMessages} from '@docusaurus/theme-translations';
|
|
11
11
|
import {getTranslationFiles, translateThemeConfig} from './translations';
|