diff --git a/mkdocs.yml b/mkdocs.yml index 000acc25..aaf4b106 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -150,6 +150,21 @@ plugins: - tags - social: # social embed cards enabled: !ENV [CI, false] # enabled only when running in CI (eg GitHub Actions) + - redirects: + redirect_maps: + "develop.md": "developing.md" + "library/entry.md": "entries.md" + "library/field.md": "fields.md" + "library/index.md": "libraries.md" + "library/library_search.md": "search.md" + "library/tag_categories.md": "tags.md" + "library/tag_color.md": "colors.md" + "library/tag.md": "tags.md" + "updates/changelog.md": "changelog.md" + "updates/roadmap.md": "roadmap.md" + "updates/schema_changes.md": "library-changes.md" + "utilities/ignore.md": "ignore.md" + "utilities/macro.md": "macros.md" extra_css: - stylesheets/extra.css diff --git a/pyproject.toml b/pyproject.toml index e5e812ed..fe191e7c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ dependencies = [ [project.optional-dependencies] dev = ["tagstudio[mkdocs,mypy,pre-commit,pyinstaller,pytest,ruff]"] -mkdocs = ["mkdocs-material[imaging]>=9.6.14"] +mkdocs = ["mkdocs-material[imaging]>=9.6.14", "mkdocs-redirects~=1.2"] mypy = ["mypy==1.15.0", "mypy-extensions==1.*", "types-ujson~=5.10"] pre-commit = ["pre-commit~=4.2"] pyinstaller = ["Pyinstaller~=6.13"]