diff options
author | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2018-01-13 01:25:51 +0200 |
---|---|---|
committer | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2018-01-13 02:44:40 +0200 |
commit | 1f6b044242edc7af006353ce7e8b396f9bf9199d (patch) | |
tree | a96317f3ca4054d9feb3eccb17056eec3d3cf469 /docs/conf.py | |
parent | 415731830c1aec6bd9b7057c140586cd10d8bbd6 (diff) | |
download | cherrypy-git-1f6b044242edc7af006353ce7e8b396f9bf9199d.tar.gz |
Use prj name and supported Py in docs via substs
Diffstat (limited to 'docs/conf.py')
-rw-r--r-- | docs/conf.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/conf.py b/docs/conf.py index 08c01e19..98b4e22a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -54,6 +54,12 @@ prj_py_min_supported, prj_py_max_supported = map( lambda v: '.'.join(v), prj_py_ver_range ) +rst_epilog = f""" +.. |project| replace:: CherryPy +.. |min_py_supported| replace:: {prj_py_min_supported} +.. |max_py_supported| replace:: {prj_py_max_supported} +""" + # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. |