1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2026-03-02 03:40:21 +00:00

resolves #50: badge url

Implements serving of an SVG badge at the url /badge/JOB.svg which
prettily shows the job's current status
This commit is contained in:
Oliver Giles
2018-09-10 14:51:43 +03:00
parent ab7be5a6c9
commit 132d40e6a3
6 changed files with 67 additions and 0 deletions

View File

@@ -542,6 +542,18 @@ This directory is also a good place to add any extra assets needed for this cust
---
# Badges
Laminar will serve a job's current status as a pretty badge at the url `/badge/JOBNAME.svg`. This can be used as a link to your server instance from your Github README.md file or cat blog:
```
<a href="https://my-example-laminar-server.com/jobs/my-project">
<img src="https://my-example-laminar-server.com/badge/my-project.svg">
</a>
```
---
# Reference
## Service configuration file