@umijs/plugin-docs 4.0.13 → 4.0.16
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.
|
@@ -140,6 +140,7 @@ function search(routes: any, keyword: string): SearchResultItem[] {
|
|
|
140
140
|
if (!keyword) return [];
|
|
141
141
|
|
|
142
142
|
const result: SearchResultItem[] = [];
|
|
143
|
+
const EXCLUDE_PATH = ['README', 'docs-layout'];
|
|
143
144
|
|
|
144
145
|
function addResult(newResult: { path: string; href: string }) {
|
|
145
146
|
const { path, href } = newResult;
|
|
@@ -147,7 +148,14 @@ function search(routes: any, keyword: string): SearchResultItem[] {
|
|
|
147
148
|
result.push({ path, href });
|
|
148
149
|
}
|
|
149
150
|
|
|
150
|
-
Object.keys(routes).
|
|
151
|
+
Object.keys(routes).forEach((path) => {
|
|
152
|
+
if (
|
|
153
|
+
path.split('/')[0] === 'components' ||
|
|
154
|
+
EXCLUDE_PATH.includes(path) ||
|
|
155
|
+
/.zh-CN$/.test(path)
|
|
156
|
+
) {
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
151
159
|
if (path.toLowerCase().includes(keyword.toLowerCase())) {
|
|
152
160
|
addResult({
|
|
153
161
|
path: path.split('/').slice(1).join(' > '),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
! tailwindcss v3.1.
|
|
2
|
+
! tailwindcss v3.1.3 | MIT License | https://tailwindcss.com
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
/*
|
|
@@ -355,6 +355,13 @@ input::-moz-placeholder, textarea::-moz-placeholder {
|
|
|
355
355
|
/* 2 */
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
+
input:-ms-input-placeholder, textarea:-ms-input-placeholder {
|
|
359
|
+
opacity: 1;
|
|
360
|
+
/* 1 */
|
|
361
|
+
color: #9ca3af;
|
|
362
|
+
/* 2 */
|
|
363
|
+
}
|
|
364
|
+
|
|
358
365
|
input::placeholder,
|
|
359
366
|
textarea::placeholder {
|
|
360
367
|
opacity: 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/plugin-docs",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.16",
|
|
4
4
|
"description": "@umijs/plugin-docs",
|
|
5
5
|
"homepage": "https://github.com/umijs/umi/tree/master/packages/plugin-docs#readme",
|
|
6
6
|
"bugs": "https://github.com/umijs/umi/issues",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"test": "umi-scripts jest-turbo"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
+
"classnames": "^2.3.1",
|
|
29
30
|
"github-slugger": "^1.4.0",
|
|
30
31
|
"keymaster": "1.6.2",
|
|
31
32
|
"react-helmet": "^6.1.0",
|
|
@@ -37,12 +38,11 @@
|
|
|
37
38
|
"@types/github-slugger": "^1.3.0",
|
|
38
39
|
"@types/keymaster": "^1.6.30",
|
|
39
40
|
"@types/react-helmet": "^6.1.5",
|
|
40
|
-
"classnames": "^2.3.1",
|
|
41
41
|
"rehype-autolink-headings": "^6.1.1",
|
|
42
42
|
"rehype-slug": "5.0.1",
|
|
43
43
|
"remark-gfm": "^3.0.1",
|
|
44
44
|
"tailwindcss": "^3.0.24",
|
|
45
|
-
"umi": "4.0.
|
|
45
|
+
"umi": "4.0.16"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|