Skip to content

Commit 053a4f5

Browse files
lovelydinosaursamclearman
authored andcommitted
Add speakeasy sponsorship (encode#3305)
1 parent d89f576 commit 053a4f5

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

docs/img/speakeasy.png

1.91 MB
Loading

docs/overrides/partials/nav.html

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{% import "partials/nav-item.html" as item with context %}
2+
3+
<!-- Determine class according to configuration -->
4+
{% set class = "md-nav md-nav--primary" %}
5+
{% if "navigation.tabs" in features %}
6+
{% set class = class ~ " md-nav--lifted" %}
7+
{% endif %}
8+
{% if "toc.integrate" in features %}
9+
{% set class = class ~ " md-nav--integrated" %}
10+
{% endif %}
11+
12+
<!-- Main navigation -->
13+
<nav
14+
class="{{ class }}"
15+
aria-label="{{ lang.t('nav.title') }}"
16+
data-md-level="0"
17+
>
18+
19+
<!-- Site title -->
20+
<label class="md-nav__title" for="__drawer">
21+
<a
22+
href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}"
23+
title="{{ config.site_name | e }}"
24+
class="md-nav__button md-logo"
25+
aria-label="{{ config.site_name }}"
26+
data-md-component="logo"
27+
>
28+
{% include "partials/logo.html" %}
29+
</a>
30+
{{ config.site_name }}
31+
</label>
32+
33+
<!-- Repository information -->
34+
{% if config.repo_url %}
35+
<div class="md-nav__source">
36+
{% include "partials/source.html" %}
37+
</div>
38+
{% endif %}
39+
40+
<!-- Navigation list -->
41+
<ul class="md-nav__list" data-md-scrollfix>
42+
{% for nav_item in nav %}
43+
{% set path = "__nav_" ~ loop.index %}
44+
{{ item.render(nav_item, path, 1) }}
45+
{% endfor %}
46+
</ul>
47+
48+
<ul class="md-nav__list" data-md-scrollfix style="padding-top: 15px; padding-left: 10px">
49+
<div>
50+
<a href="https://speakeasy.com"><img src="/img/speakeasy.png" width=150px style=></img></a>
51+
</div>
52+
</ul>
53+
</nav>
54+

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ site_url: https://www.python-httpx.org/
44

55
theme:
66
name: 'material'
7+
custom_dir: 'docs/overrides'
78
palette:
89
- scheme: 'default'
910
media: '(prefers-color-scheme: light)'

0 commit comments

Comments
 (0)