| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- # Default recipe - lists all available recipes
- @_default:
- just --list
- # Run alex linter on README.md to find inconsiderate writing
- @alex:
- bunx alex README.md
- # Install and update dependencies
- @bootstrap:
- python -m pip install --upgrade pip uv
- uv pip install --upgrade --requirement pyproject.toml
- # Generate table of contents and build the Zensical site
- @build:
- just doctoc
- uv run zensical build --clean
- uv run python scripts/gen_llms.py site
- # Generate table of contents for README.md
- @doctoc:
- bunx doctoc README.md
- # Run the template check on every open pull request
- @check-prs:
- gh workflow run pr-template.yml
- # Run the template check on one pull request, for example: just check-pr 388
- @check-pr NUMBER:
- gh workflow run pr-template.yml -f pull_request={{ NUMBER }}
- # Dry run of the template check on every open pull request (logs only, changes nothing)
- @check-prs-dry:
- gh workflow run pr-template.yml -f dry_run=true
- # Dry run of the template check on one pull request, for example: just check-pr-dry 388
- @check-pr-dry NUMBER:
- gh workflow run pr-template.yml -f pull_request={{ NUMBER }} -f dry_run=true
- # Serve the site with live reload on port 8000
- @serve:
- uv run zensical serve --dev-addr localhost:8000
- # Run linting on all files
- @lint *ARGS:
- # -uv --quiet tool run curlylint _layouts/
- # -bunx awesome-lint README.md
- uv tool run --with pre-commit-uv pre-commit run {{ ARGS }} --all-files
- # Remove the generated site
- @clean:
- rm -rf site
|