@docusaurus/theme-classic 0.0.0-4930 → 0.0.0-4934
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-next/theme/DocPage/Layout/{Main.js → Main/index.js} +1 -1
- package/lib-next/theme/DocPage/Layout/{Main.module.css → Main/styles.module.css} +0 -0
- package/lib-next/theme/DocPage/Layout/Sidebar/{ExpandButton.js → ExpandButton/index.js} +1 -1
- package/lib-next/theme/DocPage/Layout/Sidebar/{ExpandButton.module.css → ExpandButton/styles.module.css} +0 -0
- package/lib-next/theme/TOCItems/Tree.js +1 -2
- package/package.json +16 -16
- package/src/theme/DocPage/Layout/{Main.tsx → Main/index.tsx} +1 -1
- package/src/theme/DocPage/Layout/{Main.module.css → Main/styles.module.css} +0 -0
- package/src/theme/DocPage/Layout/Sidebar/{ExpandButton.tsx → ExpandButton/index.tsx} +1 -1
- package/src/theme/DocPage/Layout/Sidebar/{ExpandButton.module.css → ExpandButton/styles.module.css} +0 -0
- package/src/theme/TOCItems/Tree.tsx +1 -1
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import {useDocsSidebar} from '@docusaurus/theme-common';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
|
-
import styles from './
|
|
10
|
+
import styles from './styles.module.css';
|
|
11
11
|
export default function DocPageLayoutMain({hiddenSidebarContainer, children}) {
|
|
12
12
|
const sidebar = useDocsSidebar();
|
|
13
13
|
return (
|
|
File without changes
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import IconArrow from '@theme/IconArrow';
|
|
9
9
|
import {translate} from '@docusaurus/Translate';
|
|
10
|
-
import styles from './
|
|
10
|
+
import styles from './styles.module.css';
|
|
11
11
|
export default function DocPageLayoutSidebarExpandButton({toggleSidebar}) {
|
|
12
12
|
return (
|
|
13
13
|
<div
|
|
File without changes
|
|
@@ -7,8 +7,6 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
|
|
9
9
|
// Recursive component rendering the toc tree
|
|
10
|
-
|
|
11
|
-
/* eslint-disable jsx-a11y/control-has-associated-label */
|
|
12
10
|
function TOCItemTree({toc, className, linkClassName, isChild}) {
|
|
13
11
|
if (!toc.length) {
|
|
14
12
|
return null;
|
|
@@ -18,6 +16,7 @@ function TOCItemTree({toc, className, linkClassName, isChild}) {
|
|
|
18
16
|
<ul className={isChild ? undefined : className}>
|
|
19
17
|
{toc.map((heading) => (
|
|
20
18
|
<li key={heading.id}>
|
|
19
|
+
{/* eslint-disable-next-line jsx-a11y/control-has-associated-label */}
|
|
21
20
|
<a
|
|
22
21
|
href={`#${heading.id}`}
|
|
23
22
|
className={linkClassName ?? undefined} // Developer provided the HTML, so assume it's safe.
|
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-4934",
|
|
4
4
|
"description": "Classic theme for Docusaurus",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/theme-classic.d.ts",
|
|
@@ -21,33 +21,33 @@
|
|
|
21
21
|
"format:lib-next": "prettier --config ../../.prettierrc --write \"lib-next/**/*.{js,ts,jsx,tsc}\""
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@docusaurus/core": "0.0.0-
|
|
25
|
-
"@docusaurus/plugin-content-blog": "0.0.0-
|
|
26
|
-
"@docusaurus/plugin-content-docs": "0.0.0-
|
|
27
|
-
"@docusaurus/plugin-content-pages": "0.0.0-
|
|
28
|
-
"@docusaurus/theme-common": "0.0.0-
|
|
29
|
-
"@docusaurus/theme-translations": "0.0.0-
|
|
30
|
-
"@docusaurus/utils": "0.0.0-
|
|
31
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
32
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
24
|
+
"@docusaurus/core": "0.0.0-4934",
|
|
25
|
+
"@docusaurus/plugin-content-blog": "0.0.0-4934",
|
|
26
|
+
"@docusaurus/plugin-content-docs": "0.0.0-4934",
|
|
27
|
+
"@docusaurus/plugin-content-pages": "0.0.0-4934",
|
|
28
|
+
"@docusaurus/theme-common": "0.0.0-4934",
|
|
29
|
+
"@docusaurus/theme-translations": "0.0.0-4934",
|
|
30
|
+
"@docusaurus/utils": "0.0.0-4934",
|
|
31
|
+
"@docusaurus/utils-common": "0.0.0-4934",
|
|
32
|
+
"@docusaurus/utils-validation": "0.0.0-4934",
|
|
33
33
|
"@mdx-js/react": "^1.6.22",
|
|
34
34
|
"clsx": "^1.1.1",
|
|
35
35
|
"copy-text-to-clipboard": "^3.0.1",
|
|
36
36
|
"infima": "0.2.0-alpha.38",
|
|
37
37
|
"lodash": "^4.17.21",
|
|
38
38
|
"nprogress": "^0.2.0",
|
|
39
|
-
"postcss": "^8.4.
|
|
39
|
+
"postcss": "^8.4.13",
|
|
40
40
|
"prism-react-renderer": "^1.3.1",
|
|
41
41
|
"prismjs": "^1.28.0",
|
|
42
42
|
"react-router-dom": "^5.2.0",
|
|
43
43
|
"rtlcss": "^3.5.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@babel/cli": "^7.17.
|
|
47
|
-
"@babel/core": "^7.17.
|
|
46
|
+
"@babel/cli": "^7.17.10",
|
|
47
|
+
"@babel/core": "^7.17.10",
|
|
48
48
|
"@babel/preset-typescript": "^7.16.7",
|
|
49
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
50
|
-
"@docusaurus/types": "0.0.0-
|
|
49
|
+
"@docusaurus/module-type-aliases": "0.0.0-4934",
|
|
50
|
+
"@docusaurus/types": "0.0.0-4934",
|
|
51
51
|
"@types/mdx-js__react": "^1.5.5",
|
|
52
52
|
"@types/nprogress": "^0.2.0",
|
|
53
53
|
"@types/prismjs": "^1.26.0",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"engines": {
|
|
65
65
|
"node": ">=14"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "eaf9bdb09883cbe41d5cb4e9b4c99b9dd3538506"
|
|
68
68
|
}
|
|
@@ -10,7 +10,7 @@ import React from 'react';
|
|
|
10
10
|
import {useDocsSidebar} from '@docusaurus/theme-common';
|
|
11
11
|
|
|
12
12
|
import clsx from 'clsx';
|
|
13
|
-
import styles from './
|
|
13
|
+
import styles from './styles.module.css';
|
|
14
14
|
import type {Props} from '@theme/DocPage/Layout/Main';
|
|
15
15
|
|
|
16
16
|
export default function DocPageLayoutMain({
|
|
File without changes
|
|
@@ -10,7 +10,7 @@ import IconArrow from '@theme/IconArrow';
|
|
|
10
10
|
import {translate} from '@docusaurus/Translate';
|
|
11
11
|
import type {Props} from '@theme/DocPage/Layout/Sidebar/ExpandButton';
|
|
12
12
|
|
|
13
|
-
import styles from './
|
|
13
|
+
import styles from './styles.module.css';
|
|
14
14
|
|
|
15
15
|
export default function DocPageLayoutSidebarExpandButton({
|
|
16
16
|
toggleSidebar,
|
package/src/theme/DocPage/Layout/Sidebar/{ExpandButton.module.css → ExpandButton/styles.module.css}
RENAMED
|
File without changes
|
|
@@ -9,7 +9,6 @@ import React from 'react';
|
|
|
9
9
|
import type {Props} from '@theme/TOCItems/Tree';
|
|
10
10
|
|
|
11
11
|
// Recursive component rendering the toc tree
|
|
12
|
-
/* eslint-disable jsx-a11y/control-has-associated-label */
|
|
13
12
|
function TOCItemTree({
|
|
14
13
|
toc,
|
|
15
14
|
className,
|
|
@@ -23,6 +22,7 @@ function TOCItemTree({
|
|
|
23
22
|
<ul className={isChild ? undefined : className}>
|
|
24
23
|
{toc.map((heading) => (
|
|
25
24
|
<li key={heading.id}>
|
|
25
|
+
{/* eslint-disable-next-line jsx-a11y/control-has-associated-label */}
|
|
26
26
|
<a
|
|
27
27
|
href={`#${heading.id}`}
|
|
28
28
|
className={linkClassName ?? undefined}
|