From 0cb0dc85a10b96a26261f30313716362a3e1ace0 Mon Sep 17 00:00:00 2001 From: 201st-Luka Date: Wed, 6 Sep 2023 00:13:41 +0200 Subject: [PATCH] docs: creating custom theme --- docs/index.md | 2 -- mkdocs.yml | 32 +++++++++++++++++++++++++++++++- requirements-docs.txt | 3 ++- 3 files changed, 33 insertions(+), 4 deletions(-) diff --git a/docs/index.md b/docs/index.md index d096d30..ae29e74 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,7 +1,5 @@ [![Discord][discord_shield]][discord_url] ![Last commit][last_commit_shield] -![PyClasher](../.github/PyClasher.png) - # PyClasher PyClasher is the name of the asynchronous ClashOfClans API. It is diff --git a/mkdocs.yml b/mkdocs.yml index c97d1ae..1a333c9 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -2,4 +2,34 @@ site_name: PyClasher site_url: https://201st-Luka.github.io/pyclasher/ nav: - - Home: index.md \ No newline at end of file + - Home: index.md + +theme: + name: material + features: + - navigation.tabs + - navigation.sections + - toc.integrate + - navigation.top + - search.suggest + - search.highlight + - content.tabs.link + - content.code.annotation + - content.code.copy + language: en + palette: + - scheme: default + toggle: + icon: material/toggle-switch-off-outline + name: Switch to dark mode + primary: indigo + accent: orange + - scheme: slate + toggle: + icon: material/toggle-switch + name: Switch to light mode + primary: indigo + accent: orange + +plugins: + - search diff --git a/requirements-docs.txt b/requirements-docs.txt index b854bca..21f876b 100644 --- a/requirements-docs.txt +++ b/requirements-docs.txt @@ -1 +1,2 @@ -mkdocs \ No newline at end of file +mkdocs +mkdocs-material \ No newline at end of file