ukwa / ukwa-site

Using static site generation for parts of the our site.
Apache License 2.0
0 stars 4 forks source link

Port targets and collections from UKWA-UI to this project #2

Open anjackson opened 5 years ago

anjackson commented 5 years ago

The proposal is to port all the static content from the UKWA-UI project over to this one, and augment it so Targets can be browsed as well as Collections.

For the Site Generation task:

For the static site generator itself:

Other ideas

anjackson commented 5 years ago

Having battled the original site, it's turned out to be easier to just start over, adding the minor changes we need to a vanilla hugo-bootstrap (v.4) theme. This keeps everything nice and separate and makes it clear exactly what modifications are needed.

anjackson commented 3 years ago

Okay, this is going to be done in stages, so I'm breaking this down into separate tickets.

anjackson commented 3 years ago

The majority off this ticket relates to full porting of Targets and Collections to static site generation. This had been investigated in some detail, but generally found that because there are so very many Targets, the static-site approach becomes rather difficult to work with.

We can revisit this later.

anjackson commented 1 year ago

Looking at this again, because Target pages would be very useful.

The main blocker appears to be dealing with the scale. There are c. 80,000 Targets, so these take a while to generate or to pass through Hugo, so having these in the Docker build breaks the Netlify build. We need Netlify for the CMS workflow, so we can't just do everything like that.

So, for deployment, can we use the Netlify workflow and GitHub to manage the CMS pages, but integrate the targets and collections from W3ACT in some kind of ongoing update workflow.

i.e. ukwa-services just uses the NGINX image pointing at a set of static files. These are generated from some combination of this Git repo/image and targets/collection files. Airflow task used to update the site source files and then initiate the Hugo build.