@umijs/plugin-docs 4.0.0-canary.20220422.3 → 4.0.0-canary.20220424.1
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.
|
@@ -49,7 +49,7 @@ export default (props: SidebarProps) => {
|
|
|
49
49
|
if (to === window.location.pathname) {
|
|
50
50
|
return (
|
|
51
51
|
<div
|
|
52
|
-
key={
|
|
52
|
+
key={route.path}
|
|
53
53
|
className="my-2 hover:text-blue-400 transition-all
|
|
54
54
|
bg-blue-50 text-blue-400 px-4 py-1
|
|
55
55
|
rounded-lg cursor-default dark:bg-blue-900 dark:text-blue-200"
|
|
@@ -61,6 +61,7 @@ export default (props: SidebarProps) => {
|
|
|
61
61
|
|
|
62
62
|
return (
|
|
63
63
|
<components.Link
|
|
64
|
+
key={route.path}
|
|
64
65
|
to={route.path}
|
|
65
66
|
onClick={() =>
|
|
66
67
|
props.setMenuOpened && props.setMenuOpened((o) => !o)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/plugin-docs",
|
|
3
|
-
"version": "4.0.0-canary.
|
|
3
|
+
"version": "4.0.0-canary.20220424.1",
|
|
4
4
|
"description": "@umijs/plugin-docs",
|
|
5
5
|
"homepage": "https://github.com/umijs/umi-next/tree/master/packages/plugin-docs#readme",
|
|
6
6
|
"bugs": "https://github.com/umijs/umi-next/issues",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"scripts": {
|
|
20
20
|
"build": "pnpm tsc",
|
|
21
21
|
"build:css": "tailwindcss -i ./client/theme-doc/tailwind.css -o ./client/theme-doc/tailwind.out.css",
|
|
22
|
-
"build:deps": "
|
|
22
|
+
"build:deps": "umi-scripts bundleDeps",
|
|
23
23
|
"build:extra": "pnpm build:css && pnpm build:deps",
|
|
24
24
|
"dev": "pnpm build -- --watch",
|
|
25
25
|
"dev:css": "pnpm build:css -- --watch",
|
|
26
|
-
"test": "
|
|
26
|
+
"test": "umi-scripts jest-turbo"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"keymaster": "1.6.2",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"rehype-slug": "5.0.1",
|
|
40
40
|
"remark-gfm": "^3.0.1",
|
|
41
41
|
"tailwindcss": "^3.0.23",
|
|
42
|
-
"umi": "4.0.0-canary.
|
|
42
|
+
"umi": "4.0.0-canary.20220424.1"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|