help: Restore broken link checks for help center documentation.

We add a step to build help center and then test the broken links as we
used to before removing the test temporarily.

This commit focuses on just adding back the broken link checks for the
help center. We skip the fragment check since that is in-built in
starlight and starlight tests account for that already. For the image
check we can add it back in a followup issue.
This commit is contained in:
Shubham Padia
2025-08-12 10:41:46 +00:00
committed by Tim Abbott
parent d333ddb961
commit a766c092fc
6 changed files with 43 additions and 21 deletions

View File

@@ -57,6 +57,7 @@ def test_server_running(
external_host: str = "testserver",
log_file: str | None = None,
dots: bool = False,
enable_help_center: bool = False,
) -> Iterator[None]:
with ExitStack() as stack:
log = sys.stdout
@@ -75,6 +76,8 @@ def test_server_running(
run_dev_server_command = ["tools/run-dev", "--test", "--streamlined"]
if skip_provision_check:
run_dev_server_command.append("--skip-provision-check")
if enable_help_center:
run_dev_server_command.append("--help-center")
server = subprocess.Popen(run_dev_server_command, stdout=log, stderr=log)
try: