Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

help-beta: Use CORPORATE_ENABLED instead of SHOW_BILLING_HELP_LINKS.

Shubham Padia37da13944299
diff --git a/help-beta/astro.config.mjs b/help-beta/astro.config.mjs
index 33c04ac3039..1efb588b482 100644
--- a/help-beta/astro.config.mjs
+++ b/help-beta/astro.config.mjs
@@ -45,7 +45,7 @@ export default defineConfig({
optional: true,
default: true,
}),
- SHOW_BILLING_HELP_LINKS: envField.boolean({
+ CORPORATE_ENABLED: envField.boolean({
context: "client",
access: "public",
optional: true,
diff --git a/help-beta/src/components/NavigationSteps.astro b/help-beta/src/components/NavigationSteps.astro
index 92447ddd772..f70e366e869 100644
--- a/help-beta/src/components/NavigationSteps.astro
+++ b/help-beta/src/components/NavigationSteps.astro
@@ -1,7 +1,7 @@
---
import assert from "node:assert";
-import {SHOW_BILLING_HELP_LINKS, SHOW_RELATIVE_LINKS} from "astro:env/client";
+import {CORPORATE_ENABLED, SHOW_RELATIVE_LINKS} from "astro:env/client";
/* eslint-disable import/extensions */
import RawZulipIconBarChart from "~icons/zulip-icon/bar-chart?raw";
@@ -22,6 +22,7 @@ import RawZulipIconUserGroupCog from "~icons/zulip-icon/user-group-cog?raw";
const PERSONAL_SETTINGS_TYPE = "Personal settings";
const ORGANIZATION_SETTINGS_TYPE = "Organization settings";
+const SHOW_BILLING_HELP_LINKS = CORPORATE_ENABLED;
// This list has been transformed one-off from `help_settings_links.py`, we
// have added a comment in that file to update this list in case of any
diff --git a/tools/build-help-center b/tools/build-help-center
index cf8bfe4156d..bbd74a2384c 100755
--- a/tools/build-help-center
+++ b/tools/build-help-center
@@ -21,7 +21,7 @@ from django.conf import settings
def run() -> None:
subprocess.check_call(["./tools/convert-help-center-docs-to-mdx"])
env = os.environ.copy()
- env["SHOW_BILLING_HELP_LINKS"] = str(settings.CORPORATE_ENABLED).lower()
+ env["CORPORATE_ENABLED"] = str(settings.CORPORATE_ENABLED).lower()
subprocess.check_call(
["/usr/local/bin/corepack", "pnpm", "build"],
cwd="help-beta",