Merge pull request #42577 from tchaikov/wip-rtd

.readthedocs.yml: use python3.8 and native ditaa

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
This commit is contained in:
Kefu Chai 2021-08-02 20:15:04 +08:00 committed by GitHub
commit c50d8ebdef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -6,8 +6,10 @@ version: 2
formats: []
build:
image: latest
apt_packages:
- ditaa
python:
version: 3
version: 3.8
install:
- requirements: admin/doc-requirements.txt
- requirements: admin/doc-read-the-docs.txt

View File

@ -126,6 +126,9 @@ extensions = [
ditaa = shutil.which("ditaa")
if ditaa is not None:
# in case we don't have binfmt_misc enabled or jar is not registered
ditaa_args = ['-jar', ditaa]
ditaa = 'java'
extensions += ['sphinxcontrib.ditaa']
else:
extensions += ['plantweb.directive']