diff --git a/HISTORY.md b/HISTORY.md index 9ceaf216..8a269568 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -10,6 +10,7 @@ ([#452](https://github.com/python-attrs/cattrs/pull/452)) - Imports are now sorted using Ruff. - Tests are run with the pytest-xdist plugin by default. +- The docs now use the Inter font. ## 23.2.2 (2023-11-21) diff --git a/docs/_static/custom.css b/docs/_static/custom.css index 26ec87e4..f07517a1 100644 --- a/docs/_static/custom.css +++ b/docs/_static/custom.css @@ -1,45 +1,11 @@ -/* roboto-regular - latin-ext_latin */ -@font-face { - font-family: "Roboto"; - font-style: normal; - font-weight: 400; - src: local(""), - url("./fonts/roboto-v30-latin-ext_latin-regular.woff2") format("woff2"), - /* Chrome 26+, Opera 23+, Firefox 39+ */ - url("./fonts/roboto-v30-latin-ext_latin-regular.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ -} +@import url('https://rsms.me/inter/inter.css'); -/* roboto-italic - latin-ext_latin */ -@font-face { - font-family: "Roboto"; - font-style: italic; - font-weight: 400; - src: local(""), - url("./fonts/roboto-v30-latin-ext_latin-italic.woff2") format("woff2"), - /* Chrome 26+, Opera 23+, Firefox 39+ */ - url("./fonts/roboto-v30-latin-ext_latin-italic.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ +:root { + font-feature-settings: 'liga' 1, 'calt' 1; /* fix for Chrome */ } -/* roboto-700 - latin-ext_latin */ -@font-face { - font-family: "Roboto"; - font-style: normal; - font-weight: 700; - src: local(""), - url("./fonts/roboto-v30-latin-ext_latin-700.woff2") format("woff2"), - /* Chrome 26+, Opera 23+, Firefox 39+ */ - url("./fonts/roboto-v30-latin-ext_latin-700.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ -} - -/* roboto-700italic - latin-ext_latin */ -@font-face { - font-family: "Roboto"; - font-style: italic; - font-weight: 700; - src: local(""), - url("./fonts/roboto-v30-latin-ext_latin-700italic.woff2") format("woff2"), - /* Chrome 26+, Opera 23+, Firefox 39+ */ - url("./fonts/roboto-v30-latin-ext_latin-700italic.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ +@supports (font-variation-settings: normal) { + :root { font-family: InterVariable, sans-serif; } } /* ubuntu-mono-regular - latin */ diff --git a/docs/_static/fonts/roboto-v30-latin-ext_latin-700.woff b/docs/_static/fonts/roboto-v30-latin-ext_latin-700.woff deleted file mode 100644 index 06671c7e..00000000 Binary files a/docs/_static/fonts/roboto-v30-latin-ext_latin-700.woff and /dev/null differ diff --git a/docs/_static/fonts/roboto-v30-latin-ext_latin-700.woff2 b/docs/_static/fonts/roboto-v30-latin-ext_latin-700.woff2 deleted file mode 100644 index e0636f9f..00000000 Binary files a/docs/_static/fonts/roboto-v30-latin-ext_latin-700.woff2 and /dev/null differ diff --git a/docs/_static/fonts/roboto-v30-latin-ext_latin-700italic.woff b/docs/_static/fonts/roboto-v30-latin-ext_latin-700italic.woff deleted file mode 100644 index 1834fb2b..00000000 Binary files a/docs/_static/fonts/roboto-v30-latin-ext_latin-700italic.woff and /dev/null differ diff --git a/docs/_static/fonts/roboto-v30-latin-ext_latin-700italic.woff2 b/docs/_static/fonts/roboto-v30-latin-ext_latin-700italic.woff2 deleted file mode 100644 index 2d3f5adb..00000000 Binary files a/docs/_static/fonts/roboto-v30-latin-ext_latin-700italic.woff2 and /dev/null differ diff --git a/docs/_static/fonts/roboto-v30-latin-ext_latin-italic.woff b/docs/_static/fonts/roboto-v30-latin-ext_latin-italic.woff deleted file mode 100644 index 5d10ffde..00000000 Binary files a/docs/_static/fonts/roboto-v30-latin-ext_latin-italic.woff and /dev/null differ diff --git a/docs/_static/fonts/roboto-v30-latin-ext_latin-italic.woff2 b/docs/_static/fonts/roboto-v30-latin-ext_latin-italic.woff2 deleted file mode 100644 index ed432140..00000000 Binary files a/docs/_static/fonts/roboto-v30-latin-ext_latin-italic.woff2 and /dev/null differ diff --git a/docs/_static/fonts/roboto-v30-latin-ext_latin-regular.woff b/docs/_static/fonts/roboto-v30-latin-ext_latin-regular.woff deleted file mode 100644 index 1aa8c0c2..00000000 Binary files a/docs/_static/fonts/roboto-v30-latin-ext_latin-regular.woff and /dev/null differ diff --git a/docs/_static/fonts/roboto-v30-latin-ext_latin-regular.woff2 b/docs/_static/fonts/roboto-v30-latin-ext_latin-regular.woff2 deleted file mode 100644 index b9f544c2..00000000 Binary files a/docs/_static/fonts/roboto-v30-latin-ext_latin-regular.woff2 and /dev/null differ diff --git a/docs/conf.py b/docs/conf.py index 884dcbb7..e1130b3b 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -121,7 +121,7 @@ html_theme = "furo" html_theme_options = { "light_css_variables": { - "font-stack": "Roboto, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji", + "font-stack": "Inter,sans-serif", "font-stack--monospace": "'Ubuntu Mono', monospace", "code-font-size": "90%", "color-highlight-on-target": "transparent",