-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
75 lines (64 loc) · 2.73 KB
/
justfile
File metadata and controls
75 lines (64 loc) · 2.73 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
75
# Mason Egger's Website 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 with caching (avoids 429 errors)
link-check:
lychee --cache --verbose --max-concurrency 8 .
# 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 (build + link check)
check: build link-check
# Validate mkdocs configuration
validate:
uv run mkdocs build --strict
# Create a new blog post with template
new-blog TITLE:
#!/usr/bin/env bash
~/.claude/local/claude --allowedTools "Read, Write" -p 'Create a new blog post draft in the appropriate place with the appropriate frontmatter, naming format, with the title "{{TITLE}}". Add your best guess for tags and categories based on the title. The categories and tags sections can't be blank, so if you can't think of something, put DRAFT as the option. You are not to write ANY content. Just set things up for me. This blog will start off unpublished, so set `draft: true` in the frontmatter.'
# Show help for common workflows
help:
@echo "=== Mason Egger's Website - 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 "== Content Creation =="
@echo " just new-blog 'Title' Create a new blog post draft"
@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 "New post: just new-blog 'My Post Title'"
@echo "Clean start: just clean && just build"
@echo "Full validation: just validate && just link-check"