@docusaurus/theme-classic 0.0.0-4375 → 0.0.0-4376
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 +0 -2
- package/lib-next/theme/DocVersionBanner/index.js +4 -1
- package/lib-next/theme/Navbar/index.js +1 -1
- package/lib-next/theme/NavbarItem/DocNavbarItem.js +4 -1
- package/lib-next/theme/NavbarItem/DocSidebarNavbarItem.js +4 -1
- package/lib-next/theme/NavbarItem/DocsVersionDropdownNavbarItem.js +1 -1
- package/lib-next/theme/NavbarItem/DocsVersionNavbarItem.js +4 -1
- package/package.json +12 -12
- package/src/index.ts +0 -4
- package/src/theme/DocVersionBanner/index.tsx +1 -1
- package/src/theme/Navbar/index.tsx +1 -1
- package/src/theme/NavbarItem/DocNavbarItem.tsx +4 -1
- package/src/theme/NavbarItem/DocSidebarNavbarItem.tsx +4 -1
- package/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx +1 -1
- package/src/theme/NavbarItem/DocsVersionNavbarItem.tsx +1 -1
- package/lib-next/theme/hooks/useDocs.js +0 -11
- package/src/theme/hooks/useDocs.ts +0 -12
package/lib/index.js
CHANGED
|
@@ -178,8 +178,6 @@ options) {
|
|
|
178
178
|
configureWebpack() {
|
|
179
179
|
const prismLanguages = additionalLanguages.map(lang => `prism-${lang}`).join('|');
|
|
180
180
|
return {
|
|
181
|
-
ignoreWarnings: [// See https://github.com/facebook/docusaurus/pull/3382
|
|
182
|
-
e => e.message.includes("Can't resolve '@theme-init/hooks/useDocs")],
|
|
183
181
|
plugins: [new ContextReplacementPlugin(/prismjs[\\/]components$/, new RegExp(`^./(${prismLanguages})$`))]
|
|
184
182
|
};
|
|
185
183
|
},
|
|
@@ -8,7 +8,10 @@ import React from 'react';
|
|
|
8
8
|
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
|
9
9
|
import Link from '@docusaurus/Link';
|
|
10
10
|
import Translate from '@docusaurus/Translate';
|
|
11
|
-
import {
|
|
11
|
+
import {
|
|
12
|
+
useActivePlugin,
|
|
13
|
+
useDocVersionSuggestions,
|
|
14
|
+
} from '@docusaurus/plugin-content-docs/client';
|
|
12
15
|
import {
|
|
13
16
|
ThemeClassNames,
|
|
14
17
|
useDocsPreferredVersion,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import useHideableNavbar from '@theme/hooks/useHideableNavbar';
|
|
20
20
|
import useLockBodyScroll from '@theme/hooks/useLockBodyScroll';
|
|
21
21
|
import useWindowSize from '@theme/hooks/useWindowSize';
|
|
22
|
-
import {useActivePlugin} from '@
|
|
22
|
+
import {useActivePlugin} from '@docusaurus/plugin-content-docs/client';
|
|
23
23
|
import NavbarItem from '@theme/NavbarItem';
|
|
24
24
|
import Logo from '@theme/Logo';
|
|
25
25
|
import IconMenu from '@theme/IconMenu';
|
|
@@ -6,7 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
|
|
9
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
useLatestVersion,
|
|
11
|
+
useActiveDocContext,
|
|
12
|
+
} from '@docusaurus/plugin-content-docs/client';
|
|
10
13
|
import clsx from 'clsx';
|
|
11
14
|
import {getInfimaActiveClassName} from '@theme/NavbarItem/utils';
|
|
12
15
|
import {useDocsPreferredVersion, uniq} from '@docusaurus/theme-common';
|
|
@@ -6,7 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
|
|
9
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
useLatestVersion,
|
|
11
|
+
useActiveDocContext,
|
|
12
|
+
} from '@docusaurus/plugin-content-docs/client';
|
|
10
13
|
import clsx from 'clsx';
|
|
11
14
|
import {getInfimaActiveClassName} from '@theme/NavbarItem/utils';
|
|
12
15
|
import {useDocsPreferredVersion, uniq} from '@docusaurus/theme-common';
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
useVersions,
|
|
12
12
|
useLatestVersion,
|
|
13
13
|
useActiveDocContext,
|
|
14
|
-
} from '@
|
|
14
|
+
} from '@docusaurus/plugin-content-docs/client';
|
|
15
15
|
import {useDocsPreferredVersion} from '@docusaurus/theme-common';
|
|
16
16
|
import {translate} from '@docusaurus/Translate';
|
|
17
17
|
|
|
@@ -6,7 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
|
|
9
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
useActiveVersion,
|
|
11
|
+
useLatestVersion,
|
|
12
|
+
} from '@docusaurus/plugin-content-docs/client';
|
|
10
13
|
import {useDocsPreferredVersion} from '@docusaurus/theme-common';
|
|
11
14
|
|
|
12
15
|
const getVersionMainDoc = (version) =>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/theme-classic",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-4376",
|
|
4
4
|
"description": "Classic theme for Docusaurus",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/theme-classic.d.ts",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"update-code-translations": "node -e 'require(\"./update-code-translations.js\").run()'"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@docusaurus/core": "0.0.0-
|
|
27
|
-
"@docusaurus/plugin-content-blog": "0.0.0-
|
|
28
|
-
"@docusaurus/plugin-content-docs": "0.0.0-
|
|
29
|
-
"@docusaurus/plugin-content-pages": "0.0.0-
|
|
30
|
-
"@docusaurus/theme-common": "0.0.0-
|
|
31
|
-
"@docusaurus/theme-translations": "0.0.0-
|
|
32
|
-
"@docusaurus/utils": "0.0.0-
|
|
33
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
26
|
+
"@docusaurus/core": "0.0.0-4376",
|
|
27
|
+
"@docusaurus/plugin-content-blog": "0.0.0-4376",
|
|
28
|
+
"@docusaurus/plugin-content-docs": "0.0.0-4376",
|
|
29
|
+
"@docusaurus/plugin-content-pages": "0.0.0-4376",
|
|
30
|
+
"@docusaurus/theme-common": "0.0.0-4376",
|
|
31
|
+
"@docusaurus/theme-translations": "0.0.0-4376",
|
|
32
|
+
"@docusaurus/utils": "0.0.0-4376",
|
|
33
|
+
"@docusaurus/utils-validation": "0.0.0-4376",
|
|
34
34
|
"@mdx-js/mdx": "^1.6.21",
|
|
35
35
|
"@mdx-js/react": "^1.6.21",
|
|
36
36
|
"clsx": "^1.1.1",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"rtlcss": "^3.3.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
49
|
-
"@docusaurus/types": "0.0.0-
|
|
48
|
+
"@docusaurus/module-type-aliases": "0.0.0-4376",
|
|
49
|
+
"@docusaurus/types": "0.0.0-4376",
|
|
50
50
|
"@types/mdx-js__react": "^1.5.4",
|
|
51
51
|
"@types/parse-numeric-range": "^0.0.1",
|
|
52
52
|
"@types/rtlcss": "^3.1.1",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"engines": {
|
|
62
62
|
"node": ">=14"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "d95874b8c1ad60ed595d2088f23284df72903c29"
|
|
65
65
|
}
|
package/src/index.ts
CHANGED
|
@@ -171,10 +171,6 @@ export default function docusaurusThemeClassic(
|
|
|
171
171
|
.join('|');
|
|
172
172
|
|
|
173
173
|
return {
|
|
174
|
-
ignoreWarnings: [
|
|
175
|
-
// See https://github.com/facebook/docusaurus/pull/3382
|
|
176
|
-
(e) => e.message.includes("Can't resolve '@theme-init/hooks/useDocs"),
|
|
177
|
-
],
|
|
178
174
|
plugins: [
|
|
179
175
|
new ContextReplacementPlugin(
|
|
180
176
|
/prismjs[\\/]components$/,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import useHideableNavbar from '@theme/hooks/useHideableNavbar';
|
|
21
21
|
import useLockBodyScroll from '@theme/hooks/useLockBodyScroll';
|
|
22
22
|
import useWindowSize from '@theme/hooks/useWindowSize';
|
|
23
|
-
import {useActivePlugin} from '@
|
|
23
|
+
import {useActivePlugin} from '@docusaurus/plugin-content-docs/client';
|
|
24
24
|
import NavbarItem, {type Props as NavbarItemConfig} from '@theme/NavbarItem';
|
|
25
25
|
import Logo from '@theme/Logo';
|
|
26
26
|
import IconMenu from '@theme/IconMenu';
|
|
@@ -7,7 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
|
|
10
|
-
import {
|
|
10
|
+
import {
|
|
11
|
+
useLatestVersion,
|
|
12
|
+
useActiveDocContext,
|
|
13
|
+
} from '@docusaurus/plugin-content-docs/client';
|
|
11
14
|
import clsx from 'clsx';
|
|
12
15
|
import {getInfimaActiveClassName} from '@theme/NavbarItem/utils';
|
|
13
16
|
import type {Props} from '@theme/NavbarItem/DocNavbarItem';
|
|
@@ -7,7 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
|
|
10
|
-
import {
|
|
10
|
+
import {
|
|
11
|
+
useLatestVersion,
|
|
12
|
+
useActiveDocContext,
|
|
13
|
+
} from '@docusaurus/plugin-content-docs/client';
|
|
11
14
|
import clsx from 'clsx';
|
|
12
15
|
import {getInfimaActiveClassName} from '@theme/NavbarItem/utils';
|
|
13
16
|
import {useDocsPreferredVersion, uniq} from '@docusaurus/theme-common';
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
useVersions,
|
|
13
13
|
useLatestVersion,
|
|
14
14
|
useActiveDocContext,
|
|
15
|
-
} from '@
|
|
15
|
+
} from '@docusaurus/plugin-content-docs/client';
|
|
16
16
|
import type {Props} from '@theme/NavbarItem/DocsVersionDropdownNavbarItem';
|
|
17
17
|
import {useDocsPreferredVersion} from '@docusaurus/theme-common';
|
|
18
18
|
import {translate} from '@docusaurus/Translate';
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
useActiveVersion,
|
|
12
12
|
useLatestVersion,
|
|
13
13
|
type GlobalVersion,
|
|
14
|
-
} from '@
|
|
14
|
+
} from '@docusaurus/plugin-content-docs/client';
|
|
15
15
|
import type {Props} from '@theme/NavbarItem/DocsVersionNavbarItem';
|
|
16
16
|
import {useDocsPreferredVersion} from '@docusaurus/theme-common';
|
|
17
17
|
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
// Re-expose useDocs
|
|
8
|
-
// Ensure it's always statically available even if user is not using the docs plugin
|
|
9
|
-
// Problem reported for the blog-only mode: https://github.com/facebook/docusaurus/issues/3360
|
|
10
|
-
// eslint-disable-next-line import/no-named-export
|
|
11
|
-
export * from '@docusaurus/plugin-content-docs/lib/theme/hooks/useDocs';
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
|
|
8
|
-
// Re-expose useDocs
|
|
9
|
-
// Ensure it's always statically available even if user is not using the docs plugin
|
|
10
|
-
// Problem reported for the blog-only mode: https://github.com/facebook/docusaurus/issues/3360
|
|
11
|
-
// eslint-disable-next-line import/no-named-export
|
|
12
|
-
export * from '@docusaurus/plugin-content-docs/lib/theme/hooks/useDocs';
|