cState v5.1 - JSON API bugfix & SVG shields for individual systems
Today we're celebrating Hacktoberfest with a critical bugfix to the JSON API so it works properly when checking for a singular component status (unneeded ,
removed) and expanding 'shields' - SVG badges - to show status for ANY component as per a user suggestion - #208.
You will need to change the config.yml file for this feature to be enabled. (If you use Netlify CMS, just update your site configuration and the SVG links for specific components will start working after the next deploy.)
This is what your outputs
should look like:
outputs:
page:
- html
- json
section:
- html
- json
- rss
home:
- html
- json
- rss
- svg
term:
- html
- json
- rss
- svg
Notice that svg
is now added to the bottom under term
as well as home
.
Once you've done that, go to yourexamplesite.com/affected/api/index.svg
(or basically just click open the status page, click on one component (in this case it's API) and then add /index.svg
to the end of the link.
cState is starred by 1426 people.