oceanhackweek / oceanhackweek.github.io

GitHub repo for the OceanHackweek website
https://oceanhackweek.org/
12 stars 38 forks source link

site management #42

Open emiliom opened 4 years ago

emiliom commented 4 years ago

Accumulating some links / resources / comments to help me with the current state of the web site:

See also this old (but still relevant) issue, #14

Ask Filipe for help?!

From BioData-Training-Workshop

From GHW vector tutorial (software carpentry template)

emiliom commented 4 years ago

From exchange with Amanda:

EM: https://github.com/oceanhackweek/oceanhackweek.github.io is obviously the main site, but it looks like https://github.com/oceanhackweek/jekyll-spectral-theme also has elements that need to be modified? There's no CI in place to build the Jekyll static pages, right?

Ditto for the wiki site. I see https://github.com/oceanhackweek/wiki and https://github.com/oceanhackweek/jekyll-hackweek-wiki, though the latter didn't get anything but one trivial update in 2019, so I assume it's not something we used last year?

AT: yes it’s very convoluted. Don had set it up before. You will need to first update the submodule, which is where all the posts/info are oceanhackweek/jekyll-spectral-theme, then commit and push and then commit and push oceanhackweek/oceanhackweek.github.io

It might be easier for me to do the website updates if you want, otherwise we might need to overhaul the whole thing. It’s extremely convoluted.

leewujung commented 4 years ago

I highly recommend an overhaul to the website. It is too difficult to maintain at the moment and not keeping up with jekyll theme updates either.

emiliom commented 4 years ago

Thanks for chiming in @leewujung. Anyone in mind who could do this quickly? @amanda-tan? I was planning to contact Filipe with help to incrementally fix the site and guide us, but unless we get lucky and he has time right now, it's a wild card.

Are the other HackWeek sites that use the same theme (GHW, WHW) also in the same convoluted state??

emiliom commented 4 years ago

Looking at the GHW and WHW repos, I see that -- unlike OHW -- they don't rely on a theme submodule. Looks like what we need is to move from using a submodule to a baked-in theme

emiliom commented 4 years ago

@ocefpaf has volunteered to help us. Thanks!!!

ocefpaf commented 4 years ago

There's no CI in place to build the Jekyll static pages, right?

@emiliom that is correct. GH builds jekyll site "for free."

Looking at the GHW and WHW repos, I see that -- unlike OHW -- they don't rely on a theme submodule. Looks like what we need is to move from using a submodule to a baked-in theme

I agree. The question is:

emiliom commented 4 years ago

@emiliom that is correct. GH builds jekyll site "for free."

Thanks for confirming. I realized this later. But I was also expecting to see a gh-pages branch; I forgot a gh-pages branch is no longer required.

The question is: do you want to start fresh based on GHW and WHW or you want to pull the submodules, update, and "bake" the theme in the site?

What do you recommend? Priorities that come to mind are ease of transition, maintainability, and minimizing potential problems down the road. Your PR #44 would bake the theme in, which seems fine to me even if we change course later.

emiliom commented 4 years ago

Alright, we're in business! I made a very small change (just to the config file), to update the year and date of the event, and the site updated as expected.

Thanks again, @ocefpaf!!! It looks like we're good to go for now, for updating content in a reasonably efficient way. But if you have any suggestions for further cleanups or overhauls that would make things better, I'm all ears! Or just submit a PR :smiley:

I'm leaving this issue open for now, to add documentation about updating the content, and in case new issues pop up.

emiliom commented 4 years ago

Jekyll Spectral theme, http://jekyllthemes.org/themes/spectral/

Location of main content documents

There might be more; these are the ones I'm certain about.

Prior OHW content - 2018

emiliom commented 4 years ago

Testing locally with Jekyll

Instructions from @ocefpaf:

One can install jekyll locally with:

conda create --name JEKYLL rb-bundler compilers
conda activate JEKYLL
bundle install

and then type:

bundle exec jekyll serve

to build and serve the site at http://127.0.0.1:4000/.

emiliom commented 4 years ago

I've created a document with instruction for editing the content of the web site (_InstructionSiteUpdates.md). It's largely taken from my last two comments on this issue, with small tweaks for readability.

emiliom commented 4 years ago

@ocefpaf is there an easy way to have a dev version of the repo that gets auto-rendered just like the master branch? By easy I mean something like a dedicated branch. That'd be very convenient for proposing a change and have others review it w/o asking everyone to clone it and run jekyll.

ocefpaf commented 4 years ago

@ocefpaf is there an easy way to have a dev version of the repo that gets auto-rendered just like the master branch? By easy I mean something like a dedicated branch. That'd be very convenient for proposing a change and have others review it w/o asking everyone to clone it and run jekyll.

One of those GH actions was supposed to do exactly that. If I cannot make it work I'll create a "dev" version of the page that we can publish.

emiliom commented 4 years ago

I thought I remembered you referring to that. But yes, I know GH actions are not an option right now. Thanks.

ocefpaf commented 4 years ago

I thought I remembered you referring to that. But yes, I know GH actions are not an option right now. Thanks.

The alternative is as laborious as trying to fix the GH action, so I'm investing the my time on the latter first. If I failed I'll get back to the former.

emiliom commented 4 years ago

The alternative is as laborious as trying to fix the GH action, so I'm investing the my time on the latter first. If I failed I'll get back to the former.

Ah. Feel free to tell me if either option is too much work. I can think of a limited, poor man's option, at least for me: pushing my locally built jekyll files to a good-old web site for others to view. It's very easy, but only works for me showing my proposed changes to others.

emiliom commented 4 years ago

@leewujung and @amanda-tan : Can we delete all old branches, to clean things up? The only exception being ohw19archive, which I created in order to preserve the ohw19 web site content before we updated the site to 2020.

I'm assuming there is nothing of value in those old branches, but wanted to check with you before proceeding. The most recent update in the old branches was 7 months ago.

leewujung commented 4 years ago

Sounds good to me 🙂

emiliom commented 4 years ago

Thanks @leewujung. Done.