@docusaurus/core 3.8.0-canary-6324 → 3.8.0-canary-6328
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.
|
@@ -21,6 +21,7 @@ const configure_1 = require("../../webpack/configure");
|
|
|
21
21
|
const ssgExecutor_1 = require("../../ssg/ssgExecutor");
|
|
22
22
|
const clearPath_1 = tslib_1.__importDefault(require("../utils/clearPath"));
|
|
23
23
|
const SkipBundling = process.env.DOCUSAURUS_SKIP_BUNDLING === 'true';
|
|
24
|
+
const ExitAfterLoading = process.env.DOCUSAURUS_EXIT_AFTER_LOADING === 'true';
|
|
24
25
|
const ExitAfterBundling = process.env.DOCUSAURUS_EXIT_AFTER_BUNDLING === 'true';
|
|
25
26
|
async function buildLocale({ siteDir, locale, cliOptions, }) {
|
|
26
27
|
// Temporary workaround to unlock the ability to translate the site config
|
|
@@ -35,6 +36,9 @@ async function buildLocale({ siteDir, locale, cliOptions, }) {
|
|
|
35
36
|
locale,
|
|
36
37
|
localizePath: cliOptions.locale?.length === 1 ? false : undefined,
|
|
37
38
|
}));
|
|
39
|
+
if (ExitAfterLoading) {
|
|
40
|
+
return process.exit(0);
|
|
41
|
+
}
|
|
38
42
|
const { props } = site;
|
|
39
43
|
const { outDir, plugins, siteConfig } = props;
|
|
40
44
|
const router = siteConfig.future.experimental_router;
|
|
@@ -50,7 +50,13 @@ async function tryOpenWithAppleScript({ url, browser, }) {
|
|
|
50
50
|
];
|
|
51
51
|
// Among all the supported browsers, retrieves to stdout the active ones
|
|
52
52
|
const command = `ps cax -o command | grep -E "^(${supportedChromiumBrowsers.join('|')})$"`;
|
|
53
|
-
const result = await execPromise(command)
|
|
53
|
+
const result = await execPromise(command).catch(() => {
|
|
54
|
+
// Ignore grep errors when macOS user has no Chromium-based browser
|
|
55
|
+
// See https://github.com/facebook/docusaurus/issues/11204
|
|
56
|
+
});
|
|
57
|
+
if (!result) {
|
|
58
|
+
return [];
|
|
59
|
+
}
|
|
54
60
|
const activeBrowsers = result.stdout.toString().trim().split('\n');
|
|
55
61
|
// This preserves the initial browser order
|
|
56
62
|
// We open Google Chrome Canary in priority over Google Chrome
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/core",
|
|
3
3
|
"description": "Easy to Maintain Open Source Documentation Websites",
|
|
4
|
-
"version": "3.8.0-canary-
|
|
4
|
+
"version": "3.8.0-canary-6328",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"url": "https://github.com/facebook/docusaurus/issues"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@docusaurus/babel": "3.8.0-canary-
|
|
37
|
-
"@docusaurus/bundler": "3.8.0-canary-
|
|
38
|
-
"@docusaurus/logger": "3.8.0-canary-
|
|
39
|
-
"@docusaurus/mdx-loader": "3.8.0-canary-
|
|
40
|
-
"@docusaurus/utils": "3.8.0-canary-
|
|
41
|
-
"@docusaurus/utils-common": "3.8.0-canary-
|
|
42
|
-
"@docusaurus/utils-validation": "3.8.0-canary-
|
|
36
|
+
"@docusaurus/babel": "3.8.0-canary-6328",
|
|
37
|
+
"@docusaurus/bundler": "3.8.0-canary-6328",
|
|
38
|
+
"@docusaurus/logger": "3.8.0-canary-6328",
|
|
39
|
+
"@docusaurus/mdx-loader": "3.8.0-canary-6328",
|
|
40
|
+
"@docusaurus/utils": "3.8.0-canary-6328",
|
|
41
|
+
"@docusaurus/utils-common": "3.8.0-canary-6328",
|
|
42
|
+
"@docusaurus/utils-validation": "3.8.0-canary-6328",
|
|
43
43
|
"boxen": "^6.2.1",
|
|
44
44
|
"chalk": "^4.1.2",
|
|
45
45
|
"chokidar": "^3.5.3",
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"webpack-merge": "^6.0.1"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@docusaurus/module-type-aliases": "3.8.0-canary-
|
|
81
|
-
"@docusaurus/types": "3.8.0-canary-
|
|
80
|
+
"@docusaurus/module-type-aliases": "3.8.0-canary-6328",
|
|
81
|
+
"@docusaurus/types": "3.8.0-canary-6328",
|
|
82
82
|
"@total-typescript/shoehorn": "^0.1.2",
|
|
83
83
|
"@types/detect-port": "^1.3.3",
|
|
84
84
|
"@types/react-dom": "^18.2.7",
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"engines": {
|
|
99
99
|
"node": ">=18.0"
|
|
100
100
|
},
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "3fdb4e42059777d09274630e54c168248eb1e004"
|
|
102
102
|
}
|