Skip to content

Commit 759549d

Browse files
committed
Add tidelift_url customization option
Allows adding a Tidelift section to the sidebar by setting the `tidelift_url`theme option. **Screenshot** ![screenshot](https://user-images.githubusercontent.com/2379650/45132398-cf6efe00-b15e-11e8-887b-6bf8e41e2f87.png)
1 parent 5f24967 commit 759549d

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

alabaster/donate.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,11 @@ <h3>Donate</h3>
77
src="//gttp.co/v1.js"></script>
88
</p>
99
{% endif %}
10+
11+
{% if theme_tidelift_url %}
12+
<h3>Professional support</h3>
13+
<p>
14+
Professionally-supported {{ project }} is available with the
15+
<a href="{{ theme_tidelift_url }}">Tidelift Subscription</a>.
16+
</p>
17+
{% endif %}

alabaster/theme.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ travis_button = false
2020
codecov_button = false
2121
gratipay_user =
2222
gittip_user =
23+
tidelift_url =
2324
analytics_id =
2425
touch_icon =
2526
canonical_url =

docs/customization.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ Variables and feature toggles
107107
string - used to display a `Travis-CI <https://travis-ci.org>`_ build status
108108
button in the sidebar. If ``true``, uses your ``github_(user|repo)``
109109
settings.
110+
* ``tidelift_url``: Set your `Tidelift <https://tidelift.com/>`_ project
111+
URL if you want a "Professional support" section in your sidebar.
110112
* ``codecov_button``: ``true``, ``false`` or a Github-style ``"account/repo"``
111113
string - used to display a `Codecov <https://codecov.io>`_ build status
112114
button in the sidebar. If ``true``, uses your ``github_(user|repo)``

0 commit comments

Comments
 (0)