documentation/extensions/odoo_theme
Olivier Dony f4d032ecbc
[FIX] legal: fix some broken links (pdfs, translations)
1) PDF files are generated and stored at the root of the CURRENT_BRANCH
directory. The links to those files are generated at different levels of
the doctree, which makes it impossible to use a relative path.
For example the same "Enterprise Agreement" doc in EN is published on:
 - /16.0/legal/terms/enterprise.html
 - /16.0/fr/legal/terms/enterprise.html

As a workaround, use absolute links for the PDFs. They won't work
locally for now. Can be improved later, as long as we don't break
those links located in various depths of the troctree.

2) The legal constracts aren't translated in all availables languages
(yet), so those links are 404s now. Introduced a conf.py variable
`legal_translations` with the list of languages where translated
contracts are indeed available, and falling back to the EN version
otherwise. Some languages don't have *all* the contracts translated, so
some 404 may remain temporarily.

Forward-port of f69dba70be
2023-03-23 16:43:12 +01:00
..
layout_templates [FIX] legal: fix some broken links (pdfs, translations) 2023-03-23 16:43:12 +01:00
static [IMP] toctrees: redesign and new card component 2023-01-26 18:51:23 +01:00
__init__.py [CLN] core: upgrade to python 3.6 2022-11-17 11:58:56 +01:00
layout.html [IMP] documentation: legal page design 2022-12-08 12:31:09 +01:00
pygments_override.py [CLN] core: upgrade to python 3.6 2022-11-17 11:58:56 +01:00
search.html [REF][MOV] documentation apocalypse 2021-05-04 15:44:00 +02:00
theme.conf [REF][MOV] documentation apocalypse 2021-05-04 15:44:00 +02:00
translator.py [IMP][CSS] Cleanup admonitions (alerts) 2023-01-05 12:53:10 +01:00