Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f2ca100

Browse files
Update README.md
1 parent df3149f commit f2ca100

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

‎README.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ just add `@vue` tag, `@exports` tag, to the to document in you vue SFC.
3636
export default {}
3737
```
3838

39+
## 如何使用jsdoc?
40+
41+
- 安装jsdoc: `npm i jsdoc -D`
42+
- 安装模板:`npm i sherry-docstrap -D`, 原来的[docstrap](https://github.com/docstrap/docstrap)有点小bug还未修复,所以自己暂时发布一个。
43+
- 在项目目录下建了配置文件:下面有示例,适当修改。
44+
- 在pacakge.json 里添加一个script: `"jsdoc": "rm -rf public/jsdoc && node_modules/.bin/jsdoc -c jsdoc.json"`, `public/jsdoc`为发布位置,适当修改
45+
- 生成文档: `npm run jsdoc`
46+
47+
3948
## jsdoc.json
4049

4150
```json

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /