Skip to content

Commit ce95348

Browse files
committed
docs: update documentation, deploy to vercel
1 parent 15494ef commit ce95348

File tree

3 files changed

+259
-57
lines changed

3 files changed

+259
-57
lines changed

README.md

Lines changed: 65 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,51 @@
11
<div align="center"><img width="100%" src="https://static.todev.cc/resume/logo.svg" />
2-
<a href="https://resume.todev.cc/">所见即所得的在线简历</a> | <a href="https://stackblitz.com/edit/node-ga2wh1?file=README.md">Stackblitz Playground</a></div>
2+
<a href="https://resume.todev.cc/">WYSIWYG Online resume</a> | <a href="https://stackblitz.com/edit/node-ga2wh1?file=README.md">Stackblitz Playground</a> | <a href="./README.zh-CN.md">中文</a></div>
33

4-
## 项目介绍
4+
<p />
55

6-
### 初衷
6+
<div align="center"><a href="https://vercel.com/new/clone?project-name=resume&repository-name=resume&repository-url=https://github.com/Dunqing/resume/tree/main/examples/resume-example"><img src="https://vercel.com/button" alt="Deploy with Vercel"/></a></div>
77

8-
让简历可以随时随地预览,用程序员最熟悉的Markdown语法编写,并且不收费!
8+
## Introduction
99

10-
## 支持功能
10+
### Purpose
1111

12-
- [x] 支持暗黑模式
13-
- [x] 支持嵌入 HTML
14-
- [x] 支持打印 PDF
15-
- [x] 支持在线预览
16-
- [x] 支持自定义模板
17-
- [x] 支持多模板组合使用
18-
- [x] 支持样式覆盖
19-
- [ ] 更多的个性化模板
12+
To allow resumes to be previewed anytime, anywhere, written in the Markdown syntax that programmers are most familiar with, and free of charge!
2013

21-
## 使用方式
14+
## Supported Features
15+
16+
- [x] Dark mode support
17+
- [x] HTML embedding support
18+
- [x] PDF printing support
19+
- [x] Online preview support
20+
- [x] Custom template support
21+
- [x] Multiple template combination support
22+
- [x] Style override support
23+
- [ ] More personalized templates
24+
25+
## Usage
2226

2327
### [create-resumejs](./packages/create-resumejs/)
2428

25-
快速创建简历项目,支持在 Vercel 中部署
29+
Quickly create a resume project, supports deployment on Vercel
2630

27-
1. 创建
31+
1. Create
2832

2933
```shell
3034
pnpm create resumejs
3135
```
3236

33-
2. 选择模板
37+
2. Choose a template
3438

35-
3. 编写 README.md
39+
3. Write your README.md
3640

37-
4. 完成你的简历!
41+
4. Finish your resume!
3842

3943

4044
## [@resumejs/components](./packages/components/)
4145

42-
以组件方式引入到自己项目
46+
Import as components into your own project
4347

44-
### 下载
48+
### Download
4549

4650
```shell
4751
pnpm add @resumejs/components
@@ -54,107 +58,111 @@ import { Resume } from '@resumejs/components'
5458

5559
export default function App() {
5660
const resume = `
57-
#名字
58-
##个人信息
59-
##工作信息
61+
# Name
62+
## Personal Information
63+
## Work Information
6064
`
6165
return <Resume>{resume}</Resume>
6266
}
6367
```
6468

65-
### 使用示例
69+
### Usage Example
6670

6771
- [vite-ant-design-pro](https://github.com/Dunqing/vite-ant-design-pro/tree/main/playground/src/pages/Resume)
6872

6973

7074
## [@resumejs/resume](./packages/resume/)
7175

72-
- cli 支持,使用方式和 vite 一样
73-
- 默认使用运行目录下的 README.md 做为你的简历 markdown
74-
- 支持 vite.config.ts 配置文件
76+
- CLI support, usage is the same as Vite
77+
- By default, use the README.md in the running directory as your resume markdown
78+
- Supports the vite.config.ts configuration file
7579

76-
> 可以直接使用 create-resumejs 创建项目
80+
> You can directly use create-resumejs to create a project
7781
7882
### Install
7983

8084
```shell
8185
pnpm add @resumjes/resume
8286
```
8387

84-
需要安装依赖 react react-dom
88+
Dependencies react and react-dom need to be installed.
8589

8690
```shell
8791
pnpm add react react-dom
8892
```
8993

90-
### dev 开发
94+
### Development
9195

9296
```shell
9397
resume dev
9498
```
9599

96-
### build 打包
100+
### Build
97101

98102
```shell
99103
resume build
100104
```
101105

102-
### preview 预览
106+
### Preview
103107

104108
```shell
105109
resume preview
106110
```
107111

108-
### 自定义模板
112+
### Custom Templates
109113

110114
```shell
111115
resume dev --template @resumejs/template-nova
112116
resume build --template @resumejs/template-nova
113117
```
114118

115-
[参考示例](./examples/customize-template/)
116-
117-
119+
[Reference example](./examples/customize-template/)
118120

119121
## Templates
120122

121-
- [@resumejs/template-default](./templates/default/) 默认模板
123+
- [@resumejs/template-default](./templates/default/) Default template
122124
- [@resumejs/template-nova](./templates/nova/)
123125

124-
**简历默认模板**
126+
**Default resume template**
127+
128+
## How to customize the template?
129+
130+
### Customize the markdown syntax for writing resumes
131+
132+
1. The content under the first-level title includes the information of the resume header with the first-level title as the header. You can customize the `header` component.
125133

126-
## 如何自定义模板?
134+
- The first-level title is the name. You can customize the `header-name` component.
135+
- The picture is used as the avatar. You can customize the `header-avatar` component.
136+
- Wrap all list items. You can customize the `header-content` component.
137+
- Each list is a row. You can customize the `header-row` component.
138+
- The item in the list is a column. You can customize the `header-col` component.
127139

128-
### 自定义的写简历的 markdown 语法
140+
2. The first paragraph below the third-level title
129141

130-
1. 一级标题下的内容包括一级标题为简历头部的信息 可自定义`header`组件
142+
- The table will be changed to the description information of the third-level title, and you can customize the `card`, `card-item`, `card-item-label`, `card-item-value` components.
143+
- The first line of text below the title or Table will be changed to the description content, and you can customize the `description` component.
131144

132-
- 一级标题为名字 可自定义`header-name`组件
133-
- 图片作为头像 可自定义`header-avatar`组件
134-
- 包裹所有列表项 可自定义`header-content`组件
135-
- 每个列表为行 可自定义`header-row`组件
136-
- 列表的项为列 可自定义`header-col`组件
145+
3. FrontMatter (dark mode, Github, print button)
137146

138-
2. 三级标题下方的第一段内容
147+
- You can customize the toolbox component.
139148

140-
- 表格将更改为三级标题的描述信息,可自定义`card`, `card-item`, `card-item-label`, `card-item-value`组件
141-
- 标题下或 Table 下第一行文本将会更改为描述内容 可自定义`description`组件
149+
### Example
142150

143-
3. FrontMatter (暗黑模式,Github, 打印按钮)
151+
- [Default template](templates/default/src/index.tsx)
144152

145-
- 可自定义 toolbox 组件
146153

147-
### 示例
154+
## Related Articles
148155

149-
- [默认模板](templates/default/src/index.tsx)
156+
[An open source resume project that is more complete and easy to expand using Markdown to write resumes](https://juejin.cn/post/7124536546677489678)
150157

151158

152-
## 相关文章
159+
## Deploy
153160

154-
[一款更加完善,且易于拓展的用 Markdown 编写简历的开源简历项目](https://juejin.cn/post/7124536546677489678)
161+
<a href="https://vercel.com/new/clone?project-name=resume&repository-name=resume&repository-url=https://github.com/Dunqing/resume/tree/main/examples/resume-example"><img src="https://vercel.com/button" alt="Deploy with Vercel"/></a>
155162

163+
This is very simple, just click the button above to deploy to Vercel. You can also deploy to other platforms that support Vite.
156164

157-
### Others
165+
## Others
158166

159167
This project is tested with [BrowserStack](https://browserstack.com).
160168

README.zh-CN.md

Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
<div align="center"><img width="100%" src="https://static.todev.cc/resume/logo.svg" />
2+
<a href="https://resume.todev.cc/">所见即所得的在线简历</a> | <a href="https://stackblitz.com/edit/node-ga2wh1?file=README.md">Stackblitz Playground</a> | <a href="./README.md">English</a></div>
3+
<p />
4+
<div align="center"><a href="https://vercel.com/new/clone?project-name=resume&repository-name=resume&repository-url=https://github.com/Dunqing/resume/tree/main/examples/resume-example"><img src="https://vercel.com/button" alt="Deploy with Vercel"/></a></div>
5+
6+
## 项目介绍
7+
8+
### 初衷
9+
10+
让简历可以随时随地预览,用程序员最熟悉的Markdown语法编写,并且不收费!
11+
12+
## 支持功能
13+
14+
- [x] 支持暗黑模式
15+
- [x] 支持嵌入 HTML
16+
- [x] 支持打印 PDF
17+
- [x] 支持在线预览
18+
- [x] 支持自定义模板
19+
- [x] 支持多模板组合使用
20+
- [x] 支持样式覆盖
21+
- [ ] 更多的个性化模板
22+
23+
## 使用方式
24+
25+
### [create-resumejs](./packages/create-resumejs/)
26+
27+
快速创建简历项目,支持在 Vercel 中部署
28+
29+
1. 创建
30+
31+
```shell
32+
pnpm create resumejs
33+
```
34+
35+
2. 选择模板
36+
37+
3. 编写 README.md
38+
39+
4. 完成你的简历!
40+
41+
42+
## [@resumejs/components](./packages/components/)
43+
44+
以组件方式引入到自己项目
45+
46+
### 下载
47+
48+
```shell
49+
pnpm add @resumejs/components
50+
```
51+
52+
### 使用
53+
54+
```tsx
55+
import { Resume } from '@resumejs/components'
56+
57+
export default function App() {
58+
const resume = `
59+
#名字
60+
##个人信息
61+
##工作信息
62+
`
63+
return <Resume>{resume}</Resume>
64+
}
65+
```
66+
67+
### 使用示例
68+
69+
- [vite-ant-design-pro](https://github.com/Dunqing/vite-ant-design-pro/tree/main/playground/src/pages/Resume)
70+
71+
72+
## [@resumejs/resume](./packages/resume/)
73+
74+
- cli 支持,使用方式和 vite 一样
75+
- 默认使用运行目录下的 README.md 做为你的简历 markdown
76+
- 支持 vite.config.ts 配置文件
77+
78+
> 可以直接使用 create-resumejs 创建项目
79+
80+
### Install
81+
82+
```shell
83+
pnpm add @resumjes/resume
84+
```
85+
86+
需要安装依赖 react 和 react-dom
87+
88+
```shell
89+
pnpm add react react-dom
90+
```
91+
92+
### dev 开发
93+
94+
```shell
95+
resume dev
96+
```
97+
98+
### build 打包
99+
100+
```shell
101+
resume build
102+
```
103+
104+
### preview 预览
105+
106+
```shell
107+
resume preview
108+
```
109+
110+
### 自定义模板
111+
112+
```shell
113+
resume dev --template @resumejs/template-nova
114+
resume build --template @resumejs/template-nova
115+
```
116+
117+
[参考示例](./examples/customize-template/)
118+
119+
120+
121+
## Templates
122+
123+
- [@resumejs/template-default](./templates/default/) 默认模板
124+
- [@resumejs/template-nova](./templates/nova/)
125+
126+
**简历默认模板**
127+
128+
## 如何自定义模板?
129+
130+
### 自定义的写简历的 markdown 语法
131+
132+
1. 一级标题下的内容包括一级标题为简历头部的信息 可自定义`header`组件
133+
134+
- 一级标题为名字 可自定义`header-name`组件
135+
- 图片作为头像 可自定义`header-avatar`组件
136+
- 包裹所有列表项 可自定义`header-content`组件
137+
- 每个列表为行 可自定义`header-row`组件
138+
- 列表的项为列 可自定义`header-col`组件
139+
140+
2. 三级标题下方的第一段内容
141+
142+
- 表格将更改为三级标题的描述信息,可自定义`card`, `card-item`, `card-item-label`, `card-item-value`组件
143+
- 标题下或 Table 下第一行文本将会更改为描述内容 可自定义`description`组件
144+
145+
3. FrontMatter (暗黑模式,Github, 打印按钮)
146+
147+
- 可自定义 toolbox 组件
148+
149+
### 示例
150+
151+
- [默认模板](templates/default/src/index.tsx)
152+
153+
154+
## 相关文章
155+
156+
[一款更加完善,且易于拓展的用 Markdown 编写简历的开源简历项目](https://juejin.cn/post/7124536546677489678)
157+
158+
159+
160+
## 部署
161+
162+
<a href="https://vercel.com/new/clone?project-name=resume&repository-name=resume&repository-url=https://github.com/Dunqing/resume/tree/main/examples/resume-example"><img src="https://vercel.com/button" alt="Deploy with Vercel"/></a>
163+
164+
这非常简单,只需点击上面的按钮即可部署到 Vercel。您还可以部署到支持 Vite 的其他平台。
165+
166+
## Others
167+
168+
This project is tested with [BrowserStack](https://browserstack.com).
169+
170+
[MIT LICENSE](./LICENSE)

0 commit comments

Comments
 (0)