Skip to content
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

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

Open
19 tasks
anjackson opened this issue Dec 14, 2018 · 4 comments
Open
19 tasks

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

anjackson opened this issue Dec 14, 2018 · 4 comments
Assignees

Comments

@anjackson
Copy link
Contributor

anjackson commented Dec 14, 2018

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:

  • Ensure Targets correctly inherit their Open Access status.
  • Update sitegen script to drop in Welsh pages (but leave in English) UNLESS a Welsh page already exists.
  • Make the 14-digit Wayback datestamp available in the metadata
  • Use file path references not IDs so .GetPage will work and we can refer to Targets from Collections and vice versa.
  • Create sub-collections as a set of hierarchical folders and add Parent references.
  • Use no-parent as indicator of what to put under /collection/
  • Ensure Targets and Collections appear under their original WCT-era IDs (this needs an automated test and some documentation on how its done)

For the static site generator itself:

Other ideas

  • Consider a PWID page (with explicit URL/Time/Archive/Scope parameters) for citation/resolution/bookmarking.
  • Also produce JSON versions at suitable URLs?
  • Build reports on hidden/blocked/etc. Targets and Collections for review.
  • Also port the Open Data site into this project? Or otherwise theme consistently?
@anjackson
Copy link
Contributor Author

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 anjackson self-assigned this May 2, 2019
@anjackson
Copy link
Contributor Author

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

@anjackson anjackson changed the title Port static content from UKWA-UI to this project Port targets and collections from UKWA-UI to this project Oct 19, 2021
@anjackson
Copy link
Contributor Author

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
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant