From 2c7863413bf4a08f988b396a68d6065e184f9069 Mon Sep 17 00:00:00 2001 From: Mickael Stanislas Date: Thu, 4 Jan 2024 16:26:53 +0100 Subject: [PATCH] docs: change theme --- docs/deployment/getting-start.md | 4 +- docs/stylesheets/extra.css | 11 ++--- mkdocs.yml | 69 +++++++++++++++++++------------- 3 files changed, 47 insertions(+), 37 deletions(-) diff --git a/docs/deployment/getting-start.md b/docs/deployment/getting-start.md index 6898e05..105399d 100644 --- a/docs/deployment/getting-start.md +++ b/docs/deployment/getting-start.md @@ -5,8 +5,8 @@ hide: # Deployment -* [Docker](deployment/docker.md) +* [Docker](docker.md) * Docker Compose (coming soon) * Kubernetes (coming soon) * Helm (coming soon) -* [Manual](deployment/manual.md) +* [Manual](manual.md) diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index 73375ce..2116dce 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -1,4 +1,5 @@ -[data-md-color-scheme="frangipaneCorp-dark"] { +/* [data-md-color-scheme="golink"] { */ +:root { --md-primary-bg-color: rgb(203, 166, 247); --md-primary-fg-color: rgb(245, 224, 220); @@ -20,13 +21,9 @@ --md-code-bg-color: rgb(17, 17, 27); --md-code-fg-color: rgb(137, 220, 235); --md-code-hl-punctuation-color: rgb(137, 220, 235); - + /* --md-default-fg-color--lightest: rgb(250, 179, 135); - --md-accent-fg-color: rgb(243, 139, 168); - - - - /* rgb(243, 139, 168) */ + --md-accent-fg-color: rgb(243, 139, 168); */ } .md-header__button.md-logo { diff --git a/mkdocs.yml b/mkdocs.yml index 7a0b2c1..92f92c4 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -2,6 +2,8 @@ site_name: GoLink Documentation theme: name: material + palette: + - scheme: dark features: - content.code.copy - navigation.sections @@ -31,37 +33,48 @@ nav: - "Install": "glctl/install.md" markdown_extensions: - # Python Markdown - - abbr - - admonition - attr_list - - def_list - - footnotes - - md_in_html - - toc: - permalink: true - - # Python Markdown Extensions - - pymdownx.arithmatex: - generic: true - - pymdownx.betterem: - smart_enable: all - - pymdownx.caret + - pymdownx.highlight: + anchor_linenums: true + - admonition - pymdownx.details - - pymdownx.emoji: - emoji_index: !!python/name:material.extensions.emoji.twemoji - emoji_generator: !!python/name:material.extensions.emoji.to_svg - - pymdownx.highlight - - pymdownx.inlinehilite - - pymdownx.keys - - pymdownx.mark - - pymdownx.smartsymbols - pymdownx.superfences - - pymdownx.tabbed: - alternate_style: true - - pymdownx.tasklist: - custom_checkbox: true - - pymdownx.tilde + - pymdownx.emoji: + emoji_index: !!python/name:materialx.emoji.twemoji + emoji_generator: !!python/name:materialx.emoji.to_svg + + + # # Python Markdown + # - abbr + # - admonition + # - attr_list + # - def_list + # - footnotes + # - md_in_html + # - toc: + # permalink: true + + # # Python Markdown Extensions + # - pymdownx.arithmatex: + # generic: true + # - pymdownx.betterem: + # smart_enable: all + # - pymdownx.caret + # - pymdownx.details + # - pymdownx.emoji: + # emoji_index: !!python/name:material.extensions.emoji.twemoji + # emoji_generator: !!python/name:material.extensions.emoji.to_svg + # - pymdownx.highlight + # - pymdownx.inlinehilite + # - pymdownx.keys + # - pymdownx.mark + # - pymdownx.smartsymbols + # - pymdownx.superfences + # - pymdownx.tabbed: + # alternate_style: true + # - pymdownx.tasklist: + # custom_checkbox: true + # - pymdownx.tilde