create-react-docs-ui 0.1.5 → 0.1.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-zh.md ADDED
@@ -0,0 +1,85 @@
1
+ 简体中文 | [English](README.md)
2
+
3
+ ## create-react-docs-ui
4
+
5
+ 秒级搭建 React 文档站,基于 [`react-docs-ui`](https://github.com/shenjianZ/react-docs-ui)。专注写 Markdown,路由、主题、MDX、代码高亮、国际化、侧边栏/目录与命令面板均已预置。
6
+
7
+ ### 特性
8
+ - 以配置为中心:`public/config/site.yaml`
9
+ - 支持 MD/MDX、语法高亮、GFM、简易 Frontmatter 解析
10
+ - 亮/暗主题切换与命令面板(Cmd/Ctrl+K)
11
+ - 预置多语言目录(如 `en`、`zh-cn`)
12
+ - Vite 开箱可用
13
+
14
+ ### 环境要求
15
+ - Node.js >= 18
16
+
17
+ ### 快速开始
18
+ - npm:
19
+ ```bash
20
+ npm create react-docs-ui@latest my-docs
21
+ ```
22
+ - yarn:
23
+ ```bash
24
+ yarn create react-docs-ui my-docs
25
+ ```
26
+ - pnpm:
27
+ ```bash
28
+ pnpm create react-docs-ui my-docs
29
+ ```
30
+ 然后:
31
+ ```bash
32
+ cd my-docs
33
+ npm install
34
+ npm run dev
35
+ ```
36
+ 开发地址:http://localhost:5173
37
+
38
+ ### 生成项目脚本
39
+ - `dev`: 启动 Vite 开发服务器
40
+ - `build`: 类型检查并构建
41
+ - `preview`: 预览产物
42
+
43
+ ### 生成项目结构
44
+ - `public/config/site.yaml`、`public/config/site.en.yaml`:按语言的站点配置
45
+ - `public/docs/<lang>/**/*.md`:文档 Markdown,路径映射路由
46
+ - `src/`:应用入口,一般无需修改
47
+
48
+ ### 配置示例(`public/config/site.yaml`)
49
+ ```yaml
50
+ site:
51
+ logo: /logo.svg
52
+ title: My Docs
53
+ description: Awesome docs
54
+ navbar:
55
+ showTitle: true
56
+ items:
57
+ - title: GitHub
58
+ link: https://github.com/shenjianZ/react-docs-ui
59
+ external: true
60
+ sidebar:
61
+ collections:
62
+ guide:
63
+ sections:
64
+ - title: 入门
65
+ path: guide
66
+ children:
67
+ - { title: 介绍, path: guide/introduction }
68
+ ```
69
+
70
+ ### 文档示例(`public/docs/en/guide/introduction.md`)
71
+ ```markdown
72
+ ---
73
+ title: Introduction
74
+ ---
75
+
76
+ # Introduction
77
+
78
+ Welcome to My Docs!
79
+ ```
80
+
81
+ ### 相关链接
82
+ - 底层 UI 库:`react-docs-ui` — https://github.com/shenjianZ/react-docs-ui
83
+
84
+ ### 许可证
85
+ [MIT](LICENSE)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-react-docs-ui",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {
@@ -17,7 +17,8 @@
17
17
  "template/tsconfig.app.json",
18
18
  "template/tsconfig.json",
19
19
  "template/vite.config.ts",
20
- "README.md"
20
+ "README.md",
21
+ "README-zh.md"
21
22
  ],
22
23
  "description": "Scaffold a React documentation site with one command — built-in routing, theming, MDX, examples, and production-ready build config, powered by react-docs-ui.",
23
24
  "homepage": "https://github.com/shenjianZ/create-react-docs-ui",
@@ -11,7 +11,7 @@
11
11
  "dependencies": {
12
12
  "buffer": "^6.0.3",
13
13
  "react": ">=18",
14
- "react-docs-ui": "^0.1.3",
14
+ "react-docs-ui": "^0.1.7",
15
15
  "react-dom": ">=18",
16
16
  "react-router-dom": "^7.8.0"
17
17
  },
@@ -75,23 +75,44 @@ footer:
75
75
  enabled: true
76
76
  copyright: "© 2024 React Docs UI. All rights reserved."
77
77
  repository:
78
- url: "https://github.com/your_github_id/your_repo_name"
78
+ url: "https://github.com/shenjianZ/React-docs-ui"
79
79
  branch: "master"
80
- lastUpdated: "2024-12-19"
81
- links:
82
- - title: "Documentation"
83
- link: "/guide/introduction"
84
- - title: "GitHub"
85
- link: "https://github.com/your_github_id/your_repo_name"
86
- external: true
87
- - title: "License"
88
- link: "/license"
80
+ lastUpdated: "2025-08-14"
81
+ version: "v0.1.7"
82
+ groups:
83
+ - title: "Community"
84
+ items:
85
+ - title: "Discussions"
86
+ link: "https://github.com/shenjianZ/React-docs-ui/discussions"
87
+ external: true
88
+ - title: "Issues"
89
+ link: "https://github.com/shenjianZ/React-docs-ui/issues"
90
+ external: true
91
+ - title: "Contributing"
92
+ link: "https://github.com/shenjianZ/React-docs-ui/blob/master/CONTRIBUTING.md"
93
+ external: true
94
+ - title: "Releases"
95
+ link: "https://github.com/shenjianZ/React-docs-ui/releases"
96
+ external: true
97
+ - title: "Help & Support"
98
+ items:
99
+ - title: "Examples"
100
+ link: "/guide/quick-start"
101
+ - title: "Source Code"
102
+ link: "https://github.com/shenjianZ/React-docs-ui"
103
+ external: true
104
+ - title: "License"
105
+ link: "https://github.com/shenjianZ/React-docs-ui/blob/master/LICENSE"
106
+ external: true
107
+ - title: "Back to Top"
108
+ link: "#"
109
+ action: "scrollTop"
89
110
  social:
90
111
  - name: "email"
91
112
  url: "mailto:contact@example.com"
92
113
  icon: "mail"
93
114
  - name: "github"
94
- url: "https://github.com/your_github_id"
115
+ link: "https://github.com/shenjianZ/React-docs-ui"
95
116
  icon: "github"
96
117
  # - name: "youtube"
97
118
  # url: "https://youtube.com/@yourhandle"
@@ -73,16 +73,45 @@ toc:
73
73
  # Footer Configuration
74
74
  footer:
75
75
  enabled: true
76
- copyright: "© 2024 React Docs UI. All rights reserved."
76
+ copyright: "© 2025 React Docs UI. All rights reserved."
77
77
  repository:
78
- url: "https://github.com/your_github_id/your_repo_name"
78
+ url: "https://github.com/shenjianZ/React-docs-ui"
79
79
  branch: "master"
80
- lastUpdated: "2024-12-19"
80
+ lastUpdated: "2025-08-14"
81
+ version: "v0.1.7"
82
+ groups:
83
+ - title: "社区"
84
+ items:
85
+ - title: "讨论区"
86
+ link: "https://github.com/shenjianZ/React-docs-ui/discussions"
87
+ external: true
88
+ - title: "问题反馈"
89
+ link: "https://github.com/shenjianZ/React-docs-ui/issues"
90
+ external: true
91
+ - title: "贡献指南"
92
+ link: "https://github.com/shenjianZ/React-docs-ui/blob/master/CONTRIBUTING.md"
93
+ external: true
94
+ - title: "版本发布"
95
+ link: "https://github.com/shenjianZ/React-docs-ui/releases"
96
+ external: true
97
+ - title: "帮助支持"
98
+ items:
99
+ - title: "示例"
100
+ link: "/guide/quick-start"
101
+ - title: "源代码"
102
+ link: "https://github.com/shenjianZ/React-docs-ui"
103
+ external: true
104
+ - title: "开源许可"
105
+ link: "https://github.com/shenjianZ/React-docs-ui/blob/master/LICENSE"
106
+ external: true
107
+ - title: "回到顶部"
108
+ link: "#"
109
+ action: "scrollTop"
81
110
  links:
82
111
  - title: "Documentation"
83
112
  link: "/guide/introduction"
84
113
  - title: "GitHub"
85
- link: "https://github.com/your_github_id/your_repo_name"
114
+ link: "https://github.com/shenjianZ/React-docs-ui"
86
115
  external: true
87
116
  - title: "License"
88
117
  link: "/license"