summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2021-07-18 15:02:56 -0400
committerJason R. Coombs <jaraco@jaraco.com>2021-07-18 15:02:56 -0400
commitaa5ef507f3bf78092abfff7c6a2cf55a9b2fb2dc (patch)
tree964b4ebcfbcfbe74124c54e78eb97e621574d135 /docs
parent05e096d76f3b63828f1d063326225534f332fb10 (diff)
parent918a415b41225f442d6e9b319ecebff19b52a1a5 (diff)
downloadpython-setuptools-git-aa5ef507f3bf78092abfff7c6a2cf55a9b2fb2dc.tar.gz
Merge https://github.com/jaraco/tidelift
Diffstat (limited to 'docs')
-rw-r--r--docs/_templates/tidelift-sidebar.html6
-rw-r--r--docs/conf.py7
-rw-r--r--docs/index.rst2
3 files changed, 4 insertions, 11 deletions
diff --git a/docs/_templates/tidelift-sidebar.html b/docs/_templates/tidelift-sidebar.html
deleted file mode 100644
index ce48f46b..00000000
--- a/docs/_templates/tidelift-sidebar.html
+++ /dev/null
@@ -1,6 +0,0 @@
-<h3 class="donation">For Enterprise</h3>
-
-<p>
-Professionally-supported {{ project }} is available with the
-<a href="https://tidelift.com/subscription/pkg/pypi-{{ project }}?utm_source=pypi-{{ project }}&utm_medium=referral">Tidelift Subscription</a>.
-</p>
diff --git a/docs/conf.py b/docs/conf.py
index 4548cf27..77d01f19 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -92,11 +92,6 @@ extensions += ['sphinx.ext.extlinks', 'sphinx.ext.intersphinx']
# #diff-85987f48f1258d9ee486e3191495582dR82
default_role = 'any'
-# Custom sidebar templates, maps document names to template names.
-html_theme = 'alabaster'
-templates_path = ['_templates']
-html_sidebars = {'index': ['tidelift-sidebar.html']}
-
# Add support for inline tabs
extensions += ['sphinx_inline_tabs']
@@ -150,3 +145,5 @@ extensions += ['sphinxcontrib.towncrier']
towncrier_draft_working_directory = '..'
# Avoid an empty section for unpublished changes.
towncrier_draft_include_empty = False
+
+extensions += ['jaraco.tidelift']
diff --git a/docs/index.rst b/docs/index.rst
index b9a79647..b787d4e7 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -18,3 +18,5 @@ Documentation content:
Development guide <development/index>
Backward compatibility & deprecated practice <deprecated/index>
Changelog <history>
+
+.. tidelift-referral-banner::