docs: Make uv the preferred installation method
Description
Updates the installation documentation to make uv the preferred and fastest installation method.
Resolves #1940
Changes Made
-
✨ New Option 1: Native install with uv (marked as fastest method)
- Added uv installation instructions
- Documented both
uv sync(using lockfile) anduv pip install cartography - All commands use
uv run(e.g.,uv run cartography,uv run cartography-rules)
-
🔄 Reordered installation options to prioritize uv:
- Option 1: Native install with uv (fastest) ⭐ NEW
- Option 2: Run docker-compose (previously Option 1)
- Option 3: Manually run 2 containers (previously Option 2)
- Option 4: Native install with pip (previously Option 3)
-
📝 Updated Option 4 (pip method) to include a note recommending uv for better performance
-
🔗 Added cross-references between options for better navigation
Why This Change?
As mentioned in #1940, the project now uses uv for package management. With uv's significantly faster installation times (often 10-100x faster than pip), it makes sense to recommend it as the primary installation method. For many developers, uv is now fast enough that it's preferred over docker-compose.
Testing
- [x] Verified all markdown syntax is correct
- [x] Checked that all internal links and references work
- [x] Confirmed all code blocks use proper bash syntax highlighting
- [x] Ensured all uv commands follow best practices from uv documentation
Screenshots
The documentation now clearly presents uv as Option 1 with comprehensive setup instructions, making it easy for new users to get started with the fastest installation method.