-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Update the privacy policy and add documentation on how to do so. (Fixes #789) * Add anchor underlining, and ids for headers on both privacy and terms.
- Loading branch information
1 parent
b09e318
commit e660fb2
Showing
8 changed files
with
161 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
-------------- | ||
Updating Legal | ||
-------------- | ||
|
||
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. | ||
|
||
Requirements | ||
------------ | ||
|
||
* Ensure you have both ``TBA_PRIVACY_POLICY_LOCATION`` and ``TBA_TERMS_OF_USE_LOCATION`` set in your .env or system environment. | ||
* Ensure you have the backend setup as per the backend's readme file. | ||
|
||
Updating Local Legal Markdown | ||
----------------------------- | ||
|
||
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. | ||
|
||
|
||
Downloading And Rendering The Latest Documents | ||
---------------------------------------------- | ||
|
||
Run the following command from the backend folder: | ||
|
||
.. code-block:: shell | ||
run-command main download-legal | ||
This will download / render the markdown files to html and place them in ``appointment/backend/tmp/legal/en/*.html``. | ||
|
||
Updating The Frontend Legal Html Files | ||
-------------------------------------- | ||
|
||
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`. |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,5 +45,8 @@ onMounted(async () => { | |
p:first-of-type { | ||
@apply font-semibold; | ||
} | ||
a { | ||
@apply underline; | ||
} | ||
} | ||
</style> |
Oops, something went wrong.