-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathjustfile
More file actions
74 lines (63 loc) · 2.33 KB
/
justfile
File metadata and controls
74 lines (63 loc) · 2.33 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
64
65
66
67
68
69
70
71
72
73
74
# PyTexas Conference 2026 Justfile
# Available commands for MkDocs website development
# Default recipe - show available commands
default:
@just --list
# Install dependencies using uv
install:
uv sync
# Build the documentation site
build:
uv run mkdocs build
# Run local development server with hot reload
serve:
uv run mkdocs serve
# Run local development server on specific port
serve-port PORT="8001":
uv run mkdocs serve --dev-addr=127.0.0.1:{{PORT}}
# Check all links using lychee against the built site (builds first)
link-check: build
ln -sfn site 2026
lychee --cache --verbose --root-dir . 'site/**/*.html'; STATUS=$?; rm -f 2026; exit $STATUS
# Clean generated files and cache
clean:
rm -rf site/
rm -rf .lycheecache/
rm -rf __pycache__/
find . -name "*.pyc" -delete
find . -name ".DS_Store" -delete
# Run all quality checks (link-check includes build)
check: link-check
# Validate mkdocs configuration
validate:
uv run mkdocs build --strict
# Deploy to GitHub Pages (production only - use with caution)
deploy:
uv run mkdocs gh-deploy --force
# Show help for common workflows
help:
@echo "=== PyTexas Conference 2026 - Available Commands ==="
@echo ""
@echo "== Setup & Development =="
@echo " just install Install dependencies using uv"
@echo " just serve Start development server (port 8000)"
@echo " just serve-port 8001 Start dev server on specific port"
@echo ""
@echo "== Building & Validation =="
@echo " just build Build the documentation site"
@echo " just validate Build with strict validation"
@echo " just link-check Check all links (with caching)"
@echo " just check Run all quality checks"
@echo ""
@echo "== Deployment =="
@echo " just deploy Deploy to GitHub Pages (production only)"
@echo ""
@echo "== Utilities =="
@echo " just clean Clean generated files and cache"
@echo " just help Show this help message"
@echo ""
@echo "=== Common Workflows ==="
@echo "Development: just install && just serve"
@echo "Pre-publish: just check"
@echo "Clean start: just clean && just build"
@echo "Full validation: just validate && just link-check"