Skip to content

Commit

Permalink
docs: nicer fixed font
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Oct 21, 2023
1 parent d9a6479 commit 676e17a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
9 changes: 9 additions & 0 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@font-face {
font-family: "BerkeleyMono";
src: local("Berkeley Mono"),
url("https://assets.hynek.me/bm/BerkeleyMono-Regular.woff2") format("woff2"),
url("https://assets.hynek.me/bm/BerkeleyMono-Italic.woff2") format("woff2"),
url("https://assets.hynek.me/bm/BerkeleyMono-BoldItalic.woff2") format("woff2"),
url("https://assets.hynek.me/bm/BerkeleyMono-Bold.woff2") format("woff2");
font-display: swap;
}
14 changes: 11 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,17 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = "furo"
# None of the options work, so we disable the button completely.
html_theme_options = {"top_of_page_button": None}
html_static_path = []
html_theme_options = {
"light_css_variables": {
"font-stack--monospace": "BerkeleyMono, MonoLisa, ui-monospace, "
"SFMono-Regular, Menlo, Consolas, Liberation Mono, monospace",
},
# None of the options work, so we disable the button completely.
"top_of_page_button": None,
}

html_static_path = ["_static"]
html_css_files = ["custom.css"]

htmlhelp_basename = "staminadoc"

Expand Down

0 comments on commit 676e17a

Please sign in to comment.