pinnwand icon indicating copy to clipboard operation
pinnwand copied to clipboard

Version numbers on documentation are wrong

Open supakeen opened this issue 5 years ago • 1 comments

The version number is not correctly determined by sphinx in a build, see https://pinnwand.readthedocs.io/en/v1.2.1/

supakeen avatar Aug 06 '20 18:08 supakeen

[For a record of what i suggested on irc]

You can parse pyproject.toml in conf.py by including a requirements file next to conf.py with toml, import toml in conf.py, and just read the value. ...Or play games with regex, which is always fun. The takeaway though is that conf.py is python, read the docs runs it, and read the docs supports building in a virtualenv.

tritium21 avatar Aug 29 '20 10:08 tritium21