@docusaurus/core 4.0.0-canary-6966 → 4.0.0-canary-6967
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/commands/cli.js
CHANGED
|
@@ -112,9 +112,9 @@ async function createCLIProgram({ cli, cliArgs, siteDir, config, }) {
|
|
|
112
112
|
.option('--no-open', 'do not open page in the browser (default: false)')
|
|
113
113
|
.option('--poll [interval]', 'use polling rather than watching for reload (default: false). Can specify a poll interval in milliseconds', normalizePollValue)
|
|
114
114
|
.option('--no-minify', 'build website without minimizing JS bundles (default: false)')
|
|
115
|
-
.option('--https', 'serve the dev site over HTTPS using a self-signed cert (default: false).
|
|
116
|
-
.option('--ssl-cert <path>', 'path to a TLS certificate file (implies HTTPS).
|
|
117
|
-
.option('--ssl-key <path>', 'path to a TLS private key file (implies HTTPS).
|
|
115
|
+
.option('--https', 'serve the dev site over HTTPS using a self-signed cert (default: false). Implied when both --ssl-cert and --ssl-key are provided. Takes precedence over the DOCUSAURUS_HTTPS env var.')
|
|
116
|
+
.option('--ssl-cert <path>', 'path to a TLS certificate file (implies HTTPS). Takes precedence over the DOCUSAURUS_SSL_CRT_FILE env var.')
|
|
117
|
+
.option('--ssl-key <path>', 'path to a TLS private key file (implies HTTPS). Takes precedence over the DOCUSAURUS_SSL_KEY_FILE env var.')
|
|
118
118
|
.action(start_1.start);
|
|
119
119
|
cli
|
|
120
120
|
.command('serve [siteDir]')
|
|
@@ -41,9 +41,6 @@ function getExplicitHttps(options) {
|
|
|
41
41
|
return (options.https ??
|
|
42
42
|
(typeof process.env.DOCUSAURUS_HTTPS !== 'undefined'
|
|
43
43
|
? process.env.DOCUSAURUS_HTTPS == 'true'
|
|
44
|
-
: undefined) ??
|
|
45
|
-
(typeof process.env.HTTPS !== 'undefined'
|
|
46
|
-
? process.env.HTTPS == 'true'
|
|
47
44
|
: undefined));
|
|
48
45
|
}
|
|
49
46
|
async function readCryptoFile(filepath, source) {
|
|
@@ -68,9 +65,6 @@ function getCert(options, cwd) {
|
|
|
68
65
|
if (process.env.DOCUSAURUS_SSL_CRT_FILE) {
|
|
69
66
|
return readCryptoFile(node_path_1.default.resolve(cwd, process.env.DOCUSAURUS_SSL_CRT_FILE), 'env DOCUSAURUS_SSL_CRT_FILE');
|
|
70
67
|
}
|
|
71
|
-
if (process.env.SSL_CRT_FILE) {
|
|
72
|
-
return readCryptoFile(node_path_1.default.resolve(cwd, process.env.SSL_CRT_FILE), 'env SSL_CRT_FILE');
|
|
73
|
-
}
|
|
74
68
|
return null;
|
|
75
69
|
}
|
|
76
70
|
function getKeyFile(options, cwd) {
|
|
@@ -80,9 +74,6 @@ function getKeyFile(options, cwd) {
|
|
|
80
74
|
if (process.env.DOCUSAURUS_SSL_KEY_FILE) {
|
|
81
75
|
return readCryptoFile(node_path_1.default.resolve(cwd, process.env.DOCUSAURUS_SSL_KEY_FILE), 'env DOCUSAURUS_SSL_KEY_FILE');
|
|
82
76
|
}
|
|
83
|
-
if (process.env.SSL_KEY_FILE) {
|
|
84
|
-
return readCryptoFile(node_path_1.default.resolve(cwd, process.env.SSL_KEY_FILE), 'env SSL_KEY_FILE');
|
|
85
|
-
}
|
|
86
77
|
return null;
|
|
87
78
|
}
|
|
88
79
|
function ensureCertKeyBothProvided(cert, key) {
|
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": "4.0.0-canary-
|
|
4
|
+
"version": "4.0.0-canary-6967",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
"url": "https://github.com/facebook/docusaurus/issues"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@docusaurus/babel": "4.0.0-canary-
|
|
31
|
-
"@docusaurus/bundler": "4.0.0-canary-
|
|
32
|
-
"@docusaurus/fs": "4.0.0-canary-
|
|
33
|
-
"@docusaurus/glob": "4.0.0-canary-
|
|
34
|
-
"@docusaurus/logger": "4.0.0-canary-
|
|
35
|
-
"@docusaurus/mdx-loader": "4.0.0-canary-
|
|
36
|
-
"@docusaurus/utils": "4.0.0-canary-
|
|
37
|
-
"@docusaurus/utils-common": "4.0.0-canary-
|
|
38
|
-
"@docusaurus/utils-validation": "4.0.0-canary-
|
|
30
|
+
"@docusaurus/babel": "4.0.0-canary-6967",
|
|
31
|
+
"@docusaurus/bundler": "4.0.0-canary-6967",
|
|
32
|
+
"@docusaurus/fs": "4.0.0-canary-6967",
|
|
33
|
+
"@docusaurus/glob": "4.0.0-canary-6967",
|
|
34
|
+
"@docusaurus/logger": "4.0.0-canary-6967",
|
|
35
|
+
"@docusaurus/mdx-loader": "4.0.0-canary-6967",
|
|
36
|
+
"@docusaurus/utils": "4.0.0-canary-6967",
|
|
37
|
+
"@docusaurus/utils-common": "4.0.0-canary-6967",
|
|
38
|
+
"@docusaurus/utils-validation": "4.0.0-canary-6967",
|
|
39
39
|
"@rspack/core": "^2.2.3",
|
|
40
40
|
"@rspack/dev-server": "^2.2.1",
|
|
41
41
|
"boxen": "^9.0.0",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"webpack-merge": "^6.0.1"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@docusaurus/module-type-aliases": "4.0.0-canary-
|
|
72
|
-
"@docusaurus/types": "4.0.0-canary-
|
|
71
|
+
"@docusaurus/module-type-aliases": "4.0.0-canary-6967",
|
|
72
|
+
"@docusaurus/types": "4.0.0-canary-6967",
|
|
73
73
|
"@total-typescript/shoehorn": "^0.1.2",
|
|
74
74
|
"@types/escape-html": "^1.0.4",
|
|
75
75
|
"@types/history": "^4.7.11",
|