Skip to content

Commit 29c3849

Browse files
committed
fix: add mdbook linkcheck to static-check, rename docs targets
- Rename docs -> docs-server (serves with browser) - Rename docs-build -> docs (just builds) - Add check-docs-links target (runs mdbook-linkcheck) - Include check-docs-links in static-check
1 parent 894a0d4 commit 29c3849

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

Makefile

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ include fmt.mk
4949
.PHONY: test test-unit test-integration test-watch test-coverage test-e2e smoke-test
5050
.PHONY: dist dist-mac dist-win dist-linux
5151
.PHONY: vscode-ext vscode-ext-install
52-
.PHONY: docs docs-build docs-watch
52+
.PHONY: docs docs-server docs-watch check-docs-links
5353
.PHONY: storybook storybook-build test-storybook chromatic
5454
.PHONY: benchmark-terminal
5555
.PHONY: ensure-deps rebuild-native
@@ -213,7 +213,7 @@ build/icon.png: docs/img/logo.webp scripts/generate-icons.ts
213213
@bun scripts/generate-icons.ts png
214214

215215
## Quality checks (can run in parallel)
216-
static-check: lint typecheck fmt-check check-eager-imports check-bench-agent ## Run all static checks (includes startup performance checks)
216+
static-check: lint typecheck fmt-check check-eager-imports check-bench-agent check-docs-links ## Run all static checks (includes startup performance checks)
217217

218218
check-bench-agent: ## Verify terminal-bench agent configuration and imports
219219
@./scripts/check-bench-agent.sh
@@ -337,15 +337,19 @@ vscode-ext-install: ## Build and install VS Code extension locally
337337
@$(MAKE) -C vscode install
338338

339339
## Documentation
340-
docs: ## Serve documentation locally
341-
@./scripts/docs.sh
342-
343-
docs-build: ## Build documentation
340+
docs: ## Build documentation
344341
@./scripts/docs_build.sh
345342

343+
docs-server: ## Serve documentation locally (opens browser)
344+
@./scripts/docs.sh
345+
346346
docs-watch: ## Watch and rebuild documentation
347347
@cd docs && mdbook watch
348348

349+
check-docs-links: docs ## Check documentation for broken links
350+
@echo "🔗 Checking documentation links..."
351+
@cd docs && mdbook-linkcheck --standalone .
352+
349353
## Storybook
350354
storybook: node_modules/.installed ## Start Storybook development server
351355
$(check_node_version)

0 commit comments

Comments
 (0)