docs: Add redirects for moved pages about stream archiving.

We're renaming "stream deletion" language to "stream archiving"
and these pages were moved in the process, so we should keep redirects
for them for a while.
This commit is contained in:
Mateusz Mandera
2021-04-01 15:15:40 +02:00
committed by Tim Abbott
parent 82b43a8cfe
commit ba7f2a22e6
2 changed files with 7 additions and 0 deletions

View File

@@ -496,6 +496,8 @@ def write_instrumentation_reports(full_suite: bool, include_webhooks: bool) -> N
"confirmation_key/", "confirmation_key/",
"node-coverage/(?P<path>.+)", "node-coverage/(?P<path>.+)",
"docs/(?P<path>.+)", "docs/(?P<path>.+)",
"help/delete-a-stream",
"api/delete-stream",
"casper/(?P<path>.+)", "casper/(?P<path>.+)",
"static/(?P<path>.+)", "static/(?P<path>.+)",
"flush_caches", "flush_caches",

View File

@@ -764,6 +764,11 @@ api_documentation_view = MarkdownDirectoryView.as_view(
template_name="zerver/documentation_main.html", path_template="/zerver/api/%s.md" template_name="zerver/documentation_main.html", path_template="/zerver/api/%s.md"
) )
urls += [ urls += [
# Redirects due to us having moved the docs:
path(
"help/delete-a-stream", RedirectView.as_view(url="/help/archive-a-stream", permanent=True)
),
path("api/delete-stream", RedirectView.as_view(url="/api/archive-stream", permanent=True)),
path("help/", help_documentation_view), path("help/", help_documentation_view),
path("help/<path:article>", help_documentation_view), path("help/<path:article>", help_documentation_view),
path("api/", api_documentation_view), path("api/", api_documentation_view),