Pinjasaur / bic

Static blog generator, in bash
https://bic.sh/
10 stars 1 forks source link

Dynamic latest release version in docs #11

Closed Pinjasaur closed 1 year ago

Pinjasaur commented 1 year ago

Would be nice to add the latest release version at the top, near the title/logo.

This could also be used to replace the latest Docker tag in the docker pull command. Just a bit of progressive enhancement.

A brief search shows the GitHub API should be able to get this information relatively trivially. Unsure if there's complications due to needing an API token and secrets don't exist on the frontend. https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#get-the-latest-release

Pinjasaur commented 1 year ago

Probably can just use this: https://api.github.com/repos/pinjasaur/bic/releases