-
-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy path.readthedocs.yml
More file actions
20 lines (17 loc) · 689 Bytes
/
Copy path.readthedocs.yml
File metadata and controls
20 lines (17 loc) · 689 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
# Project page: https://readthedocs.org/projects/python-docs-theme-previews/
version: 2
build:
os: ubuntu-22.04
tools:
python: "3"
commands:
- git clone --depth=1 https://github.com/python/cpython
- git clone --depth=1 https://github.com/python/python-docs-pl cpython/Doc/locales/pl/LC_MESSAGES
# Build English preview.
- make html CPYTHON_PATH=cpython
- mv cpython/Doc/build _readthedocs
# Build Polish translation preview.
- make html CPYTHON_PATH=cpython SPHINXOPTS="-D language=pl" || true
- mv cpython/Doc/build _readthedocs/pl