@docusaurus/theme-classic 0.0.0-4484 → 0.0.0-4488
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 +2 -11
- package/lib-next/theme/DocPage/index.js +7 -3
- package/package.json +15 -15
- package/src/index.ts +2 -12
- package/src/theme/DocPage/index.tsx +7 -3
package/lib/index.js
CHANGED
|
@@ -128,21 +128,12 @@ function docusaurusThemeClassic(context, options) {
|
|
|
128
128
|
return {
|
|
129
129
|
name: 'docusaurus-theme-classic',
|
|
130
130
|
|
|
131
|
-
/*
|
|
132
|
-
Does not seem needed: webpack can already hot reload theme files
|
|
133
|
-
getPathsToWatch() {
|
|
134
|
-
return [
|
|
135
|
-
path.join(__dirname, '..', 'lib'),
|
|
136
|
-
path.join(__dirname, '..', 'lib-next'),
|
|
137
|
-
];
|
|
138
|
-
},
|
|
139
|
-
*/
|
|
140
131
|
getThemePath() {
|
|
141
|
-
return _path.default.join(__dirname, '
|
|
132
|
+
return _path.default.join(__dirname, '../lib-next/theme');
|
|
142
133
|
},
|
|
143
134
|
|
|
144
135
|
getTypeScriptThemePath() {
|
|
145
|
-
return _path.default.resolve(__dirname, '
|
|
136
|
+
return _path.default.resolve(__dirname, '../src/theme');
|
|
146
137
|
},
|
|
147
138
|
|
|
148
139
|
getTranslationFiles: async () => (0, _translations.getTranslationFiles)({
|
|
@@ -56,9 +56,13 @@ function DocPageContent({
|
|
|
56
56
|
|
|
57
57
|
{sidebar && (
|
|
58
58
|
<aside
|
|
59
|
-
className={clsx(
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
className={clsx(
|
|
60
|
+
ThemeClassNames.docs.docSidebarContainer,
|
|
61
|
+
styles.docSidebarContainer,
|
|
62
|
+
{
|
|
63
|
+
[styles.docSidebarContainerHidden]: hiddenSidebarContainer,
|
|
64
|
+
},
|
|
65
|
+
)}
|
|
62
66
|
onTransitionEnd={(e) => {
|
|
63
67
|
if (
|
|
64
68
|
!e.currentTarget.classList.contains(styles.docSidebarContainer)
|
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-4488",
|
|
4
4
|
"description": "Classic theme for Docusaurus",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/theme-classic.d.ts",
|
|
@@ -18,19 +18,17 @@
|
|
|
18
18
|
"watch": "concurrently --names \"lib,lib-next,tsc\" --kill-others \"yarn babel:lib --watch\" \"yarn babel:lib-next --watch\" \"yarn tsc --watch\"",
|
|
19
19
|
"babel:lib": "cross-env BABEL_ENV=lib babel src -d lib --extensions \".tsx,.ts\" --ignore \"**/*.d.ts\" --copy-files",
|
|
20
20
|
"babel:lib-next": "cross-env BABEL_ENV=lib-next babel src -d lib-next --extensions \".tsx,.ts\" --ignore \"**/*.d.ts\" --copy-files",
|
|
21
|
-
"format": "prettier --config ../../.prettierrc --
|
|
22
|
-
"format:lib-next": "prettier --config ../../.prettierrc --write \"lib-next/**/*.{js,ts,jsx,tsc}\"",
|
|
23
|
-
"update-code-translations": "node -e 'require(\"./update-code-translations.js\").run()'"
|
|
21
|
+
"format:lib-next": "prettier --config ../../.prettierrc --write \"lib-next/**/*.{js,ts,jsx,tsc}\""
|
|
24
22
|
},
|
|
25
23
|
"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-
|
|
24
|
+
"@docusaurus/core": "0.0.0-4488",
|
|
25
|
+
"@docusaurus/plugin-content-blog": "0.0.0-4488",
|
|
26
|
+
"@docusaurus/plugin-content-docs": "0.0.0-4488",
|
|
27
|
+
"@docusaurus/plugin-content-pages": "0.0.0-4488",
|
|
28
|
+
"@docusaurus/theme-common": "0.0.0-4488",
|
|
29
|
+
"@docusaurus/theme-translations": "0.0.0-4488",
|
|
30
|
+
"@docusaurus/utils": "0.0.0-4488",
|
|
31
|
+
"@docusaurus/utils-validation": "0.0.0-4488",
|
|
34
32
|
"@mdx-js/react": "^1.6.21",
|
|
35
33
|
"clsx": "^1.1.1",
|
|
36
34
|
"copy-text-to-clipboard": "^3.0.1",
|
|
@@ -43,11 +41,13 @@
|
|
|
43
41
|
"rtlcss": "^3.3.0"
|
|
44
42
|
},
|
|
45
43
|
"devDependencies": {
|
|
46
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
47
|
-
"@docusaurus/types": "0.0.0-
|
|
44
|
+
"@docusaurus/module-type-aliases": "0.0.0-4488",
|
|
45
|
+
"@docusaurus/types": "0.0.0-4488",
|
|
48
46
|
"@types/mdx-js__react": "^1.5.4",
|
|
49
47
|
"@types/parse-numeric-range": "^0.0.1",
|
|
48
|
+
"@types/prismjs": "^1.16.2",
|
|
50
49
|
"@types/rtlcss": "^3.1.1",
|
|
50
|
+
"cross-env": "^7.0.3",
|
|
51
51
|
"fs-extra": "^10.0.0",
|
|
52
52
|
"react-test-renderer": "^17.0.2",
|
|
53
53
|
"utility-types": "^3.10.0"
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": ">=14"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "d7541c5cf3c2c2118903ee61430b1bfe5891789e"
|
|
63
63
|
}
|
package/src/index.ts
CHANGED
|
@@ -110,22 +110,12 @@ export default function docusaurusThemeClassic(
|
|
|
110
110
|
return {
|
|
111
111
|
name: 'docusaurus-theme-classic',
|
|
112
112
|
|
|
113
|
-
/*
|
|
114
|
-
Does not seem needed: webpack can already hot reload theme files
|
|
115
|
-
getPathsToWatch() {
|
|
116
|
-
return [
|
|
117
|
-
path.join(__dirname, '..', 'lib'),
|
|
118
|
-
path.join(__dirname, '..', 'lib-next'),
|
|
119
|
-
];
|
|
120
|
-
},
|
|
121
|
-
*/
|
|
122
|
-
|
|
123
113
|
getThemePath() {
|
|
124
|
-
return path.join(__dirname, '
|
|
114
|
+
return path.join(__dirname, '../lib-next/theme');
|
|
125
115
|
},
|
|
126
116
|
|
|
127
117
|
getTypeScriptThemePath() {
|
|
128
|
-
return path.resolve(__dirname, '
|
|
118
|
+
return path.resolve(__dirname, '../src/theme');
|
|
129
119
|
},
|
|
130
120
|
|
|
131
121
|
getTranslationFiles: async () => getTranslationFiles({themeConfig}),
|
|
@@ -70,9 +70,13 @@ function DocPageContent({
|
|
|
70
70
|
|
|
71
71
|
{sidebar && (
|
|
72
72
|
<aside
|
|
73
|
-
className={clsx(
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
className={clsx(
|
|
74
|
+
ThemeClassNames.docs.docSidebarContainer,
|
|
75
|
+
styles.docSidebarContainer,
|
|
76
|
+
{
|
|
77
|
+
[styles.docSidebarContainerHidden]: hiddenSidebarContainer,
|
|
78
|
+
},
|
|
79
|
+
)}
|
|
76
80
|
onTransitionEnd={(e) => {
|
|
77
81
|
if (
|
|
78
82
|
!e.currentTarget.classList.contains(styles.docSidebarContainer)
|