From 09b36c0456a2c1bc6f7a33b926500fff56f26e74 Mon Sep 17 00:00:00 2001 From: Victor Valentim Date: Wed, 30 Oct 2024 14:29:14 -0300 Subject: [PATCH] Update Documentation --- .github/workflows/deploy_website.yml | 2 +- .github/workflows/pr_preview.yml | 2 +- mkdocs.yml | 35 +++++++++++++++++++--------- 3 files changed, 26 insertions(+), 13 deletions(-) diff --git a/.github/workflows/deploy_website.yml b/.github/workflows/deploy_website.yml index dc23208..c4cd385 100644 --- a/.github/workflows/deploy_website.yml +++ b/.github/workflows/deploy_website.yml @@ -20,7 +20,7 @@ jobs: python-version: 3.x - name: Install dependencies - run: pip install mkdocs-dracula-theme mkdocs-static-i18n[material] mkdocs-material + run: pip install mkdocs-material - name: Build website run: mkdocs build diff --git a/.github/workflows/pr_preview.yml b/.github/workflows/pr_preview.yml index 85e7210..f0beecd 100644 --- a/.github/workflows/pr_preview.yml +++ b/.github/workflows/pr_preview.yml @@ -24,7 +24,7 @@ jobs: python-version: 3.x - name: Install dependencies - run: pip install mkdocs-dracula-theme mkdocs-static-i18n[material] mkdocs-material + run: pip install mkdocs-material - name: Build website if: github.event.action != 'closed' diff --git a/mkdocs.yml b/mkdocs.yml index 853657e..a6dc10f 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,9 +1,32 @@ - site_name: ziviDomeLive - Library Documentation site_url: "https://vicvalentim.github.io/ziviDomeLive/" theme: name: material + language: en + palette: + + # Palette toggle for light mode + - scheme: default + toggle: + icon: material/brightness-7 + name: Switch to dark mode + + # Palette toggle for dark mode + - scheme: slate + toggle: + icon: material/brightness-4 + name: Switch to light mode + + extra: + alternate: + - name: English + link: /en/ + lang: en + - name: Português (Brasil) + link: /pt-br/ + lang: pt-BR + features: - search.suggest - search.highlight @@ -20,16 +43,6 @@ copyright: MIT Licence. plugins: - search - offline - - - i18n: - docs_structure: suffix - languages: - - locale: en - default: true - name: English - build: true - - locale: pt-br - name: Português (Brasil) - build: true extra_css: - assets/extra.css