Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
help-beta: Build step should accept `--no-relative-links`.
Shubham Padia81fbc93cd9c8
diff --git a/tools/build-help-center b/tools/build-help-centerindex e61b247ca76..73f2de0d151 100755--- a/tools/build-help-center+++ b/tools/build-help-center@@ -1,5 +1,6 @@#!/usr/bin/env python3+import argparseimport osimport subprocessimport sys@@ -18,12 +19,22 @@ import djangodjango.setup()from django.conf import settings+parser = argparse.ArgumentParser()+parser.add_argument(+ "--no-relative-links",+ action="store_false",+ dest="show_relative_links",+ help="Disable relative links when using NavigationSteps component. Typically only set to true in case of the help center being hosted on zulip.com.",+)+args = parser.parse_args()+def run() -> None:subprocess.check_call(["./tools/convert-help-center-docs-to-mdx"])env = os.environ.copy()env["SUPPORT_EMAIL"] = parseaddr(settings.ZULIP_ADMINISTRATOR)[1]env["CORPORATE_ENABLED"] = str(settings.CORPORATE_ENABLED).lower()+ env["SHOW_RELATIVE_LINKS"] = str(args.show_relative_links).lower()subprocess.check_call(["/usr/local/bin/corepack", "pnpm", "build"],cwd="help-beta",