Added redirects from old to new structure

This commit is contained in:
squidfunk 2020-07-22 13:59:05 +02:00
parent cafb79b788
commit ae1cc68a4e
3 changed files with 19 additions and 3 deletions

View File

@ -81,7 +81,9 @@ jobs:
- run: |
pip install -r requirements.txt
pip install .
pip install mkdocs-minify-plugin>=0.2
pip install \
mkdocs-minify-plugin>=0.3 \
mkdocs-redirects>=1.0
# Build documentation
- env:

View File

@ -35,7 +35,7 @@ pip show mkdocs-material
* Reduced HTML and CSS footprint due to deprecation of Internet Explorer support
* Slight facelifting of some UI elements (Admonitions, tables, ...)
[1]: setup/navigation.md#instant-loading
[1]: setup/setting-up-navigation.md#instant-loading
[2]: setup/changing-the-colors.md#custom-colors
[3]: setup/changing-the-logo-and-icons.md#icons
[4]: setup/setting-up-site-search.md#built-in-search
@ -68,7 +68,7 @@ flags and can be enabled by listing them in `mkdocs.yml` under `theme.features`:
tabs: true
```
[5]: setup/navigation.md#navigation-tabs
[5]: setup/setting-up-navigation.md#navigation-tabs
#### `theme.logo.icon`

View File

@ -67,6 +67,20 @@ theme:
# Plugins
plugins:
- search
- redirects:
redirect_maps:
extensions/admonition.md: reference/admonitions.md
extensions/codehilite.md: reference/code-blocks.md
extensions/footnotes.md: reference/footnotes.md
extensions/metadata.md: reference/meta-tags.md
extensions/permalinks.md: setup/setting-up-navigation.md
plugins/search.md: setup/setting-up-site-search.md
# plugins/minification.md:
# plugins/revision-date.md:
# plugins/awesome-pages.md:
releases/4.md: upgrading.md
releases/5.md: upgrading.md
releases/changelog.md: changelog.md
- minify:
minify_html: true