@deot/docs-cli 1.0.5 → 1.1.0

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.
Files changed (2) hide show
  1. package/README.md +3 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -50,7 +50,9 @@ pnpm exec doc build --workspace site --out-dir dist
50
50
 
51
51
  ### `doc preview`
52
52
 
53
- 直接以 production runtime 预览 workspace,不生成新的构建产物。默认端口为 `4173`,不会注入开发 runtime,也不会启用 HMR 或 SSE。
53
+ 直接以 production runtime 预览 workspace,不生成新的构建产物。默认端口为 `4173`,不会注入开发 runtime,也不会启用 HMR 或 SSE。该模式已提供 HTML history fallback。
54
+
55
+ 若把站点部署到只能配置自定义 404 页的静态托管,请同时提供 `404.html`:把当前 URL 写入 `sessionStorage['@deot/docs:redirect']` 后跳转入口,由 [`@deot/docs-client`](../client/README.md) 还原深链。
54
56
 
55
57
  ```bash
56
58
  pnpm exec doc preview --workspace site
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deot/docs-cli",
3
- "version": "1.0.5",
3
+ "version": "1.1.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -13,7 +13,7 @@
13
13
  "access": "public"
14
14
  },
15
15
  "dependencies": {
16
- "@deot/docs-dever": "^1.0.5",
16
+ "@deot/docs-dever": "^1.1.0",
17
17
  "commander": "^15.0.0"
18
18
  },
19
19
  "devDependencies": {