From 16ef628ae4e9193d1aa01b771f32ada14d661cf6 Mon Sep 17 00:00:00 2001 From: Starystars67 Date: Sat, 30 Sep 2023 23:29:37 +0100 Subject: [PATCH] Added Dark mode and new navigation --- docs/en/game/getting-started.md | 1 + docs/en/index.md | 5 +++++ mkdocs.yml | 38 +++++++++++++++++++++++++++++++-- 3 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 docs/en/game/getting-started.md diff --git a/docs/en/game/getting-started.md b/docs/en/game/getting-started.md new file mode 100644 index 00000000..8b3a7945 --- /dev/null +++ b/docs/en/game/getting-started.md @@ -0,0 +1 @@ +# Getting Started \ No newline at end of file diff --git a/docs/en/index.md b/docs/en/index.md index e69de29b..13768d24 100644 --- a/docs/en/index.md +++ b/docs/en/index.md @@ -0,0 +1,5 @@ +# Home + +Welcome to the new BeamMP Docs. + +A new fancy homepage needs to be created for this page. :slight_smile: \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index b5dc7ed4..b9ddf130 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -15,9 +15,11 @@ theme: - search.highlight - search.share - content.code.annotate - - navigation.footer + - content.code.copy - content.action.edit - content.action.view + - navigation.instant + - navigation.footer - navigation.tabs - navigation.sections - navigation.expand @@ -25,6 +27,19 @@ theme: - toc.follow icon: repo: fontawesome/brands/github + palette: + - scheme: default + primary: indigo + accent: indigo + toggle: + icon: material/brightness-7 + name: Switch to dark mode + - scheme: slate + primary: black + accent: indigo + toggle: + icon: material/brightness-4 + name: Switch to light mode extra_css: - stylesheets/custom.css @@ -68,8 +83,27 @@ plugins: - tags - git-revision-date-localized: enable_creation_date: true + markdown_extensions: - attr_list - pymdownx.emoji: emoji_index: !!python/name:material.extensions.emoji.twemoji - emoji_generator: !!python/name:material.extensions.emoji.to_svg \ No newline at end of file + emoji_generator: !!python/name:material.extensions.emoji.to_svg + +nav: + - Home: en/index.md + - Getting started: + - Playing BeamMP: + - Installation: en/game/getting-started.md + - Customizing your setup: en/game/tailoring.md + - Using BeamMP: en/game/playing.md + - Creating a Server: + - Installation: en/server/create-a-server.md + - FAQ: + - Installation: en/faq.md + - Guides: + - Mod Creation: en/guides/mod-creation.md + - BeamNG Documentation: + - Installation: en/beamng/index.md + - Contributing: + - Getting Started: en/contributing/index.md \ No newline at end of file