diff --git a/docs/content/theme/styles/Roboto/roboto-latin-regular.woff b/docs/content/theme/styles/Roboto/roboto-latin-regular.woff new file mode 100644 index 000000000..69c882540 Binary files /dev/null and b/docs/content/theme/styles/Roboto/roboto-latin-regular.woff differ diff --git a/docs/content/theme/styles/Roboto/roboto-latin-regular.woff2 b/docs/content/theme/styles/Roboto/roboto-latin-regular.woff2 new file mode 100644 index 000000000..1a5370151 Binary files /dev/null and b/docs/content/theme/styles/Roboto/roboto-latin-regular.woff2 differ diff --git a/docs/content/theme/styles/Roboto/roboto-mono-latin-regular.woff b/docs/content/theme/styles/Roboto/roboto-mono-latin-regular.woff new file mode 100644 index 000000000..f319fbfa4 Binary files /dev/null and b/docs/content/theme/styles/Roboto/roboto-mono-latin-regular.woff differ diff --git a/docs/content/theme/styles/Roboto/roboto-mono-latin-regular.woff2 b/docs/content/theme/styles/Roboto/roboto-mono-latin-regular.woff2 new file mode 100644 index 000000000..ed384d22f Binary files /dev/null and b/docs/content/theme/styles/Roboto/roboto-mono-latin-regular.woff2 differ diff --git a/docs/content/theme/styles/hedgedoc-color.css b/docs/content/theme/styles/hedgedoc-custom.css similarity index 94% rename from docs/content/theme/styles/hedgedoc-color.css rename to docs/content/theme/styles/hedgedoc-custom.css index d0a4e8e24..d6400d07a 100644 --- a/docs/content/theme/styles/hedgedoc-color.css +++ b/docs/content/theme/styles/hedgedoc-custom.css @@ -18,3 +18,6 @@ --md-accent-bg-color: hsla(0, 0%, 100%, 1); --md-accent-bg-color--light: hsla(0, 0%, 100%, 0.7); } +.md-grid { + max-width: 1440px; +} diff --git a/docs/content/theme/styles/roboto.css b/docs/content/theme/styles/roboto.css new file mode 100644 index 000000000..b1c663dad --- /dev/null +++ b/docs/content/theme/styles/roboto.css @@ -0,0 +1,28 @@ + +body, input { + font-family: "Roboto",-apple-system,BlinkMacSystemFont,Helvetica,Arial,sans-serif; +} + +code, kbd, pre { + font-family: "Roboto Mono",SFMono-Regular,Consolas,Menlo,monospace; +} + +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: local('Roboto'), + url('./Roboto/roboto-latin-regular.woff2') format('woff2'), + url('./Roboto/roboto-latin-regular.woff') format('woff'), +} + +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: local('Roboto Mono'), + url('./Roboto/roboto-mono-latin-regular.woff2') format('woff2'), + url('./Roboto/roboto-mono-latin-regular.woff') format('woff'), +} diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index d563115c5..16e3c2678 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -4,6 +4,7 @@ repo_url: https://github.com/hedgedoc/hedgedoc site_description: 'HedgeDoc Documentation' site_author: 'HedgeDoc Developers' docs_dir: content +edit_uri: https://github.com/hedgedoc/hedgedoc/edit/master/docs/content/ nav: - Home: index.md - Installation: @@ -56,6 +57,8 @@ theme: - navigation.tabs - navigation.sections - toc.integrate + font: false extra_css: - - theme/styles/hedgedoc-color.css + - theme/styles/hedgedoc-custom.css + - theme/styles/roboto.css