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