Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit f1bf140

Browse files
committed
docs(plugin-git-log): add demo
1 parent 6a7fa62 commit f1bf140

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

packages/docs/src/en/plugins/git-log.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,19 @@ A list of all the commits in chronological order.
8989
### git.contributors
9090

9191
A list of contributors to all users who have modified the article.
92+
93+
## Demo
94+
95+
**Input**
96+
97+
```md
98+
- Author of this page: {{ $page.git.author }}
99+
- Contributors of this page: {{ $page.git.contributors.join(', ') }}
100+
- Last commit of this page: {{ $page.git.commits[0].fullHash }}
101+
```
102+
103+
**Output**
104+
105+
- Author of this page: {{ $page.git.author }}
106+
- Contributors of this page: {{ $page.git.contributors.join(', ') }}
107+
- Last commit of this page: {{ $page.git.commits[0].fullHash }}

packages/docs/src/zh/plugins/git-log.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,19 @@ module.exports = {
8989
### git.contributors
9090

9191
文章的贡献者列表,即所有修改过文章的用户列表。
92+
93+
## 演示
94+
95+
**输入**
96+
97+
```md
98+
- 本页面的作者:{{ $page.git.author }}
99+
- 本页面的贡献者:{{ $page.git.contributors.join(', ') }}
100+
- 本页面的最后一次提交:{{ $page.git.commits[0].fullHash }}
101+
```
102+
103+
**输出**
104+
105+
- 本页面的作者:{{ $page.git.author }}
106+
- 本页面的贡献者:{{ $page.git.contributors.join(', ') }}
107+
- 本页面的最后一次提交:{{ $page.git.commits[0].fullHash }}

0 commit comments

Comments
 (0)