-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
45 lines (34 loc) · 1018 Bytes
/
Justfile
File metadata and controls
45 lines (34 loc) · 1018 Bytes
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
# Justfile for ber-data.github.io
# Run `just` to see available recipes
set shell := ["bash", "-cu"]
# Default: list available recipes
default:
@just --list
# Install/sync Python deps via uv
install:
uv sync
# Serve the site locally with live reload
serve: install
uv run mkdocs serve -a localhost:8000
# Build the static site into ./site
build: install
uv run mkdocs build --clean
# Build with --strict (used by CI); requires a committed git history
build-strict: install
uv run mkdocs build --strict --clean
# Deploy to gh-pages branch from your local machine (CI normally handles this)
deploy: install
uv run mkdocs gh-deploy --force --clean --message "deploy: {{`date -u +%Y-%m-%dT%H:%M:%SZ`}}"
# Remove build artifacts
clean:
rm -rf site .cache
# Create/refresh uv lockfile
lock:
uv lock
# Upgrade all deps
upgrade:
uv lock --upgrade
# Format & lint (if ruff is added as a dev dep)
fmt:
uv run --with ruff ruff format .
uv run --with ruff ruff check --fix .