commit 6c2f1dc68356b2a9087265dbaf4ff65047d5ca4e Author: Currency Date: Wed Jan 29 07:49:44 2025 +0100 first commit diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..460a626 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,14 @@ +name: Deploy Wiki +on: + push: + branches: [main] +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: 3.x + - run: pip install mkdocs-material + - run: mkdocs gh-deploy --force \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..919ce1f --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..a55e7a1 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..66f29f6 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..90a5036 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/wiki.iml b/.idea/wiki.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/wiki.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/docs/about.md b/docs/about.md new file mode 100644 index 0000000..2d19eb1 --- /dev/null +++ b/docs/about.md @@ -0,0 +1 @@ +# about page \ No newline at end of file diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 0000000..04bd860 --- /dev/null +++ b/docs/index.md @@ -0,0 +1 @@ +# index page \ No newline at end of file diff --git a/docs/javascripts/extra.js b/docs/javascripts/extra.js new file mode 100644 index 0000000..65b5ced --- /dev/null +++ b/docs/javascripts/extra.js @@ -0,0 +1,35 @@ +document.addEventListener("DOMContentLoaded", function() { + // Sync with Material's native storage key + const STORAGE_KEY = "md-color-scheme"; + + // Get initial theme state + const savedTheme = localStorage.getItem(STORAGE_KEY) || "default"; + document.body.setAttribute("data-md-color-scheme", savedTheme); + + // Watch for theme changes + const mutationObserver = new MutationObserver(mutations => { + mutations.forEach(mutation => { + if (mutation.attributeName === "data-md-color-scheme") { + const currentTheme = document.body.getAttribute("data-md-color-scheme"); + localStorage.setItem(STORAGE_KEY, currentTheme); + } + }); + }); + + // Start observing body attributes + mutationObserver.observe(document.body, { + attributes: true, + attributeFilter: ["data-md-color-scheme"] + }); + + // Debounced click handler + let isToggling = false; + document.querySelector(".md-header__button[data-md-color-scheme]").addEventListener("click", () => { + if (!isToggling) { + isToggling = true; + setTimeout(() => { + isToggling = false; + }, 300); + } + }); +}); \ No newline at end of file diff --git a/docs/pages/A3D-Versions/2-0.md b/docs/pages/A3D-Versions/2-0.md new file mode 100644 index 0000000..aeef3f2 --- /dev/null +++ b/docs/pages/A3D-Versions/2-0.md @@ -0,0 +1 @@ +# hello 2 \ No newline at end of file diff --git a/docs/pages/A3D-Versions/5.0.md b/docs/pages/A3D-Versions/5.0.md new file mode 100644 index 0000000..bce6952 --- /dev/null +++ b/docs/pages/A3D-Versions/5.0.md @@ -0,0 +1 @@ +# hello 5 \ No newline at end of file diff --git a/docs/pages/A3D-Versions/6.0.md b/docs/pages/A3D-Versions/6.0.md new file mode 100644 index 0000000..304c8dd --- /dev/null +++ b/docs/pages/A3D-Versions/6.0.md @@ -0,0 +1 @@ +# hello 6 \ No newline at end of file diff --git a/docs/pages/A3D-Versions/7.0.md b/docs/pages/A3D-Versions/7.0.md new file mode 100644 index 0000000..b314c28 --- /dev/null +++ b/docs/pages/A3D-Versions/7.0.md @@ -0,0 +1 @@ +# hello 7 \ No newline at end of file diff --git a/docs/pages/A3D-Versions/7.0v2.md b/docs/pages/A3D-Versions/7.0v2.md new file mode 100644 index 0000000..f2dd263 --- /dev/null +++ b/docs/pages/A3D-Versions/7.0v2.md @@ -0,0 +1 @@ +# hello 7v2 \ No newline at end of file diff --git a/docs/pages/A3D-Versions/8.0.md b/docs/pages/A3D-Versions/8.0.md new file mode 100644 index 0000000..e412dc0 --- /dev/null +++ b/docs/pages/A3D-Versions/8.0.md @@ -0,0 +1 @@ +# hello 8 \ No newline at end of file diff --git a/docs/resources/icon.ico b/docs/resources/icon.ico new file mode 100644 index 0000000..2a28756 Binary files /dev/null and b/docs/resources/icon.ico differ diff --git a/docs/resources/icon.webp b/docs/resources/icon.webp new file mode 100644 index 0000000..3a14900 Binary files /dev/null and b/docs/resources/icon.webp differ diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css new file mode 100644 index 0000000..41c9dbb --- /dev/null +++ b/docs/stylesheets/extra.css @@ -0,0 +1,26 @@ +:root { + --md-primary-fg-color: #2B579A; + --md-primary-fg-color--light: #7BAFD4; + --md-primary-fg-color--dark: #1A365F; +} + +.md-header { + box-shadow: 0 0 0.2rem rgba(0,0,0,.1), 0 0.2rem 0.4rem rgba(0,0,0,.2); +} + +.md-tabs { + background-color: var(--md-primary-fg-color); +} + +.md-search__form:hover { + background-color: rgba(255,255,255,0.1); +} + +.md-typeset h1 { + font-weight: 600; + color: var(--md-primary-fg-color); +} + +.md-footer { + margin-top: 2em; +} \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml new file mode 100644 index 0000000..61b2429 --- /dev/null +++ b/mkdocs.yml @@ -0,0 +1,59 @@ +site_name: MapMakers Wiki +site_url: https://mapmakersandprogrammers.github.io/wiki/ + +theme: + logo: resources/icon.webp + name: material + features: + - navigation.tabs + - navigation.top + - search.highlight + - search.suggest + - toc.integrate + palette: + - scheme: default + toggle: + icon: material/brightness-7 + name: Switch to dark mode + - scheme: slate + toggle: + icon: material/brightness-2 + name: Switch to light mode + font: + text: Roboto + code: Roboto Mono + +extra: + favicon: resources/icon.ico + +extra_css: + - stylesheets/extra.css + +extra_javascript: + - javascripts/extra.js + +plugins: + - search + +markdown_extensions: + - toc: + permalink: true + - pymdownx.highlight + - pymdownx.superfences + - pymdownx.emoji: + emoji_index: !!python/name:material.extensions.emoji.twemoji + emoji_generator: !!python/name:material.extensions.emoji.to_svg + +nav: + - Home: index.md + - Alternativa3D: + - Versions: + - 2.0: pages/A3D-Versions/2-0.md + - 5.0: pages/A3D-Versions/5.0.md + - 6.0: pages/A3D-Versions/6.0.md + - 7.0: pages/A3D-Versions/7.0.md + - 7.0v2: pages/A3D-Versions/7.0v2.md + - 8.0: pages/A3D-Versions/8.0.md + - something else: + - something else sub : idk/idk.md + - About: about.md diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..8c5295c --- /dev/null +++ b/readme.md @@ -0,0 +1,23 @@ + + +## How to add pages: + +1. Create .md file in /docs/.... (e.g., docs/tanki2.0/page1.md) + + +2. Add to nav: in mkdocs.yml: +
+nav:
+- New Section:
+    - New Page: path to page1.md
+
+Directory Structure: +
+docs/  
+├─ section-name (doesnt have to be the same as the nav name)/  
+│  ├─ page1.md  
+│  └─ page2.md  
+
+ +### Order in nav: = menu order. +### In nav you can create anything you want with any name you want. the only thing that matters is the final md page path, if the folders and the nav names dont match up that doesnt matter. Only the md directory should match \ No newline at end of file