-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
63 lines (52 loc) · 2.43 KB
/
Makefile
File metadata and controls
63 lines (52 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Makefile for lex-helper documentation development
.PHONY: help docs-serve docs-build docs-test docs-clean docs-install
help: ## Show this help message
@echo "Available commands:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}'
docs-install: ## Install documentation dependencies
uv sync --group docs
docs-serve: docs-install ## Start the documentation development server with live reload
@echo "Starting documentation development server..."
@echo "Visit http://127.0.0.1:8000 to view the documentation"
uv run python scripts/serve-docs.py
docs-build: ## Build the documentation
uv run mkdocs build --clean
docs-test: ## Test the documentation build and check for issues
uv run python scripts/test-docs.py
docs-qa: ## Run comprehensive quality assurance checks
@echo "Running comprehensive quality assurance checks..."
@echo "Building documentation..."
uv run mkdocs build --clean
@echo "Validating code examples..."
uv run python scripts/validate-code-examples.py docs/
@echo "Checking internal links (ignoring safe external references)..."
uv run python scripts/check-links.py ./site
@echo "Checking accessibility (ignoring theme-related issues)..."
-uv run python scripts/check-accessibility.py ./site
@echo "Checking spelling (warnings allowed)..."
-uv run python scripts/check-spelling.py docs/
@echo "Quality assurance checks completed!"
docs-qa-full: ## Run full quality assurance checks including external links
@echo "Running full quality assurance checks..."
@echo "Building documentation..."
uv run mkdocs build --clean
@echo "Validating code examples..."
uv run python scripts/validate-code-examples.py docs/
@echo "Checking internal links..."
uv run python scripts/check-links.py ./site
@echo "Checking external links..."
-uv run python scripts/check-links.py ./site --external
@echo "Checking accessibility..."
uv run python scripts/check-accessibility.py ./site
@echo "Checking spelling..."
-uv run python scripts/check-spelling.py docs/
@echo "Full quality assurance checks completed!"
docs-clean: ## Clean the documentation build directory
rm -rf site/
docs-deploy: ## Deploy documentation to GitHub Pages (for maintainers)
uv run mkdocs gh-deploy --clean
# Development shortcuts
serve: docs-serve ## Alias for docs-serve
build: docs-build ## Alias for docs-build
test: docs-test ## Alias for docs-test
qa: docs-qa ## Alias for docs-qa