feat(shortcodes): Display a thumbnail for GitHub repos

This commit is contained in:
Aleksey @soar Smyrnov
2025-05-25 16:08:20 -07:00
committed by Aleksey Smyrnov
parent 1d21656d5e
commit 2bbcd3ab8c
2 changed files with 14 additions and 5 deletions

View File

@@ -390,9 +390,10 @@ In order to add images to the gallery, use `img` tags for each image and add `cl
`github` allows you to quickly link a github repository, all while showing and updating in realtime stats about it, such as the number of stars and forks it has.
<!-- prettier-ignore-start -->
| Parameter | Description |
| --------- | ----------------------------------------------------- |
| `repo` | [String] github repo in the format of `username/repo` |
| Parameter | Description |
|-----------------|---------------------------------------------------------------|
| `repo` | [String] github repo in the format of `username/repo` |
| `showThumbnail` | **Optional** [boolean] display a thumbnail for the repository |
<!-- prettier-ignore-end -->
**Example 1:**