OBOFoundry.github.io
OBOFoundry.github.io copied to clipboard
Create shield.io badges for ontologies with non-standard licenses
Hello! Question for you. I've made--I think--the necessary updates to make this happen, however I'm pretty sure I need to run the methods in utils/extract-metadata.py to update the site in general, is this true? I'm using Windows, so using the Makefile isn't super straightforward, any advice for generating the rest of the needed changes?
For reference, I've added the following lines to util/extract-metadata.py#decorate_metadata method:
elif lurl.find("hpo.jax.org/app/license"):
logo = "https://hpo.jax.org/app/license"
elif lurl.find("apache.org/licenses/LICENSE-2.0"):
logo = "https://opensource.org/licenses/Apache-2.0"
elif lurl.find("opensource.org/licenses/Artistic-2.0"):
logo = "https://opensource.org/licenses/Artistic-2.0"
elif lurl.find("gnu.org/licenses/gpl-3.0.en.html"):
@erik-whiting if you make a PR I can answer the question. The extract metadata script is run on any change to one of the ontology files by GitHub actions but it’s also possible to run locally with just ‘make’
Hey @cthoyt, here's the PR: https://github.com/OBOFoundry/OBOFoundry.github.io/pull/2062 let me know if it works the way I expect. Thanks!