@docusaurus/core 0.0.0-5329 → 0.0.0-5332
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.
|
@@ -108,9 +108,7 @@ const SiteUrlSchema = utils_validation_1.Joi.string()
|
|
|
108
108
|
try {
|
|
109
109
|
const { pathname } = new URL(value);
|
|
110
110
|
if (pathname !== '/') {
|
|
111
|
-
helpers.
|
|
112
|
-
warningMessage: `The url is not supposed to contain a sub-path like '${pathname}'. Please use the baseUrl field for sub-paths.`,
|
|
113
|
-
});
|
|
111
|
+
return helpers.error('docusaurus.subPathError', { pathname });
|
|
114
112
|
}
|
|
115
113
|
}
|
|
116
114
|
catch {
|
|
@@ -120,6 +118,7 @@ const SiteUrlSchema = utils_validation_1.Joi.string()
|
|
|
120
118
|
})
|
|
121
119
|
.messages({
|
|
122
120
|
'any.invalid': '"{#value}" does not look like a valid URL. Make sure it has a protocol; for example, "https://example.com".',
|
|
121
|
+
'docusaurus.subPathError': 'The url is not supposed to contain a sub-path like "{#pathname}". Please use the baseUrl field for sub-paths.',
|
|
123
122
|
});
|
|
124
123
|
// TODO move to @docusaurus/utils-validation
|
|
125
124
|
exports.ConfigSchema = utils_validation_1.Joi.object({
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
declare const _default: "\n<!DOCTYPE html>\n<html <%~ it.htmlAttributes %>>\n <head>\n <meta charset=\"UTF-8\">\n <meta name=\"generator\" content=\"Docusaurus v<%= it.version %>\">\n <% it.metaAttributes.forEach((metaAttribute) => { %>\n <%~ metaAttribute %>\n <% }); %>\n <%~ it.headTags %>\n <% it.stylesheets.forEach((stylesheet) => { %>\n <link rel=\"stylesheet\" href=\"<%= it.baseUrl %><%= stylesheet %>\" />\n <% }); %>\n <% it.scripts.forEach((script) => { %>\n <
|
|
7
|
+
declare const _default: "\n<!DOCTYPE html>\n<html <%~ it.htmlAttributes %>>\n <head>\n <meta charset=\"UTF-8\">\n <meta name=\"generator\" content=\"Docusaurus v<%= it.version %>\">\n <% it.metaAttributes.forEach((metaAttribute) => { %>\n <%~ metaAttribute %>\n <% }); %>\n <%~ it.headTags %>\n <% it.stylesheets.forEach((stylesheet) => { %>\n <link rel=\"stylesheet\" href=\"<%= it.baseUrl %><%= stylesheet %>\" />\n <% }); %>\n <% it.scripts.forEach((script) => { %>\n <script src=\"<%= it.baseUrl %><%= script %>\" defer></script>\n <% }); %>\n </head>\n <body <%~ it.bodyAttributes %>>\n <%~ it.preBodyTags %>\n <div id=\"__docusaurus\">\n <%~ it.appHtml %>\n </div>\n <%~ it.postBodyTags %>\n </body>\n</html>\n";
|
|
8
8
|
export default _default;
|
|
@@ -20,7 +20,7 @@ exports.default = `
|
|
|
20
20
|
<link rel="stylesheet" href="<%= it.baseUrl %><%= stylesheet %>" />
|
|
21
21
|
<% }); %>
|
|
22
22
|
<% it.scripts.forEach((script) => { %>
|
|
23
|
-
<
|
|
23
|
+
<script src="<%= it.baseUrl %><%= script %>" defer></script>
|
|
24
24
|
<% }); %>
|
|
25
25
|
</head>
|
|
26
26
|
<body <%~ it.bodyAttributes %>>
|
|
@@ -28,9 +28,6 @@ exports.default = `
|
|
|
28
28
|
<div id="__docusaurus">
|
|
29
29
|
<%~ it.appHtml %>
|
|
30
30
|
</div>
|
|
31
|
-
<% it.scripts.forEach((script) => { %>
|
|
32
|
-
<script src="<%= it.baseUrl %><%= script %>"></script>
|
|
33
|
-
<% }); %>
|
|
34
31
|
<%~ it.postBodyTags %>
|
|
35
32
|
</body>
|
|
36
33
|
</html>
|
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": "0.0.0-
|
|
4
|
+
"version": "0.0.0-5332",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"@babel/runtime": "^7.19.0",
|
|
44
44
|
"@babel/runtime-corejs3": "^7.19.0",
|
|
45
45
|
"@babel/traverse": "^7.19.0",
|
|
46
|
-
"@docusaurus/cssnano-preset": "0.0.0-
|
|
47
|
-
"@docusaurus/logger": "0.0.0-
|
|
48
|
-
"@docusaurus/mdx-loader": "0.0.0-
|
|
46
|
+
"@docusaurus/cssnano-preset": "0.0.0-5332",
|
|
47
|
+
"@docusaurus/logger": "0.0.0-5332",
|
|
48
|
+
"@docusaurus/mdx-loader": "0.0.0-5332",
|
|
49
49
|
"@docusaurus/react-loadable": "5.5.2",
|
|
50
|
-
"@docusaurus/utils": "0.0.0-
|
|
51
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
52
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
50
|
+
"@docusaurus/utils": "0.0.0-5332",
|
|
51
|
+
"@docusaurus/utils-common": "0.0.0-5332",
|
|
52
|
+
"@docusaurus/utils-validation": "0.0.0-5332",
|
|
53
53
|
"@slorber/static-site-generator-webpack-plugin": "^4.0.7",
|
|
54
54
|
"@svgr/webpack": "^6.3.1",
|
|
55
55
|
"autoprefixer": "^10.4.8",
|
|
@@ -106,8 +106,8 @@
|
|
|
106
106
|
"webpackbar": "^5.0.2"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
110
|
-
"@docusaurus/types": "0.0.0-
|
|
109
|
+
"@docusaurus/module-type-aliases": "0.0.0-5332",
|
|
110
|
+
"@docusaurus/types": "0.0.0-5332",
|
|
111
111
|
"@types/detect-port": "^1.3.2",
|
|
112
112
|
"@types/react-dom": "^18.0.6",
|
|
113
113
|
"@types/react-router-config": "^5.0.6",
|
|
@@ -127,5 +127,5 @@
|
|
|
127
127
|
"engines": {
|
|
128
128
|
"node": ">=16.14"
|
|
129
129
|
},
|
|
130
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "87c793e511060b3753659e150782f38b25694aec"
|
|
131
131
|
}
|