Skip to content

Commit 3710104

Browse files
Build Farsi in RTD
1 parent 9a9dcab commit 3710104

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.readthedocs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ build:
1010
python: "3"
1111

1212
commands:
13+
# TEMPORARY: build the Persian (fa) translation to preview RTL support.
1314
- git clone --depth=1 https://github.com/python/cpython
14-
- make html CPYTHON_PATH=cpython
15+
- git clone --depth=1 https://github.com/python/python-docs-fa cpython/Doc/locales/fa/LC_MESSAGES
16+
- make html CPYTHON_PATH=cpython SPHINXERRORHANDLING= SPHINXOPTS="-D language=fa -D html_theme_options.is_rtl=true"
1517
- mv cpython/Doc/build _readthedocs

0 commit comments

Comments
 (0)