ioos / bio_mobilization_workshop

Marine data mobilization workshop for Biology and Ecosystem Essential Ocean Variables (Bio-Eco EOV) as a Contribution to the UN Decade on Ocean Science for Sustainable Development
https://ioos.github.io/bio_mobilization_workshop/
Other
5 stars 9 forks source link

Tag 2023 materials, mint doi, attach html pages as assets to release? #78

Closed MathewBiddle closed 1 year ago

MathewBiddle commented 1 year ago

2023 is now complete. We should tag the website materials. I think zenodo will automatically mint a new doi for a new version, but also provide a collection DOI for all versions (link).

Zenodo archives your repository and issues a new DOI each time you create a new GitHub release. Follow the steps at "Managing releases in a repository" to create a new one.

For example,

Also, I wonder if there is a way to add the .html files to the release. Just thinking in case jekyll disappears we wouldn't be able to rebuild the website again. If we drop the .html files in as assets to the release, folks would be able to pull those up in a browser. Just not sure if those will be pulled over to the zenodo DOI package.

MathewBiddle commented 1 year ago

For the later piece, it might be too tricky to do. All the html files will reference local server address http://127.0.0.1:4000 and need to be served via jekyll to link between everything. Having the standalone html files will be less than helpful.

I tried to do it locally by building and serving the website with bundle exec jekyll serve. That created _site/ with all the html for the page. However, when I terminate bundle exec jekyll serve the page no longer resolves. If I pull up the index.html file, it looks like the .css file doesn't read properly either and all the hyperlinks to lesson pages don't resolve to the correct place. image

So, after some sleuthing, I don't think it's worth figuring out how to make the standalone html useful.

But, I did find this if someone really wants to go down that road: https://stackoverflow.com/questions/26778329/running-jekyll-generated-files-without-jekyll-local-server

Additionally, it looks like zenodo does not pull over release artifacts https://github.com/zenodo/zenodo/issues/1235

MathewBiddle commented 1 year ago

Draft release https://github.com/ioos/bio_mobilization_workshop/releases/edit/untagged-60b7a58a12739cf2ddea

MathewBiddle commented 1 year ago

updated https://github.com/ioos/bio_mobilization_workshop/releases/edit/untagged-bc205b0defeb08eb2497

7yl4r commented 1 year ago

I think github automatically creates a .zip archive of all files in the repo at the tagged release commit, so everything needed to create the html using jekyll will be there. The site won't be hosted anywhere, but we will be able to revisit that later if we want to.

MathewBiddle commented 1 year ago

Guess I was wondering what happens when jekyll disappears/breaks? It would be nice to have the html files that any browser could open.

For now, we can leave it as is and think about a path for doing something like this. We can go back to a release and add an asset later, I think. image

MathewBiddle commented 1 year ago

Published new release! https://github.com/ioos/bio_mobilization_workshop/releases/tag/2023

https://doi.org/10.5281/zenodo.7401979 - cite all versions https://doi.org/10.5281/zenodo.7401980 - cite just 2022 https://doi.org/10.5281/zenodo.7896606 - cite just 2023