Skip to content

Commit 56c45db

Browse files
authored
docs: add sponsorship banner (#2611)
1 parent f2192cc commit 56c45db

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

docs/overrides/main.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{% extends "base.html" %}
2+
3+
{% block announce %}
4+
<style>
5+
div[data-md-component="announce"] {
6+
background-color: #f0f8ff; /* Light blue */
7+
color: #333;
8+
}
9+
div[data-md-component="announce"] a {
10+
color: #0366d6;
11+
}
12+
</style>
13+
If you're using uvicorn in production, please consider <a href="/sponsorship">sponsoring the project</a> to help with maintenance and development. ✨
14+
{% endblock %}

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ theme:
3333
- navigation.tracking
3434
- navigation.footer # https://squidfunk.github.io/mkdocs-material/upgrade/?h=content+copy#navigationfooter
3535
- toc.follow # https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#anchor-following
36+
- announce.dismiss # https://squidfunk.github.io/mkdocs-material/setup/setting-up-the-header/#mark-as-read
3637

3738
repo_name: encode/uvicorn
3839
repo_url: https://github.com/encode/uvicorn

0 commit comments

Comments
 (0)