Skip to content

Commit d96887e

Browse files
authored
Add Pydantic Logfire banner to the docs (#3428)
1 parent 07cb508 commit d96887e

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

‎docs/css/custom.css‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@
55
--md-code-bg-color: #2e3c43;
66
}
77

8+
/* Logfire announcement banner */
9+
.md-banner {
10+
text-align: center;
11+
}
12+
13+
a.md-banner__link {
14+
color: currentcolor;
15+
text-decoration: none;
16+
}
17+
18+
a.md-banner__link:hover,
19+
a.md-banner__link:focus {
20+
color: currentcolor;
21+
text-decoration: underline;
22+
}
23+
824
/* Sidebar sponsors */
925
.md-nav__sponsors {
1026
display: flex;

‎docs/overrides/main.html‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{% extends "base.html" %}
22

3+
{% block announce %}
4+
<a class="md-banner__link" href="https://pydantic.dev/docs/logfire/integrations/web-frameworks/starlette/?utm_source=starlette-docs&utm_medium=banner">
5+
🔥 <strong>Pydantic Logfire</strong> is the recommended way to add observability to your Starlette application.
6+
<strong>Learn how to instrument it!</strong>
7+
</a>
8+
{% endblock %}
9+
310
{% block extrahead %}
411
{{ super() }}
512
<script>

0 commit comments

Comments
 (0)