Skip to content

Commit c52d5a3

Browse files
committed
build: clone the localizethedocs locales
1 parent 5a2de32 commit c52d5a3

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

.readthedocs.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ build:
1010
os: ubuntu-24.04
1111
tools:
1212
python: "3.12"
13+
jobs:
14+
post_checkout:
15+
- |
16+
PO_LOCALES=docs/locales
17+
PO_REPOURL=https://github.com/localizethedocs/highlightjs-docs-l10n.git
18+
case "$READTHEDOCS_VERSION" in
19+
latest) PO_BRANCH="po/latest";;
20+
stable) PO_BRANCH="po/stable";;
21+
esac
22+
git clone --branch=$PO_BRANCH $PO_REPOURL $PO_LOCALES
1323
1424
# Build documentation in the docs/ directory with Sphinx
1525
sphinx:

docs/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@
9191
# A list of ignored prefixes for module index sorting.
9292
#modindex_common_prefix = []
9393

94+
# -- Options for Internationalization ------------------------------------------
95+
96+
gettext_compact = False
97+
gettext_additional_targets = ['index','literal-block','raw']
9498

9599
# -- Options for HTML output ---------------------------------------------------
96100

0 commit comments

Comments
 (0)