giella-core

Build tools and build support files as well as developer support tools for the GiellaLT repositories.

View the Project on GitHub giellalt/giella-core

Shields.io Badge JSON Endpoints

This document describes the JSON files used as endpoints for shields.io badges displayed in language repository GitHub pages.

File Location

Badge JSON files are generated in the docs/badgedata/ directory of each language repository during the build process. These files are served from the gh-pages branch.

File Naming Convention

Files follow the pattern: prefix-datatype.json

Prefixes

Current Badge Files

Shields.io Endpoint JSON Schema

These JSON files follow the shields.io endpoint JSON schema:

{
  "schemaVersion": 1,
  "label": "Badge Label",
  "message": "Badge Message",
  "color": "badge-color"
}

Color Conventions

Colors typically follow this pattern based on quality/maturity:

Build System

These files are automatically generated during the build process via rules in giella-core/am-shared/docs-dir-include.am using the FORCE target to ensure they are always regenerated.

Generation Scripts

Badge JSON files are generated by shell scripts in giella-core/scripts/:

Using in README

To display a badge in a repository README, use shields.io endpoint syntax:

![Badge Label](https://img.shields.io/endpoint?url=https://giellalt.github.io/lang-xxx/badgedata/prefix-datatype.json)

Replace lang-xxx with the appropriate language code.