Legal documents are not hand-built but transformed from markdown to html via a backend command. Originally this was to automatically grab the latest privacy policy and terms of service documents from Mozilla's legal repository.
- Ensure you have both
TBA_PRIVACY_POLICY_LOCATION
andTBA_TERMS_OF_USE_LOCATION
set in your .env or system environment. - Ensure you have the backend setup as per the backend's readme file.
If you're tasked with updating a legal document that's not on a remote server you'll need to download the Google Document as a markdown file and place it in appointment/legal. If the file is not already hooked up with one of the two env variables above please do so.
Run the following command from the backend folder:
run-command main download-legal
This will download / render the markdown files to html and place them in appointment/backend/tmp/legal/en/*.html
.
Once you've downloaded and rendered the markdown files to html you can copy the files directly to the frontend's legal assest folder located in: appointment/frontend/src/assets/legal/en.