CI to export module catalog to 4cat-site - #622
Open
dale-wahl wants to merge 6 commits into
Open
Conversation
…ed to 4CAT export
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Publishes the 4CAT module catalogue as a static site, generated from 4CAT itself so the public page and the in-app one cannot drift apart. Now live at https://4cat.nl/catalog/.
Three parts:
helper-scripts/export_module_catalogue.py) that writes a self-contained bundle — page, styles, renderer, icons and one JSON file — servable by any static web server. No 4CAT, no API and no database behind it.fourcat-new.css's own imports, so the catalogue tracks the redesign without anyone updating the exporter).release: published, exports from the image that was just pushed, and opens a PR against4cat-sitereplacingpublic/catalog/.The details
manifest.jsonis the bundle entry point, per a contract agreed with4cat-siteand written up indocs/module-catalog-export-contract.md.continue-on-error: a broken export does not block Docker release (it is after it anyway) and does not make a PR on 4cat-siteSide note
Also fixed along the way
mask-imagecarried afor testingoverride is pointing at4cat.digitalmethods.net, so every page fetched its logo from another server (not sure who was testing that).module-iconconvention, so thebrand-*icons render instead of coming out blank. (This this was a half change on redesign branch.)Before merging
CATALOGUE_SITE_APP_IDandCATALOGUE_SITE_APP_PRIVATE_KEYsecrets (already added to 4CAT and tested).docker_new_release.ymlwill conflict when this eventually reaches master, which carries a smaller stub of the same change (to allow the manual Action runs). It can be replaced with this branch's file.