dumi 2.0.6 → 2.0.7

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/README.md CHANGED
@@ -1,18 +1,29 @@
1
1
  # dumi
2
2
 
3
- [![NPM version](https://img.shields.io/npm/v/dumi/next)](https://npmjs.org/package/dumi) [![NPM downloads](https://img.shields.io/npm/dm/dumi)](https://npmjs.org/package/dumi)
3
+ [![NPM version](https://img.shields.io/npm/v/dumi)](https://npmjs.org/package/dumi) [![NPM downloads](https://img.shields.io/npm/dm/dumi)](https://npmjs.org/package/dumi) [![GitHub CI](https://github.com/umijs/dumi/workflows/CI/badge.svg)](https://github.com/umijs/dumi)
4
4
 
5
- The development version for dumi 2, if you are looking for dumi 1, please switch to the [1.x branch](https://github.com/umijs/dumi/tree/1.x).
5
+ <img src="https://gw.alipayobjects.com/zos/bmw-prod/d3e3eb39-1cd7-4aa5-827c-877deced6b7e/lalxt4g3_w256_h256.png" width="120">
6
6
 
7
- ## Install
7
+ dumi is an static site generator for component library development.
8
+
9
+ ## Usage & Guide
10
+
11
+ To view more online examples and docs, please visit [dumi official site](https://d.umijs.org).
12
+
13
+ ## Development
8
14
 
9
15
  ```bash
10
16
  $ pnpm install
17
+ $ pnpm dev
18
+ $ pnpm docs:dev
11
19
  ```
12
20
 
13
- ```bash
14
- $ npm run dev
15
- $ npm run build
21
+ ## Badge
22
+
23
+ Using dumi? Add a README badge to show it off: [![dumi](https://img.shields.io/badge/docs%20by-dumi-blue)](https://github.com/umijs/dumi)
24
+
25
+ ```
26
+ [![dumi](https://img.shields.io/badge/docs%20by-dumi-blue)](https://github.com/umijs/dumi)
16
27
  ```
17
28
 
18
29
  ## LICENSE
@@ -80,7 +80,10 @@ var derivative_default = (api) => {
80
80
  import_plugin_utils.logger.warn("Hash history is temporarily incompatible, it is recommended to use browser history for now.");
81
81
  }
82
82
  });
83
- safeExcludeInMFSU(api, [new RegExp("dumi/dist/client")]);
83
+ safeExcludeInMFSU(api, [
84
+ new RegExp("dumi/dist/client"),
85
+ new RegExp("compiled/_internal/searchWorker")
86
+ ]);
84
87
  api.modifyDefaultConfig((memo) => {
85
88
  if (api.userConfig.mfsu !== false) {
86
89
  if (import_fs.default.existsSync(import_path.default.join(api.cwd, "node_modules", ".pnpm")) || process.platform === "win32") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dumi",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "description": "📖 Documentation Generator of React Component",
5
5
  "keywords": [
6
6
  "generator",
@@ -43,6 +43,13 @@
43
43
  &-aside {
44
44
  display: flex;
45
45
  align-items: center;
46
+
47
+ @media @mobile {
48
+ margin: 8px 16px;
49
+ padding-top: 24px;
50
+ justify-content: center;
51
+ border-top: 1px solid @c-border-light;
52
+ }
46
53
  }
47
54
 
48
55
  @media @mobile {
@@ -69,7 +76,7 @@
69
76
  &-menu-btn {
70
77
  position: absolute;
71
78
  top: 50%;
72
- right: 24px;
79
+ inset-inline-end: 24px;
73
80
  padding: 0;
74
81
  border: 0;
75
82
  background: transparent;
@@ -1,7 +1,7 @@
1
1
  @import '../LangSwitch/index.less';
2
2
 
3
3
  .@{prefix}-lang-switch {
4
- + & {
4
+ & + & {
5
5
  margin-inline-start: 20px;
6
6
  }
7
7
  }