From 5c5454e4a5b1c8e27cb9c64c812516022eaf279a Mon Sep 17 00:00:00 2001 From: Eugene Brodsky Date: Sun, 18 Dec 2022 03:04:58 -0500 Subject: [PATCH] (docs) add redirects for moved pages (#2063) --- docs/installation/010_INSTALL_AUTOMATED.md | 1 - docs/requirements-mkdocs.txt | 2 ++ mkdocs.yml | 8 ++++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/installation/010_INSTALL_AUTOMATED.md b/docs/installation/010_INSTALL_AUTOMATED.md index 8b1bc97be7..8194eb3d02 100644 --- a/docs/installation/010_INSTALL_AUTOMATED.md +++ b/docs/installation/010_INSTALL_AUTOMATED.md @@ -303,4 +303,3 @@ version as its argument. For example, this will install the old 2.2.0 release. ```cmd update.sh https://github.com/invoke-ai/InvokeAI/archive/refs/tags/v2.2.0.zip ``` - diff --git a/docs/requirements-mkdocs.txt b/docs/requirements-mkdocs.txt index 42c56a9a2e..a637622954 100644 --- a/docs/requirements-mkdocs.txt +++ b/docs/requirements-mkdocs.txt @@ -1,3 +1,5 @@ mkdocs mkdocs-material>=8, <9 mkdocs-git-revision-date-localized-plugin +mkdocs-redirects==1.2.0 + diff --git a/mkdocs.yml b/mkdocs.yml index 964e991ee9..ebd9ec0acf 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -87,3 +87,11 @@ plugins: - search - git-revision-date-localized: enable_creation_date: true + - redirects: + redirect_maps: + 'installation/INSTALL_AUTOMATED.md': 'installation/010_INSTALL_AUTOMATED.md' + 'installation/INSTALL_MANUAL.md': 'installation/020_INSTALL_MANUAL.md' + 'installation/INSTALL_SOURCE.md': 'installation/020_INSTALL_MANUAL.md' + 'installation/INSTALL_DOCKER.md': 'installation/040_INSTALL_DOCKER.md' + 'installation/INSTALLING_MODELS.md': 'installation/050_INSTALLING_MODELS.md' + 'installation/INSTALL_PATCHMATCH.md': 'installation/060_INSTALL_PATCHMATCH.md'