diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a784fe6..c131801 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,6 +3,10 @@ on: push: branches: - master +permissions: + contents: read + pages: write + id-token: write jobs: lint: @@ -18,12 +22,16 @@ jobs: name: Deploy docs runs-on: ubuntu-latest steps: - - name: Checkout master - uses: actions/checkout@v5 - - - name: Deploy docs - uses: mhausenblas/mkdocs-deploy-gh-pages@1.26 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CUSTOM_DOMAIN: wiki.t2linux.org - EXTRA_PACKAGES: build-base + - uses: actions/configure-pages@v5 + - uses: actions/checkout@v5 + - uses: actions/setup-python@v5 + with: + python-version: 3.x + - run: pip install zensical + - run: zensical build --clean + - run: bash -c "echo 'wiki.t2linux.org' > build/CNAME" + - run: bash -c "cp -r redirs/* build/guides" + - uses: actions/upload-pages-artifact@v4 + with: + path: build + - uses: actions/deploy-pages@v4 diff --git a/.gitignore b/.gitignore index bbd21eb..1af54f8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ # mkdocs -build/ \ No newline at end of file +build/ +.DS_Store \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 0c869b5..0e467a3 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,13 +1,30 @@ -# To build the documentation use `build.py` +# To build the documentation use Zensical site_name: t2linux wiki site_author: the t2linux.org contributors site_url: https://t2linux.org/ -copyright: "© 2021-2024 t2linux.org CC-BY-SA-4.0" +copyright: "© 2021-2025 t2linux.org CC-BY-SA-4.0" theme: palette: - scheme: slate + - media: "(prefers-color-scheme)" + toggle: + icon: material/brightness-auto + name: Switch to light mode + + # Palette toggle for light mode + - media: "(prefers-color-scheme: light)" + scheme: default + toggle: + icon: material/brightness-7 + name: Switch to dark mode + + # Palette toggle for dark mode + - media: "(prefers-color-scheme: dark)" + scheme: slate + toggle: + icon: material/brightness-4 + name: Switch to system preference name: material custom_dir: theme font: false @@ -18,6 +35,7 @@ theme: - content.code.copy - navigation.top favicon: assets/images/icon.png + logo: assets/images/t2linux-logo-large.svg docs_dir: docs site_dir: build diff --git a/redirs/dkms/index.html b/redirs/dkms/index.html new file mode 100644 index 0000000..20d4322 --- /dev/null +++ b/redirs/dkms/index.html @@ -0,0 +1,13 @@ + + +
+ +