diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css new file mode 100644 index 0000000..ef53cba --- /dev/null +++ b/docs/stylesheets/extra.css @@ -0,0 +1,13 @@ +@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; +} + +:root { + --md-code-font: "BerkeleyMono"; +} diff --git a/mkdocs.yml b/mkdocs.yml index df4fdad..ac3b450 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -37,6 +37,9 @@ theme: icon: material/weather-sunny name: Switch to dark mode +extra_css: + - stylesheets/extra.css + repo_url: https://github.com/hynek/doc2dash repo_name: hynek/doc2dash edit_uri: blob/main/docs