@docusaurus/core 3.7.0-canary-6287 → 3.7.0-canary-6292
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/client/App.js
CHANGED
|
@@ -10,6 +10,7 @@ import routes from '@generated/routes';
|
|
|
10
10
|
import { useLocation } from '@docusaurus/router';
|
|
11
11
|
import renderRoutes from '@docusaurus/renderRoutes';
|
|
12
12
|
import Root from '@theme/Root';
|
|
13
|
+
import ThemeProvider from '@theme/ThemeProvider';
|
|
13
14
|
import SiteMetadata from '@theme/SiteMetadata';
|
|
14
15
|
import normalizeLocation from './normalizeLocation';
|
|
15
16
|
import { BrowserContextProvider } from './browserContext';
|
|
@@ -34,10 +35,12 @@ export default function App() {
|
|
|
34
35
|
<DocusaurusContextProvider>
|
|
35
36
|
<BrowserContextProvider>
|
|
36
37
|
<Root>
|
|
37
|
-
<
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
<ThemeProvider>
|
|
39
|
+
<SiteMetadataDefaults />
|
|
40
|
+
<SiteMetadata />
|
|
41
|
+
<BaseUrlIssueBanner />
|
|
42
|
+
<AppNavigation />
|
|
43
|
+
</ThemeProvider>
|
|
41
44
|
</Root>
|
|
42
45
|
<HasHydratedDataAttribute />
|
|
43
46
|
</BrowserContextProvider>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
8
|
+
import type { Props } from '@theme/ThemeProvider';
|
|
9
|
+
export default function ThemeProvider({ children }: Props): ReactNode;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
// Wrapper component expected to be implemented by a theme
|
|
9
|
+
// Unlike <Layout>, it applies to all sites routes and never unmounts
|
|
10
|
+
//
|
|
11
|
+
// Unlike <Root>, the theme is expected to provide an implementation
|
|
12
|
+
// <Root> is empty and the implementation is expected to be provided by the user
|
|
13
|
+
//
|
|
14
|
+
// Tree order: Root > ThemeProvider > Layout
|
|
15
|
+
export default function ThemeProvider({ children }) {
|
|
16
|
+
return <>{children}</>;
|
|
17
|
+
}
|
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.7.0-canary-
|
|
4
|
+
"version": "3.7.0-canary-6292",
|
|
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.7.0-canary-
|
|
37
|
-
"@docusaurus/bundler": "3.7.0-canary-
|
|
38
|
-
"@docusaurus/logger": "3.7.0-canary-
|
|
39
|
-
"@docusaurus/mdx-loader": "3.7.0-canary-
|
|
40
|
-
"@docusaurus/utils": "3.7.0-canary-
|
|
41
|
-
"@docusaurus/utils-common": "3.7.0-canary-
|
|
42
|
-
"@docusaurus/utils-validation": "3.7.0-canary-
|
|
36
|
+
"@docusaurus/babel": "3.7.0-canary-6292",
|
|
37
|
+
"@docusaurus/bundler": "3.7.0-canary-6292",
|
|
38
|
+
"@docusaurus/logger": "3.7.0-canary-6292",
|
|
39
|
+
"@docusaurus/mdx-loader": "3.7.0-canary-6292",
|
|
40
|
+
"@docusaurus/utils": "3.7.0-canary-6292",
|
|
41
|
+
"@docusaurus/utils-common": "3.7.0-canary-6292",
|
|
42
|
+
"@docusaurus/utils-validation": "3.7.0-canary-6292",
|
|
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.7.0-canary-
|
|
81
|
-
"@docusaurus/types": "3.7.0-canary-
|
|
80
|
+
"@docusaurus/module-type-aliases": "3.7.0-canary-6292",
|
|
81
|
+
"@docusaurus/types": "3.7.0-canary-6292",
|
|
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": "202a6243823c4fdc0ae16d50fb72193fc1fd7d6a"
|
|
102
102
|
}
|