Skip to content

Commit

Permalink
fix: add admonition for sub repos
Browse files Browse the repository at this point in the history
  • Loading branch information
xbpk3t committed Dec 10, 2024
1 parent b1376e6 commit 3b99e6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ tasks:
- fieldalignment -fix ./...
- go test `go list ./... | grep -v examples` -coverprofile=coverage.out -covermode=atomic
- task: pre-commit

# - go vet -vettool=$(which shadow) -strict # 这个回去扫描官方pkg的版本,报错类似 shadow: package requires newer Go version go1.23,所以移除

- nilaway ./...
# - # go build -race cmd
# - # hadolint --config </path/to/config.yaml> Dockerfile
# - go vet -vettool=$(which shadow) -strict # 这个回去扫描官方pkg的版本,报错类似 shadow: package requires newer Go version go1.23,所以移除
2 changes: 1 addition & 1 deletion yaml2md/cmd/gh.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func RenderRepos(repos gh.Repos) (res strings.Builder) {
// 渲染该repo的sub repos
if len(repo.Sub) != 0 {
flag = true
res.WriteString(RenderRepositoriesAsMarkdownTable(repo.Sub))
res.WriteString(utils.RenderMarkdownAdmonitions(utils.AdmonitionTip, "Sub Repos", RenderRepositoriesAsMarkdownTable(repo.Sub)))
}
// 渲染该repo的rep repos
if len(repo.Rep) != 0 {
Expand Down

0 comments on commit 3b99e6a

Please sign in to comment.