Skip to content

Commit 938091b

Browse files
committed
Add Github Sponsors button
1 parent 4bda510 commit 938091b

22 files changed

+59
-5
lines changed

docs/_static/custom.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.no-border {
2+
border: 0 !important;
3+
box-shadow: none !important;
4+
-webkit-box-shadow: none !important;
5+
}
6+
.no-border td {
7+
border: 0px !important;
8+
padding: 0px 10px 0px 0px !important;
9+
}

docs/_static/sponsor.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<iframe src="https://github.com/sponsors/rmk135/button" title="Sponsor Dependency Injector" height="32" width="114" style="border: 0; border-radius: 6px;"></iframe>

docs/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@
147147
# relative to this directory. They are copied after the builtin static files,
148148
# so a file named "default.css" will overwrite the builtin "default.css".
149149
html_static_path = ["_static"]
150+
html_css_files = [
151+
"custom.css",
152+
]
150153

151154
# Add any extra paths that contain custom files (such as robots.txt or
152155
# .htaccess) here, relative to this directory. These files are copied
@@ -306,4 +309,5 @@
306309
"description": "Dependency injection framework for Python by Roman Mogylatov",
307310
"code_font_size": "10pt",
308311
"analytics_id": "UA-67012059-1",
312+
"donate_url": "https://github.com/sponsors/rmk135",
309313
}

docs/examples/aiohttp.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,6 @@ Sources
7878

7979
Explore the sources on the `Github <https://github.com/ets-labs/python-dependency-injector/tree/master/examples/miniapps/aiohttp>`_.
8080

81+
.. include:: ../sponsor.rst
82+
8183
.. disqus::

docs/examples/application-multiple-containers.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,6 @@ Run the application
8484

8585
You can find the source code and instructions for running on the `Github <https://github.com/ets-labs/python-dependency-injector/tree/master/examples/miniapps/application-multiple-containers>`_.
8686

87+
.. include:: ../sponsor.rst
88+
8789
.. disqus::

docs/examples/application-single-container.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,6 @@ Run the application
9090

9191
You can find the source code and instructions for running on the `Github <https://github.com/ets-labs/python-dependency-injector/tree/master/examples/miniapps/application-single-container>`_.
9292

93+
.. include:: ../sponsor.rst
94+
9395
.. disqus::

docs/examples/boto3.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@ Listing of ``boto3_session_example.py``:
1717
.. literalinclude:: ../../examples/miniapps/boto3-session/boto3_session_example.py
1818
:language: python
1919

20+
.. include:: ../sponsor.rst
21+
2022
.. disqus::

docs/examples/decoupled-packages.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,6 @@ Run the application
129129

130130
You can find the source code and instructions for running on the `Github <https://github.com/ets-labs/python-dependency-injector/tree/master/examples/miniapps/decoupled-packages>`_.
131131

132+
.. include:: ../sponsor.rst
133+
132134
.. disqus::

docs/examples/django.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,6 @@ Sources
9494

9595
Explore the sources on the `Github <https://github.com/ets-labs/python-dependency-injector/tree/master/examples/miniapps/django>`_.
9696

97+
.. include:: ../sponsor.rst
98+
9799
.. disqus::

docs/examples/fastapi-redis.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,6 @@ See also:
9595
- Resource provider :ref:`resource-async-initializers`
9696
- Wiring :ref:`async-injections-wiring`
9797

98+
.. include:: ../sponsor.rst
99+
98100
.. disqus::

0 commit comments

Comments
 (0)