desktop.gov.au
desktop.gov.au copied to clipboard
Broken links for assets/files
The docx and pdf links on the prod site for the files generated by pandoc are broken.
evidence: https://desktop.gov.au/assets/files/security-risk-management-plan.docx
apparent issue - The prod site is pointing to the assets/files/{filename}.docx
or assets/files/{filename}.pdf
but there's nothing there in the main or develop branches.
The pandoc util script appears functional, but likely hasn't been executed for the most recent release. https://github.com/govau/desktop.gov.au/blob/develop/_util/export-documents.sh
I was able to generate the docs locally using the following powershell script.
Get-ChildItem .\blueprint\security | ForEach-Object {pandoc --lua-filter=_util/assets-path.lua .\blueprint\security\$($_.Name) -o assets/files/$($_.Name).docx}
I could raise a new commit with the generated documents, but they should probably be generated by the proper pandoc container.
possible solution
Execute the util script in the proper context and open a pull request to merge the new files
This script is meant to be run within the pandoc/latex Docker container under the BusyBox Ash shell