summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2020-07-22 22:58:12 +0200
committerStefan Behnel <stefan_ml@behnel.de>2020-07-22 22:58:36 +0200
commit0a2f0a690a7eda40ee43e4926184ce776897d911 (patch)
tree7e42499099d881db1412783634cad96b8d4c1056
parentc7046bcb6c10994b6f703521da6183aca08b8b3b (diff)
downloadcython-0a2f0a690a7eda40ee43e4926184ce776897d911.tar.gz
Add donation banner to documentation.
-rw-r--r--docs/_templates/layout.html10
-rw-r--r--docs/src/donating.rst19
2 files changed, 29 insertions, 0 deletions
diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html
index 311728205..5005cd75c 100644
--- a/docs/_templates/layout.html
+++ b/docs/_templates/layout.html
@@ -1,5 +1,15 @@
{% extends "!layout.html" %}
+{% block relbar1 %}
+{{ super() }}
+{% if pagename != "src/donating" %}
+<div style="width: 100%; height: 3em; vertical-align: middle; text-align: center; font-weight: bold; background-color: lightgray; border: solid red 1px">
+ <p style="font-size: 110%">Like the tool? Help making it better! <a href="{{ pathto("src/donating") }}">Your donation helps!</a></p>
+</div>
+{% endif %}
+{% endblock %}
+
+
{% block footer %}
{{ super() }}
{# ## Removed to avoid tracking our users.
diff --git a/docs/src/donating.rst b/docs/src/donating.rst
new file mode 100644
index 000000000..3a6e86539
--- /dev/null
+++ b/docs/src/donating.rst
@@ -0,0 +1,19 @@
+🌷️ Thank you for your interest in supporting Cython! 🌷️
+======================================================
+
+Managing, maintaining and advancing a project as large as Cython takes
+**a lot of time and dedication**. This is really a full-time job that
+is currently done by **Stefan Behnel**, paid by users just like you.
+
+**Your support can make a difference**
+for improving a great tool that helps you every day!
+
+Please consider signing a subscription for continuous project support via
+
+* `GitHub Sponsors <https://github.com/users/scoder/sponsorship>`_
+* `Tidelift <https://tidelift.com/subscription/pkg/pypi-cython>`_
+* `PayPal <https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=HLS9JEYD4ETB6&source=url>`_
+
+or donating via
+
+* `PayPal <https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=HLS9JEYD4ETB6&source=url>`_