Skip to content

Commit c69d01c

Browse files
committed
fix: template markdown links
1 parent b11c89e commit c69d01c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

examples/docs/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@
44

55
1. [账户相关](./apis-account.md)
66

7-
- [用户注册接口](./apis-account.md#0-用户注册接口)
7+
- [用户注册接口](./apis-account.md#1-用户注册接口)
88

9-
- [用户登录接口](./apis-account.md#1-用户登录接口)
9+
- [用户登录接口](./apis-account.md#2-用户登录接口)
1010

1111
2. [地址管理](./apis-address.md)
1212

13-
- [添加地址接口](./apis-address.md#0-添加地址接口)
13+
- [添加地址接口](./apis-address.md#1-添加地址接口)
1414

15-
- [更新地址接口](./apis-address.md#1-更新地址接口)
15+
- [更新地址接口](./apis-address.md#2-更新地址接口)
1616

17-
- [删除地址接口](./apis-address.md#2-删除地址接口)
17+
- [删除地址接口](./apis-address.md#3-删除地址接口)
1818

19-
- [获取地址信息](./apis-address.md#3-获取地址信息)
19+
- [获取地址信息](./apis-address.md#4-获取地址信息)
2020

21-
- [获取地址列表](./apis-address.md#4-获取地址列表)(Deprecated)
21+
- [获取地址列表](./apis-address.md#5-获取地址列表)(Deprecated)
2222

2323
3. [资料管理](./apis-profile.md)
2424

25-
- [获取用户资料](./apis-profile.md#0-获取用户资料)
25+
- [获取用户资料](./apis-profile.md#1-获取用户资料)
2626

2727
4. [菜单管理](./apis-menu.md)
2828

29-
- [获取菜单节点](./apis-menu.md#0-获取菜单节点)
29+
- [获取菜单节点](./apis-menu.md#1-获取菜单节点)

gen/template/group_readme.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
{{range $k,$v := .Groups}}
88
{{add $k 1}}. [{{$v.Title}}](./apis-{{$v.Group}}.md)
99
{{range $k2,$api := $v.Apis}}
10-
- [{{$api.Title}}](./apis-{{$api.Group}}.md#{{$k2}}-{{$api.Title}}) {{- if $api.Deprecated}}(Deprecated){{end}}
10+
- [{{$api.Title}}](./apis-{{$api.Group}}.md#{{add $k2 1}}-{{$api.Title}}) {{- if $api.Deprecated}}(Deprecated){{end}}
1111
{{end}}{{end}}

0 commit comments

Comments
 (0)