diff --git a/zerver/lib/test_helpers.py b/zerver/lib/test_helpers.py index e4903fa11f..3c867570de 100644 --- a/zerver/lib/test_helpers.py +++ b/zerver/lib/test_helpers.py @@ -505,6 +505,7 @@ def write_instrumentation_reports(full_suite: bool, include_webhooks: bool) -> N "config-error/(?P[^/]+)", "confirmation_key/", "node-coverage/(?P.+)", + "docs/", "docs/(?P.+)", "casper/(?P.+)", "static/(?P.+)", diff --git a/zproject/dev_urls.py b/zproject/dev_urls.py index 7e5c4abad4..53ac877d0b 100644 --- a/zproject/dev_urls.py +++ b/zproject/dev_urls.py @@ -7,7 +7,7 @@ from django.contrib.staticfiles.views import serve as staticfiles_serve from django.http.request import HttpRequest from django.http.response import FileResponse from django.urls import path -from django.views.generic import TemplateView +from django.views.generic import RedirectView, TemplateView from django.views.static import serve from zerver.views.auth import login_page @@ -52,6 +52,7 @@ urls = [ "show_indexes": True, }, ), + path("docs/", RedirectView.as_view(url="/docs/index.html")), path( "docs/", serve,