From 08404f2824e794a43e65d9d98017e35c9d143ab3 Mon Sep 17 00:00:00 2001 From: Sahil Batra Date: Thu, 18 Nov 2021 14:58:51 +0530 Subject: [PATCH] help: Rename night-mode.md to dark-theme.md. Fixes part of #20228. --- .../zerver/help/configure-default-new-user-settings.md | 2 +- templates/zerver/help/{night-mode.md => dark-theme.md} | 0 templates/zerver/help/include/add-a-wide-logo.md | 2 +- templates/zerver/help/include/set-up-your-account.md | 2 +- templates/zerver/help/include/sidebar_index.md | 2 +- zerver/lib/test_helpers.py | 1 + zerver/openapi/zulip.yaml | 8 ++++---- zproject/urls.py | 4 ++++ 8 files changed, 13 insertions(+), 8 deletions(-) rename templates/zerver/help/{night-mode.md => dark-theme.md} (100%) diff --git a/templates/zerver/help/configure-default-new-user-settings.md b/templates/zerver/help/configure-default-new-user-settings.md index 93583dba09..e6f2146a8f 100644 --- a/templates/zerver/help/configure-default-new-user-settings.md +++ b/templates/zerver/help/configure-default-new-user-settings.md @@ -14,7 +14,7 @@ preference settings, including the following: * Display settings, including: * Default view ([Recent topics](/help/recent-topics) vs. [All messages](/help/reading-strategies#all-messages)) - * [Light mode vs. dark mode](/help/night-mode) + * [Light mode vs. dark mode](/help/dark-theme) * [Emoji theme](/help/emoji-and-emoticons#change-your-emoji-set) * Notification settings, including: * [What types of messages trigger notifications][default-notifications] diff --git a/templates/zerver/help/night-mode.md b/templates/zerver/help/dark-theme.md similarity index 100% rename from templates/zerver/help/night-mode.md rename to templates/zerver/help/dark-theme.md diff --git a/templates/zerver/help/include/add-a-wide-logo.md b/templates/zerver/help/include/add-a-wide-logo.md index 9e713db052..15ab38747e 100644 --- a/templates/zerver/help/include/add-a-wide-logo.md +++ b/templates/zerver/help/include/add-a-wide-logo.md @@ -12,4 +12,4 @@ transparent background, and trim any bordering whitespace. To upload a logo: {end_tabs} -Make sure to test the logo in both light mode and [dark mode](/help/night-mode). +Make sure to test the logo in both light mode and [dark mode](/help/dark-theme). diff --git a/templates/zerver/help/include/set-up-your-account.md b/templates/zerver/help/include/set-up-your-account.md index 20da694655..1093a23f3c 100644 --- a/templates/zerver/help/include/set-up-your-account.md +++ b/templates/zerver/help/include/set-up-your-account.md @@ -7,7 +7,7 @@ [edit your profile information](https://zulip.com/help/edit-your-profile) to tell others about yourself. - [Review your display settings](/help/review-your-settings#review-your-display-settings). - You can [switch between day and night mode](/help/night-mode), + You can [switch between day and night mode](/help/dark-theme), [pick your favorite emoji theme](/help/emoji-and-emoticons#change-your-emoji-set), [change your language](/help/change-your-language), and make other tweaks to your Zulip experience. - [Browse and subscribe to streams](/help/browse-and-subscribe-to-streams). diff --git a/templates/zerver/help/include/sidebar_index.md b/templates/zerver/help/include/sidebar_index.md index 6d67fe15f1..cb10345a1a 100644 --- a/templates/zerver/help/include/sidebar_index.md +++ b/templates/zerver/help/include/sidebar_index.md @@ -44,7 +44,7 @@ ## Display settings * [Review your settings](/help/review-your-settings) -* [Night mode](/help/night-mode) +* [Night mode](/help/dark-theme) * [Change your language](/help/change-your-language) * [Change your timezone](/help/change-your-timezone) * [Use 24-hour time](/help/change-the-time-format) diff --git a/zerver/lib/test_helpers.py b/zerver/lib/test_helpers.py index b2f358b76c..a548701207 100644 --- a/zerver/lib/test_helpers.py +++ b/zerver/lib/test_helpers.py @@ -477,6 +477,7 @@ def write_instrumentation_reports(full_suite: bool, include_webhooks: bool) -> N "help/troubleshooting-desktop-notifications", "for/working-groups-and-communities/", "help/only-allow-admins-to-add-emoji", + "help/night-mode", "api/delete-stream", "casper/(?P.+)", "static/(?P.+)", diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml index 34a4c7b2bc..d29294d15f 100644 --- a/zerver/openapi/zulip.yaml +++ b/zerver/openapi/zulip.yaml @@ -7535,7 +7535,7 @@ paths: - name: color_scheme in: query description: | - Controls which [color theme](/help/night-mode) to use. + Controls which [color theme](/help/dark-theme) to use. - 1 - Automatic - 2 - Night mode @@ -9474,7 +9474,7 @@ paths: color_scheme: type: integer description: | - Controls which [color theme](/help/night-mode) to use. + Controls which [color theme](/help/dark-theme) to use. - 1 - Automatic - 2 - Night mode @@ -11182,7 +11182,7 @@ paths: color_scheme: type: integer description: | - Controls which [color theme](/help/night-mode) to use. + Controls which [color theme](/help/dark-theme) to use. - 1 - Automatic - 2 - Night mode @@ -12079,7 +12079,7 @@ paths: - name: color_scheme in: query description: | - Controls which [color theme](/help/night-mode) to use. + Controls which [color theme](/help/dark-theme) to use. - 1 - Automatic - 2 - Night mode diff --git a/zproject/urls.py b/zproject/urls.py index 2c4b293946..5839c235c4 100644 --- a/zproject/urls.py +++ b/zproject/urls.py @@ -867,6 +867,10 @@ urls += [ "help/add-custom-emoji", RedirectView.as_view(url="/help/custom-emoji", permanent=True), ), + path( + "help/night-mode", + RedirectView.as_view(url="/help/dark-theme", permanent=True), + ), path("help/", help_documentation_view), path("help/", help_documentation_view), path("api/", api_documentation_view),