Chapter: README (docs/README.md)
Lance Documentation
This directory contains the documentation for Lance, built with MkDocs and a
custom theme (theme/) implementing the Lance Docs design.
Getting Started with uv
Setup
1. Install uv if you haven't already:
curl -LsSf https://astral.sh/uv/install.sh | sh2. That's it! No manual dependency installation needed.
Building Documentation
To build and serve the documentation locally:
make serveThe documentation will be available at http://localhost:8000
Building for Production
make buildThis will create a site/ directory with the built documentation.
Managing Dependencies
#### Adding Dependencies
Add a dependency and update pyproject.toml
uv add <package>Add a dev dependency
uv add --dev <package>#### Manual Sync (if needed)
make sync#### Upgrading Dependencies
Upgrade a specific package
uv add <package>@latestUpgrade all dependencies
uv sync --upgradeProject Structure
- src/ - Source markdown files for documentation
- theme/ - Custom MkDocs theme implementing the Lance Docs design
(templates in *.html, styles/behaviour in theme/assets/)
- mkdocs.yml - MkDocs configuration
- pyproject.toml - Python project configuration (uv compatible)
Theme Notes
- Light/dark mode follows prefers-color-scheme, is toggleable from the
header, and persists in localStorage (ld-theme).
- The GitHub star count is fetched from the public GitHub API and cached in
localStorage for an hour; the button degrades to a plain link offline.
- Search is a lightweight overlay (/ or Cmd/Ctrl+K) over the standard
search plugin index — no external search dependencies.
- Mermaid diagrams render client-side; the library is loaded from a CDN only
on pages that contain a diagram.