diff --git a/docs/conf.py b/docs/conf.py
index bb1d613584dc69ca3f1c847d543a64129fdadeba..b9b112557214826c7be0ff7fcd1f047449861090 100755
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -139,6 +139,12 @@ pygments_style = 'sphinx'
 # If true, keep warnings as "system message" paragraphs in the built documents.
 #keep_warnings = False
 
+# Global include files. Sphinx docs suggest using rst_epilog in preference
+# of rst_prolog, so we follow. Absolute paths below mean "from the base
+# of the doctree".
+rst_epilog = """
+.. include:: /templates/replace.inc
+"""
 
 # -- Options for HTML output ----------------------------------------------
 
diff --git a/docs/templates/replace.inc b/docs/templates/replace.inc
new file mode 100644
index 0000000000000000000000000000000000000000..6ed79cc7ced4bdbeadbcb22aa3373a13f14a95e1
--- /dev/null
+++ b/docs/templates/replace.inc
@@ -0,0 +1 @@
+.. # This file is intended for global "replace" definitions.