Skip to content

Commit 1f6b044

Browse files
committed
Use prj name and supported Py in docs via substs
1 parent 4157318 commit 1f6b044

2 files changed

Lines changed: 14 additions & 8 deletions

File tree

docs/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ def get_supported_pythons(classifiers):
5454
lambda v: '.'.join(v), prj_py_ver_range
5555
)
5656

57+
rst_epilog = f"""
58+
.. |project| replace:: CherryPy
59+
.. |min_py_supported| replace:: {prj_py_min_supported}
60+
.. |max_py_supported| replace:: {prj_py_max_supported}
61+
"""
62+
5763
# If extensions (or modules to document with autodoc) are in another directory,
5864
# add these directories to sys.path here. If the directory is relative to the
5965
# documentation root, use os.path.abspath to make it absolute, like shown here.

docs/install.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Installation
33
------------
44

5-
CherryPy is a pure Python library. This has various consequences:
5+
|project| is a pure Python library. This has various consequences:
66

77
- It can run anywhere Python runs
88
- It does not require a C compiler
@@ -15,9 +15,9 @@ CherryPy is a pure Python library. This has various consequences:
1515
Requirements
1616
############
1717

18-
CherryPy does not have any mandatory requirements. However certain features it comes with
18+
|project| does not have any mandatory requirements. However certain features it comes with
1919
will require you install certain packages. To simplify installing additional
20-
dependencies CherryPy enables you to specify extras in your requirements (e.g.
20+
dependencies |project| enables you to specify extras in your requirements (e.g.
2121
``cherrypy[json,routes_dispatcher,ssl]``):
2222

2323
- doc -- for documentation related stuff
@@ -32,13 +32,13 @@ dependencies CherryPy enables you to specify extras in your requirements (e.g.
3232
Supported python version
3333
########################
3434

35-
CherryPy supports Python 2.7 through to 3.5.
35+
|project| supports Python |min_py_supported| through to |max_py_supported|.
3636

3737

3838
Installing
3939
##########
4040

41-
CherryPy can be easily installed via common Python package managers such as setuptools or pip.
41+
|project| can be easily installed via common Python package managers such as setuptools or pip.
4242

4343
.. code-block:: bash
4444
@@ -49,7 +49,7 @@ CherryPy can be easily installed via common Python package managers such as setu
4949
5050
$ pip install cherrypy
5151
52-
You may also get the latest CherryPy version by grabbing the source code from Github:
52+
You may also get the latest |project| version by grabbing the source code from Github:
5353

5454
.. code-block:: bash
5555
@@ -60,7 +60,7 @@ You may also get the latest CherryPy version by grabbing the source code from Gi
6060
Test your installation
6161
^^^^^^^^^^^^^^^^^^^^^^
6262

63-
CherryPy comes with a set of simple tutorials that can be executed
63+
|project| comes with a set of simple tutorials that can be executed
6464
once you have deployed the package.
6565

6666
.. code-block:: bash
@@ -102,7 +102,7 @@ cherryd
102102
^^^^^^^
103103

104104
Another way to run the application is through the ``cherryd`` script
105-
which is installed along side CherryPy.
105+
which is installed along side |project|.
106106

107107
.. note::
108108

0 commit comments

Comments
 (0)