OBOFoundry / OBOFoundry.github.io

Metadata and website for the Open Bio Ontologies Foundry Ontology Registry
http://obofoundry.org
Other
165 stars 204 forks source link

Create shield.io badges for ontologies with non-standard licenses #2051

Open matentzn opened 2 years ago

matentzn commented 2 years ago

Just for optical reasons. Instead of:

image

We do

License License License: Artistic-2.0 License: GPL v3

erik-whiting commented 2 years ago

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"):
cthoyt commented 2 years ago

@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’

erik-whiting commented 2 years ago

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!