docs: 新增 GitLab 卡片功能介紹

This commit is contained in:
noeFly
2025-06-21 21:29:28 +08:00
parent 42c378c844
commit 14277a6c20
+13 -1
View File
@@ -12,7 +12,7 @@ draft: false
## 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.
::github{repo="Fabrizz/MMM-OnSpotify"}
::github{repo="saicaca/fuwari"}
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"}
```
## 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
Following types of admonitions are supported: `note` `tip` `important` `warning` `caution`