summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2021-07-18 14:48:16 -0400
committerJason R. Coombs <jaraco@jaraco.com>2021-07-18 14:48:16 -0400
commit918a415b41225f442d6e9b319ecebff19b52a1a5 (patch)
tree3c980ff9f92978286ee0831e3c3c1a7867aa7309
parent842eb1423ba76dadbf568f9b0abf04a233711529 (diff)
downloadpytest-runner-918a415b41225f442d6e9b319ecebff19b52a1a5.tar.gz
Implement tidelift banner using a Sphinx directive implemented by jaraco.tidelift.
-rw-r--r--docs/_templates/tidelift-sidebar.html6
-rw-r--r--docs/conf.py6
-rw-r--r--docs/index.rst1
-rw-r--r--setup.cfg4
4 files changed, 6 insertions, 11 deletions
diff --git a/docs/_templates/tidelift-sidebar.html b/docs/_templates/tidelift-sidebar.html
deleted file mode 100644
index ce48f46..0000000
--- 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 dbf962d..bd8564e 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -1,5 +1 @@
-
-# Custom sidebar templates, maps document names to template names.
-html_theme = 'alabaster'
-templates_path = ['_templates']
-html_sidebars = {'index': ['tidelift-sidebar.html']}
+extensions += ['jaraco.tidelift']
diff --git a/docs/index.rst b/docs/index.rst
new file mode 100644
index 0000000..6e321fd
--- /dev/null
+++ b/docs/index.rst
@@ -0,0 +1 @@
+.. tidelift-referral-banner::
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 0000000..798b103
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,4 @@
+[options.extras_require]
+docs =
+ # upstream
+ jaraco.tidelift >= 1.4