OBOFoundry.github.io icon indicating copy to clipboard operation
OBOFoundry.github.io copied to clipboard

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

Open matentzn opened this issue 3 years ago • 3 comments
trafficstars

Just for optical reasons. Instead of:

image

We do

License License License: Artistic-2.0 License: GPL v3

matentzn avatar Aug 26 '22 06:08 matentzn

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 avatar Aug 28 '22 04:08 erik-whiting

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

cthoyt avatar Aug 28 '22 10:08 cthoyt

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!

erik-whiting avatar Aug 28 '22 14:08 erik-whiting