Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Broken links for assets/files #252

Open
auskronk opened this issue Feb 27, 2023 · 0 comments
Open

Broken links for assets/files #252

auskronk opened this issue Feb 27, 2023 · 0 comments

Comments

@auskronk
Copy link

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

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

No branches or pull requests

1 participant