-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathjustfile
More file actions
31 lines (25 loc) · 1011 Bytes
/
justfile
File metadata and controls
31 lines (25 loc) · 1011 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
# Ralphify — website & docs build tasks
# These recipes build the static site served at ralphify.co
# Output directory for the combined site (separate from dist/ which is for the Python package)
site_dir := "_site"
# Build everything: landing page + docs → dist/website/
[group('website')]
website-build: website-build-landing website-build-docs
# Build only the landing page → dist/website/
[group('website')]
website-build-landing:
rm -rf {{ site_dir }}
mkdir -p {{ site_dir }}
cp -r website/* {{ site_dir }}/
# Build only the mkdocs site → dist/website/docs/
[group('website')]
website-build-docs:
uv run --group dev python -m mkdocs build --strict --site-dir {{ site_dir }}/docs
# Preview the landing page (serves dist/website/ on port 8080)
[group('website')]
website-preview: website-build
cd {{ site_dir }} && python3 -m http.server 8080
# Preview docs only (mkdocs dev server on port 8000)
[group('website')]
docs-preview:
uv run --group dev python -m mkdocs serve