Open Kremtastic opened 1 year ago
A solution here could be to have a script of some sort in this repo that is initialized by a GitHub Action from fribyte/admin that retrives the latest docs and makes a new commit.
So the worflow would be something like:
Any thoughts? 💭
Sounds like a good idea. It does seem like it should work in theory. Maybe I will look into it at the next dugnad.
The Public Documents section of fribyte.no is not up to date with all the latest files from the admin repository. Within the directory fribyte.no/content/dokumenter lies sub-directories that should ideally mirror repositories from the admin repo. The files cannot be simply copied and pasted over however, as it is required to manually edit them in a specific format for them to be displayed properly on the website.
Here is an example of how a file has been edited:
Admin repo version:
New version (for the website):
Note that only the encapsulated text at the top of the file (like what shown in the example) needs to be changed. The actual content of the file should remain unchanged.