Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate badge for both Documenter{GitHubActions} and Documenter{GitLabCI} #187

Closed
goretkin opened this issue Jun 9, 2020 · 1 comment
Closed

Comments

@goretkin
Copy link
Contributor

goretkin commented Jun 9, 2020

using PkgTemplates
# The default plugins are ProjectFile, SrcDir, Tests, Readme, License,and Git.

plugins = [
    Tests(; project=true),   # make test project
    GitLabCI(),
    GitHubActions(),
    Documenter{GitHubActions}(),
    Documenter{GitLabCI}(),
    #Coveralls(),
    #Codecov()
]

t = PkgTemplates.Template(plugins=plugins, julia=v"1.4", disable_defaults=[License])
t("ExamplePackage2")

makes the following README.md, with only a doc badge for gitlab.

# ExamplePackage2

[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://goretkin.gitlab.io/ExamplePackage2.jl/dev)
[![Build Status](https://github.com/goretkin/ExamplePackage2.jl/workflows/CI/badge.svg)](https://github.com/goretkin/ExamplePackage2.jl/actions)
[![Build Status](https://github.com/goretkin/ExamplePackage2.jl/badges/master/pipeline.svg)](https://github.com/goretkin/ExamplePackage2.jl/pipelines)
[![Coverage](https://github.com/goretkin/ExamplePackage2.jl/badges/master/coverage.svg)](https://github.com/goretkin/ExamplePackage2.jl/commits/master)
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://goretkin.github.io/ExamplePackage2.jl/stable)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://goretkin.github.io/ExamplePackage2.jl/dev)
@goretkin
Copy link
Contributor Author

goretkin commented Jun 9, 2020

Sorry, I misread :)

@goretkin goretkin closed this as completed Jun 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant