Skip to content

docs: shorten the status badge labels - #25

Merged
saqibmanan merged 1 commit into
mainfrom
docs-concise-badges
Sep 8, 2026
Merged

saqibmanan merged 1 commit into
mainfrom
docs-concise-badges

Conversation

@saqibmanan

Copy link
Copy Markdown
Contributor

The deploy badge read "Deploy Keycloak theme to production" — too long, and it did not change when the markdown alt text was edited to Deployment.

Why editing the alt text did not work

GitHub's actions/workflows/<file>/badge.svg ignores markdown alt text and renders the workflow's name: field. So [![Deployment](...)] still displayed the full workflow name.

The obvious fix — renaming the workflow — would shorten the badge but make the Actions tab and run history vaguer, which is where a descriptive name earns its keep.

Routing the same status through shields.io decouples them: ?label= sets the badge text, the workflow keeps its real name.

What a visitor sees now

Badge Renders
deploy deploy: passing
ci ci: passing
deploys to deploys to: auth.civicdatalab.in
Keycloak Keycloak: 26.7.0
Keycloakify Keycloakify: v11

All five verified rendering live.

Two deliberate choices

Added "deploys to" — for a theme repository, which server does this render? is the first question a visitor has, and it links straight to the realm.

Version badges muted grey so the two carrying live state are what the eye lands on first.

Docs-only, so this will not trigger a deploy — the paths-ignore from #24 covers **.md. That is also a live test of it.

GitHub's own actions/workflows/<file>/badge.svg ignores the markdown alt
text and renders the workflow's `name:` field, so the deploy badge read
"Deploy Keycloak theme to production" no matter what the link text said.
Renaming the workflow would have shortened the badge at the cost of a
vaguer name in the Actions tab and in run history.

Routing the same status through shields.io decouples the two: the badge
label is set with ?label=, while the workflow keeps its descriptive name
where that name is actually useful.

Badges now read:

  deploy: passing
  ci: passing
  deploys to: auth.civicdatalab.in
  Keycloak: 26.7.0
  Keycloakify: v11

Adds a "deploys to" badge, which answers the question a visitor is most
likely to have about a theme repository - which server this renders -
and links to the realm. The version badges are muted grey so the two
that carry live state are what the eye lands on.
@saqibmanan
saqibmanan merged commit d2accb3 into main Sep 8, 2026
3 checks passed
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

Successfully merging this pull request may close these issues.

1 participant