docs: 新增 GitLab 卡片功能介紹
This commit is contained in:
@@ -12,7 +12,7 @@ draft: false
|
|||||||
## GitHub Repository Cards
|
## GitHub Repository Cards
|
||||||
You can add dynamic cards that link to GitHub repositories, on page load, the repository information is pulled from the GitHub API.
|
You can add dynamic cards that link to GitHub repositories, on page load, the repository information is pulled from the GitHub API.
|
||||||
|
|
||||||
::github{repo="Fabrizz/MMM-OnSpotify"}
|
::github{repo="saicaca/fuwari"}
|
||||||
|
|
||||||
Create a GitHub repository card with the code `::github{repo="<owner>/<repo>"}`.
|
Create a GitHub repository card with the code `::github{repo="<owner>/<repo>"}`.
|
||||||
|
|
||||||
@@ -20,6 +20,18 @@ Create a GitHub repository card with the code `::github{repo="<owner>/<repo>"}`.
|
|||||||
::github{repo="saicaca/fuwari"}
|
::github{repo="saicaca/fuwari"}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## GitLab Repository Cards
|
||||||
|
|
||||||
|
You can also add dynamic cards that show a GitLab repository, on page load, the repository information is pulled from the GitLab API.
|
||||||
|
|
||||||
|
::gitlab{repo="noeFly/blog"}
|
||||||
|
|
||||||
|
Create a GitHub repository card with the code `::gitlab{repo="<owner>/<repo>"}`.
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
::gitlab{repo="noeFly/blog"}
|
||||||
|
```
|
||||||
|
|
||||||
## Admonitions
|
## Admonitions
|
||||||
|
|
||||||
Following types of admonitions are supported: `note` `tip` `important` `warning` `caution`
|
Following types of admonitions are supported: `note` `tip` `important` `warning` `caution`
|
||||||
|
|||||||
Reference in New Issue
Block a user