-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
98 lines (85 loc) · 2.7 KB
/
Taskfile.yml
File metadata and controls
98 lines (85 loc) · 2.7 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# https://taskfile.dev
version: '3'
vars:
SITE_NAME: Codebase Interface
SITE_URL: https://codebase-interface.github.io
tasks:
default:
desc: Show available tasks
cmds:
- task --list
silent: true
setup:
desc: Set up the development environment
cmds:
- pip install --upgrade pip
- pip install -r requirements.txt
- echo "✅ Python dependencies installed from requirements.txt"
- echo "Installing Node.js tools..."
- npm install -g markdownlint-cli
- echo "✅ Markdown linting tools installed"
- python -c "import mkdocs_minify_plugin; print('✅ Minify plugin verified')" || echo "⚠️ Minify plugin not found"
- echo "Setup complete!"
install:
desc: Install dependencies (alias for setup)
cmds:
- task: setup
serve:
desc: Serve the landing page locally with live reload
cmds:
- echo "Starting local development server..."
- mkdocs serve --livereload --dev-addr 127.0.0.1:8000
build:
desc: Build the optimized landing page
cmds:
- echo "Building landing page..."
- mkdocs build --strict --verbose
build-production:
desc: Build optimized production version
cmds:
- echo "Building production landing page..."
- mkdocs build --strict --clean --verbose
- touch site/.nojekyll
- echo "✅ Added .nojekyll file for GitHub Pages"
- echo "Production build complete!"
deploy:
desc: Deploy to GitHub Pages
cmds:
- echo "Deploying to GitHub Pages..."
- mkdocs gh-deploy --force --verbose
clean:
desc: Clean build artifacts
cmds:
- rm -rf site/
- echo "Build artifacts cleaned"
lint:
desc: Lint markdown files
cmds:
- |
if command -v markdownlint > /dev/null 2>&1; then
if markdownlint --config .markdownlint.yml *.md docs/*.md; then
echo "✅ Markdown linting passed"
else
echo "⚠️ Markdown linting found issues, but continuing deployment..."
echo "Run 'markdownlint --config .markdownlint.yml *.md docs/*.md' to see details"
fi
else
echo "⚠️ markdownlint not found. Run 'task setup' to install it"
exit 1
fi
validate:
desc: Validate the complete site
cmds:
- task: lint
- echo "✅ Linting completed"
- task: build
- echo "✅ Build validation completed"
stats:
desc: Show site statistics
cmds:
- echo "Markdown files:"
- find . -name '*.md' | wc -l
- echo "CSS files:"
- find docs/assets -name '*.css' 2>/dev/null | wc -l || echo "0"
- echo "JS files:"
- find docs/assets -name '*.js' 2>/dev/null | wc -l || echo "0"