diff options
author | Fabian Schneider <fabbbbbi+git@googlemail.com> | 2019-01-18 13:39:35 +0000 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2019-01-18 13:39:35 +0000 |
commit | df1b6340e6672663dca9cc82c442d6da5a2af098 (patch) | |
tree | 091143f6a076dfad37359a8036789fe6bd6b494c /doc | |
parent | b479ddc769c2a0c3235cdae7184f1a5a4e9815c7 (diff) | |
download | gitlab-ce-df1b6340e6672663dca9cc82c442d6da5a2af098.tar.gz |
Add flat-square badge style
Diffstat (limited to 'doc')
-rw-r--r-- | doc/user/project/pipelines/settings.md | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/doc/user/project/pipelines/settings.md b/doc/user/project/pipelines/settings.md index 88d745b0ce4..5aa26af5265 100644 --- a/doc/user/project/pipelines/settings.md +++ b/doc/user/project/pipelines/settings.md @@ -157,7 +157,27 @@ into your `README.md`: ![coverage](https://gitlab.com/gitlab-org/gitlab-ce/badges/master/coverage.svg?job=coverage) ``` -### Environment Variables +### Badge styles + +Pipeline badges can be rendered in different styles by adding the `style=style_name` parameter to the URL. Currently two styles are available: + +#### Flat (default) + +``` +https://example.gitlab.com/<namespace>/<project>/badges/<branch>/coverage.svg?style=flat +``` + +![Badge flat style](https://gitlab.com/gitlab-org/gitlab-ce/badges/master/coverage.svg?job=coverage&style=flat) + +#### Flat square + +``` +https://example.gitlab.com/<namespace>/<project>/badges/<branch>/coverage.svg?style=flat-square +``` + +![Badge flat square style](https://gitlab.com/gitlab-org/gitlab-ce/badges/master/coverage.svg?job=coverage&style=flat-square) + +## Environment Variables [Environment variables](../../../ci/variables/README.html#variables) can be set in an environment to be available to a runner. |