26 February 2025, 01:43 (GMT)
25 February 2025, 22:32 (GMT)
Default env vars in Read the Docs
Read the Docs (RTD) defines some default environmental variables. These can be grabbed when building a static site.
To get the version, add this to the conf.py
of a Sphinx project:
=
=
This can then be injected into a HTML template:
Docs for release: {{ version }}.