Skip to content

Automatically regenerate derived files #1570

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jamesaoverton opened this issue Aug 16, 2021 · 5 comments
Closed

Automatically regenerate derived files #1570

jamesaoverton opened this issue Aug 16, 2021 · 5 comments
Labels
attn: Technical WG Issues pertinent to technical activities, such as maintenance of website, PURLs, and tools pipeline Issues related to development or revision of global Foundry pipelines

Comments

@jamesaoverton
Copy link
Member

jamesaoverton commented Aug 16, 2021

The README explains that various merged artifacts must be periodically rebuilt and merged:

https://github.com/OBOFoundry/OBOFoundry.github.io#generation-of-downstream-artefacts

[Edit: You don't actually need Jekyll to regenerate the files.] Although @matentzn has had trouble getting the right Jekyll/Ruby version, I've found this process to be reliable: I check the results but never find major problems. If getting the right dependencies is a problem, we could use a Dockerfile #557.

As discussed in #1568, it would be nice to (at least try to) do this with GtHub Actions. Maybe after merging to master, or just when ontology/* has changed?

@cthoyt Do you want to take a crack at this?

@cthoyt
Copy link
Collaborator

cthoyt commented Aug 16, 2021

I was actually just thinking about this and made a fork to see if I could get github to auto-generate this with GitHub Pages (https://cthoyt.com/OBOFoundry.github.io/) I think there are a lot of legacy configurations for old versions of jekyll that aren't compatible with the new kind. I think it would be quite nice for github to do most of the work for us, so I might take a crack at trying that first rather than reverse engineering the old stack

This wouldn't completely remove the need for one more kind of operation for updating the underlying data. I'll give it some thought

@jamesaoverton
Copy link
Member Author

Some clarifications:

To regenerate the files you need Make, Python 3.6+, and riot which is from Apache Jena. Jena 3.7.0 works for me.

While you need Jekyll to run/test the site locally, you don't need it to regenerate the files. Jekyll 4.2.0 has been working for me. I forget exactly what problems Nico was having.

@nlharris nlharris added attn: Technical WG Issues pertinent to technical activities, such as maintenance of website, PURLs, and tools pipeline Issues related to development or revision of global Foundry pipelines labels Aug 16, 2021
@matentzn
Copy link
Contributor

My problem was that I didnt install the right ruby version; I had to install:

ruby2.6.6
jekyll-4.20

to get it to run!

@cthoyt
Copy link
Collaborator

cthoyt commented Aug 17, 2021

yup I also had issues with ruby 2.6.0

@cthoyt cthoyt mentioned this issue Aug 21, 2021
@matentzn
Copy link
Contributor

This has been solved for a while!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
attn: Technical WG Issues pertinent to technical activities, such as maintenance of website, PURLs, and tools pipeline Issues related to development or revision of global Foundry pipelines
Projects
None yet
Development

No branches or pull requests

4 participants