Skip to content

Commit fefce6d

Browse files
committed
Let's stand out
1 parent 448f180 commit fefce6d

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
- id: black
1010

1111
- repo: https://github.com/astral-sh/ruff-pre-commit
12-
rev: v0.1.5
12+
rev: v0.1.6
1313
hooks:
1414
- id: ruff
1515
args: [--fix, --exit-non-zero-on-fix]

docs/_static/custom.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@import url('https://rsms.me/inter/inter.css');
2+
@font-face {
3+
font-family: "BerkeleyMono";
4+
src: local("Berkeley Mono"),
5+
url("https://assets.hynek.me/bm/BerkeleyMono-Regular.woff2") format("woff2"),
6+
url("https://assets.hynek.me/bm/BerkeleyMono-Italic.woff2") format("woff2"),
7+
url("https://assets.hynek.me/bm/BerkeleyMono-BoldItalic.woff2") format("woff2"),
8+
url("https://assets.hynek.me/bm/BerkeleyMono-Bold.woff2") format("woff2");
9+
font-display: swap;
10+
}
11+
12+
:root {
13+
font-feature-settings: 'liga' 1, 'calt' 1; /* fix for Chrome */
14+
}
15+
@supports (font-variation-settings: normal) {
16+
:root { font-family: InterVariable, sans-serif; }
17+
}

docs/conf.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,17 @@
8787
# The theme to use for HTML and HTML Help pages. See the documentation for
8888
# a list of builtin themes.
8989
html_theme = "furo"
90-
html_theme_options = {"top_of_page_button": None}
90+
html_theme_options = {
91+
"top_of_page_button": None,
92+
"light_css_variables": {
93+
"font-stack": "Inter,sans-serif",
94+
"font-stack--monospace": "BerkeleyMono, MonoLisa, ui-monospace, "
95+
"SFMono-Regular, Menlo, Consolas, Liberation Mono, monospace",
96+
},
97+
}
9198
html_logo = "_static/structlog_logo.svg"
9299
html_static_path = ["_static"]
100+
html_css_files = ["custom.css"]
93101

94102
htmlhelp_basename = "structlogdoc"
95103

0 commit comments

Comments
 (0)