rseng / rse

tools for assessment and categorization of research software
https://rseng.github.io/rse/
Mozilla Public License 2.0
17 stars 2 forks source link

DOC: Add link to rse-web and/or rse-jekyll-web README from tutorials page #71

Closed NickleDave closed 2 years ago

NickleDave commented 2 years ago

as discussed here: https://github.com/rhine3/bioacoustics-software/issues/3#issuecomment-1219894322

A user might want to know how to serve their own site from an rse-generated database

You just need to generate the database, and then copy this repository to grab and update from it. https://github.com/rseng/web Or just copy this entirely :) https://github.com/rseng/rse-jekyll-web/ That repository README has full instructions. I think perhaps we should provide a link to the repository I shared above here: https://rseng.github.io/rse/tutorials/index.html

Guessing you want a link to one of the READMEs, that will serve as a tutorial? And that link should be added as another bullet point on tutorials/index?

vsoch commented 2 years ago

Yes! So here are the changes I think would be useful:

How does that sound?

NickleDave commented 2 years ago

Sounds good although I'm unclear what the "right" way to do things is.

Is a user intended to generate the site with rse export, or should they be using one of the templates you linked to on https://github.com/rhine3/bioacoustics-software/issues/3 ?

If the user should generate the site with rse export, I'm not sure what the right way to add the links is; should the language be something like "you will run rse export that will produce a static site like the following: [link to site]"?

vsoch commented 2 years ago

You literally just need to make your spreadsheet and then clone this template (removing the previous database, etc.) https://github.com/rseng/rse-jekyll-web/. They can run rse export the first time to see how it works, but the automation in that repository is going to do it for them https://github.com/rseng/rse-jekyll-web/blob/5311b3c9702379322e19cc6d70fe9726c5604fc1/.github/workflows/update.yaml#L31-L35 so technically you can just make your Google Sheet, edit the link to it, and push to GitHub and call it a day.

NickleDave commented 2 years ago

Ahhhhhhhhh ok I am finally understanding now.

I should have actually read the rse-jekyll-web README then, shouldn't I?

When you said "copy" I thought you meant literally "cp this code into your feature branch", not "fork this repo because it will do all the work for you".

So you really want the export command docs to say something like "To see an example of a site that is created by automated runs of the export --jekyll-web command, please visit: https://github.com/rseng/web. If you areimporting from a spreadsheet, and you want to automate updating a site built from that spreadsheet, please see the example at https://github.com/rseng/rse-jekyll-web/. As explained in the README, you can fork this repo and change the url to your spreadsheet, which will runexportwith GitHub Actions, avoiding the need for you to run theexport` command manually."

And then use similar language in the tutorial page, "To see how you can simply fork a repo to get automated updating from a Google spreadsheet, please see this README: [link]"

Correct?

vsoch commented 2 years ago

Right, so I think all of that information is in the rse-jekyll-web readme, so to not duplicate we should link to it (with some minimal context). If there are bits missing we can update them there.

vsoch commented 2 years ago

Fixed with https://github.com/rseng/rse/pull/75