justfile 866 B

123456789101112131415161718192021222324252627282930313233343536
  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. # Generate table of contents for README.md
  16. @doctoc:
  17. bunx doctoc README.md
  18. # Serve the site with live reload on port 8000
  19. @serve:
  20. uv run zensical serve --dev-addr localhost:8000
  21. # Run linting on all files
  22. @lint *ARGS:
  23. # -uv --quiet tool run curlylint _layouts/
  24. # -bunx awesome-lint README.md
  25. uv tool run --with pre-commit-uv pre-commit run {{ ARGS }} --all-files
  26. # Remove the generated site
  27. @clean:
  28. rm -rf site