Use build.os
and build.tools
¶
Example using build.os
and build.tools
in Read the Docs config file.
Python 3.5.4
conda 4.10.3
v16.9.1
cargo 1.55.0 (32da73ab1 2021-08-23)
go version go1.17.1 linux/amd64
>>> import subprocess
>>> subprocess.run('python --version'.split())
CompletedProcess(args=['python', '--version'], returncode=0)
>>> subprocess.run('conda --version'.split())
CompletedProcess(args=['conda', '--version'], returncode=0)
>>> subprocess.run('node --version'.split())
CompletedProcess(args=['node', '--version'], returncode=0)
>>> subprocess.run('cargo --version'.split())
CompletedProcess(args=['cargo', '--version'], returncode=0)
>>> subprocess.run('go version'.split())
CompletedProcess(args=['go', 'version'], returncode=0)
Read the Docs configuration file used to build this docs (see full file),
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | version: 2
build:
os: "ubuntu-20.04"
tools:
python: "mambaforge-4.10"
nodejs: "16"
rust: "1.55"
golang: "1.17"
sphinx:
configuration: docs/conf.py
conda:
environment: environment.yaml
python:
install:
- requirements: requirements.txt
|
Sphinx configuration file used to build this docs (see full file),
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # -*- coding: utf-8 -*-
# Default settings
project = 'Test Builds'
extensions = [
'sphinx_autorun',
]
latex_engine = 'xelatex' # allow us to build Unicode chars
# Include all your settings here
html_theme = 'sphinx_rtd_theme'
import os
os.system('ln -s ../.readthedocs.yaml .')
|
>>> # Build at
>>> import datetime
>>> datetime.datetime.utcnow() # UTC
datetime.datetime(2022, 3, 10, 16, 51, 44, 987445)