@umijs/plugin-docs 4.0.0-canary.20220422.3 → 4.0.0-canary.20220425.2
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.
|
@@ -44,7 +44,10 @@ export default (props: any) => {
|
|
|
44
44
|
location: props.location,
|
|
45
45
|
}}
|
|
46
46
|
>
|
|
47
|
-
<div
|
|
47
|
+
<div
|
|
48
|
+
className="flex flex-col dark:bg-gray-900 min-h-screen transition-all"
|
|
49
|
+
id={isHomePage ? 'home-page' : 'doc-page'}
|
|
50
|
+
>
|
|
48
51
|
<div
|
|
49
52
|
id="head-container"
|
|
50
53
|
className="z-30 sticky top-0 dark:before:bg-gray-800 before:bg-white before:bg-opacity-[.85]
|
|
@@ -14,7 +14,10 @@ export default () => {
|
|
|
14
14
|
<img src={Logo} className="w-8 h-8" alt="logo" />
|
|
15
15
|
)}
|
|
16
16
|
{typeof Logo === 'function' && <Logo />}
|
|
17
|
-
<div
|
|
17
|
+
<div
|
|
18
|
+
id="header-title"
|
|
19
|
+
className="text-xl font-extrabold ml-2 dark:text-white"
|
|
20
|
+
>
|
|
18
21
|
{themeConfig.title}
|
|
19
22
|
</div>
|
|
20
23
|
</div>
|
|
@@ -63,6 +63,7 @@ export default () => {
|
|
|
63
63
|
return (
|
|
64
64
|
<Fragment>
|
|
65
65
|
<div
|
|
66
|
+
id="search-input-wrapper"
|
|
66
67
|
className="rounded-lg w-40 lg:w-64 flex items-center pr-2 flex-row hover:bg-gray-50
|
|
67
68
|
transition duration-300 bg-gray-100 border border-white focus-within:border-gray-100
|
|
68
69
|
focus-within:bg-white dark:bg-gray-700 dark:border-gray-700 relative
|
|
@@ -84,6 +85,7 @@ export default () => {
|
|
|
84
85
|
{isMac ? macSearchKey : windowsSearchKey}
|
|
85
86
|
</div>
|
|
86
87
|
<div
|
|
88
|
+
id="search-results-wrapper"
|
|
87
89
|
className={cx(
|
|
88
90
|
'absolute transition-all duration-500 top-12 w-96 rounded-lg',
|
|
89
91
|
'cursor-pointer shadow overflow-hidden',
|
|
@@ -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.20220425.2",
|
|
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.20220425.2"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|