Skip to content

Commit

Permalink
Testing with redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkauzh committed Dec 14, 2024
1 parent dedbdb8 commit 916f046
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 20 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: MkDocs Deploy
name: MkDocs Deploy
on:
push:
branches:
- latest
- latest
- stable

permissions:
Expand All @@ -20,12 +20,12 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- run: pip install mkdocs-material mkdocs-redirects
- run: mkdocs gh-deploy --force
6 changes: 6 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ theme:
icon: material/toggle-switch-off
name: Switch to system preference

plugins:
- redirects:
redirect_maps:
"discord.md": "https://discord.gg/gZqdRXbbqg"
"repo.md": "https://github.com/vuelto-org/vuelto"

markdown_extensions:
- abbr
- admonition
Expand Down
8 changes: 0 additions & 8 deletions website/discord.html

This file was deleted.

8 changes: 0 additions & 8 deletions website/repo.html

This file was deleted.

0 comments on commit 916f046

Please sign in to comment.