How lancedb/docs works
1. This repository is a documentation site, not the product runtime itself. The center of gravity is docs/, which contains Mintlify-authored MDX pages, site configuration, static assets, and generated content for LanceDB topics.
2. The docs are organized by product surface area: quickstart, tables, storage, indexing, search, reranking, embeddings, integrations, enterprise, Geneva, API reference, tutorials, and datasets. These sections map directly to the navigation defined in docs/docs.json.
3. docs/docs.json is the top-level site/navigation boundary. Mintlify uses it to build the sidebar and page structure, while docs/static/ provides images, CSS, and other assets referenced from the pages.
4. A major architectural pattern is “tested code snippets as documentation.” The language-specific example suites in tests/py, tests/ts, and tests/rs are the source of truth for code blocks. scripts/mdx_snippets_gen.py converts those tested snippets into MDX under docs/snippets/, and the Makefile exposes this as make py, make ts, make rs, or make snippets.
5. The snippet pipeline is intentionally one-way: tests validate the examples, then generated MDX is imported into pages via <CodeBlock>-style usage. This keeps docs examples aligned with working Python, TypeScript, and Rust APIs rather than hand-maintained prose snippets.
6. Dataset documentation is another generated subsystem. scripts/sync_hf_datasets.py reads scripts/hf_datasets.yaml, fetches upstream HF_DATASET_CARD.md files from the lance-format/lance-huggingface GitHub repo, rewrites them into Mintlify-compatible MDX, updates docs/datasets/*.mdx, refreshes docs/datasets/index.mdx, and keeps the Datasets sidebar section in sync.
7. The API reference is handled separately under docs/api-reference/, with the REST schema stored in docs/api-reference/rest/openapi.yml. A GitHub Actions workflow (.github/workflows/sync-openapi.yml) keeps that spec synchronized, so the reference docs remain tied to the current API contract.
8. CI and automation live in .github/workflows/. docs-ci.yml is the main documentation validation pipeline, covering site correctness and likely link/content checks. These workflows are the release boundary for changes to docs content and generated artifacts.
9. The repo also contains a dedicated documentation-audit workflow under workflows/docs-audit/. That is a separate Python toolchain with its own config, prompts, manifests, parser, visibility logic, and tests. It appears to run periodic audits of documentation coverage/quality, including enterprise-specific gap detection, and uses OpenAI plus an internal enterprise store abstraction.
10. Tutorials under docs/tutorials/ are a second-order content layer: they mix narrative docs with runnable example code and sometimes companion files like config.py, main.py, and requirements.txt. These are closer to end-to-end recipes than reference pages.
11. The skills/ and workflows/docs-audit/skills/ directories contain authoring guidance for automation and AI-assisted workflows. They are not runtime code paths, but they shape how docs are generated, reviewed, and audited.
12. In architecture-diagram terms, the repository has three main flows: authoring flow from MDX/editable content into Mintlify; generation flow from tests/upstream sources into docs/snippets/ and docs/datasets/; and validation/automation flow through GitHub Actions and the docs-audit toolchain. The boundaries are clear: source content, generated docs, and CI/audit automation.
Main entry points: docs.json Sidebar · docs-ci.yml Docs CI · snippets Snippets · docs-audit Docs audit
Components 28
Docs site
Mintlify-authored documentation content and site structure.
- Home · Top-level documentation entry point and overview page.
docs/index.mdx - Sidebar · Mintlify navigation and page structure boundary.
docs/docs.json - Static assets · Images, styles, and other shared site assets.
docs/static - Quickstart · Getting-started content for the core product surface.
docs/quickstart.mdx - Tables · Table creation, schema, updates, consistency, and versioning docs.
docs/tables - Storage · Storage configuration and persistence documentation.
docs/storage - Indexing · Vector, scalar, full-text, GPU, quantization, and reindexing docs.
docs/indexing - Search · Filtering, vector, full-text, hybrid, SQL, and multivector search docs.
docs/search - Reranking · Reranking strategies, evaluation, and combination methods.
docs/reranking - Embeddings · Embedding quickstart and embedding-specific guidance.
docs/embedding - Integrations · Third-party AI, data, embedding, and reranking integrations.
docs/integrations - Enterprise · Enterprise architecture, deployment, benchmarks, and security.
docs/enterprise - Geneva · Geneva deployment, jobs, UDFs, and operational reference.
docs/geneva - API reference · API reference landing area for product contracts.
docs/api-reference - Tutorials · End-to-end tutorials and applied workflows.
docs/tutorials - OpenAPI spec · REST API contract used by the reference docs.
docs/api-reference/rest/openapi.yml
Generated content
Docs artifacts produced from tested examples and upstream sources.
- Datasets · Generated dataset pages synced from upstream dataset cards.
docs/datasets - Snippets · Generated tested code snippets imported into MDX pages.
docs/snippets - Example tests · Python, TypeScript, and Rust snippet source-of-truth test suites.
tests - Snippet generator · Converts tested examples into reusable MDX snippet blocks.
scripts/mdx_snippets_gen.py - Dataset sync · Fetches upstream dataset cards and rewrites them into Mintlify MDX.
scripts/sync_hf_datasets.py - HF config · Dataset source list used by the sync pipeline.
scripts/hf_datasets.yaml
Automation
CI, sync jobs, and audit tooling that validate or refresh docs.
- Docs CI · Primary documentation validation workflow.
.github/workflows/docs-ci.yml - OpenAPI sync · Workflow that keeps the REST schema synchronized.
.github/workflows/sync-openapi.yml - Docs audit · Independent docs quality and coverage audit system.
workflows/docs-audit
Authoring guidance
Human and AI authoring instructions that shape documentation workflows.
- Writing guide · Documentation writing and automation guidance for contributors.
WRITING.md - Docs writer · Authoring guidance for docs generation and review workflows.
skills/docs-writer/SKILL.md - Audit skills · Specialized skills for docs-audit enterprise summaries and manifest authoring.
workflows/docs-audit/skills
Connections 35
- Sidebar → Home: navigates · Sidebar structure points users to the docs landing page.
- Sidebar → Quickstart: indexes · Navigation defines the quickstart section.
- Sidebar → Tables: indexes · Navigation defines the tables section.
- Sidebar → Storage: indexes · Navigation defines the storage section.
- Sidebar → Indexing: indexes · Navigation defines the indexing section.
- Sidebar → Search: indexes · Navigation defines the search section.
- Sidebar → Reranking: indexes · Navigation defines the reranking section.
- Sidebar → Embeddings: indexes · Navigation defines the embeddings section.
- Sidebar → Integrations: indexes · Navigation defines the integrations section.
- Sidebar → Enterprise: indexes · Navigation defines the enterprise section.
- Sidebar → Geneva: indexes · Navigation defines the Geneva section.
- Sidebar → API reference: indexes · Navigation defines the API reference area.
- Sidebar → Tutorials: indexes · Navigation defines the tutorials section.
- Sidebar → Datasets: indexes · Navigation defines the datasets section.
- Home → Static assets: uses · Landing pages and components rely on shared assets and styles.
- Example tests → Snippet generator: validates · Tested examples are the source of truth for generated snippets.
- Snippet generator → Snippets: writes · Generator emits MDX snippets used by documentation pages.
- Quickstart → Snippets: imports · Quickstart content consumes generated code examples.
- Tables → Snippets: imports · Table docs consume generated examples.
- Search → Snippets: imports · Search docs consume generated examples.
- Geneva → Snippets: imports · Geneva docs consume generated examples.
- Dataset sync → HF config: reads · Sync job is driven by the upstream dataset manifest.
- Dataset sync → Datasets: writes · Sync job regenerates dataset pages and index content.
- OpenAPI sync → OpenAPI spec: updates · Workflow keeps the REST schema current.
- OpenAPI spec → API reference: drives · OpenAPI contract underpins the API reference pages.
- Docs CI → Sidebar: validates · Documentation CI checks the site structure boundary.
- Docs CI → Snippets: validates · CI verifies generated snippets and docs content.
- Docs CI → Datasets: validates · CI verifies generated dataset docs.
- Docs CI → OpenAPI spec: validates · CI checks the API reference contract artifacts.
- Docs CI → Static assets: validates · CI checks site assets used by the docs.
- Docs audit → Home: audits · Separate toolchain audits documentation quality and coverage.
- Docs audit → Enterprise: focuses · Audit tooling includes enterprise-specific coverage checks.
- Writing guide → Docs writer: guides · Repo writing guidance supports docs authoring workflows.
- Docs writer → Docs CI: supports · Authoring guidance is shaped around validation constraints.
- Audit skills → Docs audit: supports · Skills package supports the audit toolchain and summaries.