Use build.os and build.tools

Example using build.os and build.tools in Read the Docs config file.


Python 3.10.4
v16.15.0
cargo 1.55.0 (32da73ab1 2021-08-23)
go version go1.17.10 linux/amd64
>>> import subprocess
>>> subprocess.run('python --version'.split())
CompletedProcess(args=['python', '--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),

 1version: 2
 2
 3build:
 4  os: "ubuntu-20.04"
 5  tools:
 6    python: "3.10"
 7    nodejs: "16"
 8    rust: "1.55"
 9    golang: "1.17"
10
11sphinx:
12  configuration: docs/conf.py
13
14python:
15  install:
16    - requirements: requirements.txt

Sphinx configuration file used to build this docs (see full file),

 1# -*- coding: utf-8 -*-
 2
 3# Default settings
 4project = 'Test Builds'
 5extensions = [
 6    'sphinx_autorun',
 7]
 8
 9latex_engine = 'xelatex'  # allow us to build Unicode chars
10
11
12# Include all your settings here
13html_theme = 'sphinx_rtd_theme'
14
15import os
16os.system('ln -s ../.readthedocs.yaml .')
17
18
19
20

>>> # Build at
>>> import datetime
>>> datetime.datetime.utcnow()  # UTC
datetime.datetime(2022, 6, 7, 16, 16, 36, 334571)