From 57ac6ab6994dc609a3514f49d77dac228328d308 Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Mon, 20 Jun 2016 08:04:33 -0500 Subject: [PATCH] Add |Flake8| substitution to the epilog The rst_epilog config value in Sphinx allows you to maintain a global list of replaces or includes that are appended to the text of each document in your documentation. This allows us to use |Flake8| everywhere without redefining the replace in every document. --- docs/source/conf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/source/conf.py b/docs/source/conf.py index a44bd97..04b2ea8 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -67,6 +67,10 @@ version = flake8.__version__ # The full version, including alpha/beta/rc tags. release = flake8.__version__ +rst_epilog = """ +.. |Flake8| replace:: :program:`Flake8` +""" + # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. #