desktop.gov.au icon indicating copy to clipboard operation
desktop.gov.au copied to clipboard

Broken links for assets/files

Open auskronk opened this issue 2 years ago • 0 comments

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

auskronk avatar Feb 27 '23 04:02 auskronk