justfile 909 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # Default recipe - lists all available recipes
  2. @_default:
  3. just --list
  4. # Run alex linter on README.md to find inconsiderate writing
  5. @alex:
  6. bunx alex README.md
  7. # Install and update dependencies
  8. @bootstrap:
  9. python -m pip install --upgrade pip uv
  10. uv pip install --upgrade --requirement pyproject.toml
  11. # Generate table of contents and build the Zensical site
  12. @build:
  13. just doctoc
  14. uv run zensical build --clean
  15. uv run python scripts/gen_llms.py site
  16. # Generate table of contents for README.md
  17. @doctoc:
  18. bunx doctoc README.md
  19. # Serve the site with live reload on port 8000
  20. @serve:
  21. uv run zensical serve --dev-addr localhost:8000
  22. # Run linting on all files
  23. @lint *ARGS:
  24. # -uv --quiet tool run curlylint _layouts/
  25. # -bunx awesome-lint README.md
  26. uv tool run --with pre-commit-uv pre-commit run {{ ARGS }} --all-files
  27. # Remove the generated site
  28. @clean:
  29. rm -rf site