mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-26 12:33:59 +00:00
Supersedes #5179 (which only bumped `mkdocs-material` to `9.7.7` in `docs/requirements.txt`) by upgrading `mkdocs-material` to `9.8.2` together with compatible `mkdocstrings` tooling across both the SDK Pages workflow and the Python `docs` extra, while retaining external type cross-references. ## Changes - **`docs/requirements.txt`** (used by `.github/workflows/docs.yml`): pin `mkdocs-material==9.8.2`, update `mkdocstrings[python]>=1.0.7,<2` and `mkdocs-autorefs>=1.4`, remove the legacy `griffe>=0.40,<1.0` constraint so the Python handler selects its compatible Griffe dependency, and declare `pymdown-extensions>=11.0.1` explicitly (also required by Material `9.8.2` and loaded directly by the site's Markdown extensions). - **`python/pyproject.toml` & `python/uv.lock`**: raise the `docs` extra floors to `mkdocs-material>=9.8.2` and `mkdocstrings[python]>=1.0.7,<2`. Only `mkdocs-material` (`9.7.6` -> `9.8.2`) and `mkdocstrings` (`1.0.4` -> `1.0.7`) change in `python/uv.lock` (lock revision 3 preserved; other extras unchanged). - **`docs/mkdocs.yml`**: switch the `mkdocstrings` Python handler key from `import` to `inventories` so external type links remain active with `mkdocstrings-python` 2.x, and update the Pydantic inventory URL to the canonical `https://pydantic.dev/docs/validation/latest/objects.inv`. ## Verification - **SDK Pages workflow path (CPython 3.11.18)**: ran both `pip install` steps from `.github/workflows/docs.yml` (resolving `mkdocs-material 9.8.2`, `mkdocstrings 1.0.8`, `mkdocstrings-python 2.0.11`, `mkdocs-autorefs 1.4.5`, `griffelib 2.4.1`, `pymdown-extensions 13.1.2`), verified `python -m pip check`, and ran `PYTHONPATH=. mkdocs build` from `docs/` (exit 0 in 9.65s). - **Rendered HTML and links check**: inspected `docs/site/python/python/index.html` (188 API directive headings, 1,881 rendered signatures, 2,121 highlighted blocks). Verified internal cross-references for representative sync/async APIs and indices (`lancedb.connect`, `lancedb.connect_async`, `lancedb.table.Table.search`, `lancedb.table.AsyncTable.search`, `lancedb.query.BooleanQuery`, `lancedb.schema.blob_array`, `lancedb.index.FTS`), rendering of `lancedb.rerankers.TypeSafeReranker`, and external inventory links in the generated HTML (193 Arrow links including `pyarrow.Table`, 40 Pydantic links including `pydantic.BaseModel`; all three configured inventories—Arrow, Pandas, and Pydantic—loaded cleanly). - **Locked Python `docs` extra (CPython 3.11.18)**: verified `uv lock --check --python 3.11` and built docs in a separate `uv sync --locked --no-install-project --extra docs` environment (`mkdocs-material 9.8.2`, `mkdocstrings 1.0.7`, `mkdocstrings-python 2.0.5`, `pymdown-extensions 11.0.1`) with the Swagger and redirects plugins added; `uv pip check`, `PYTHONPATH=. mkdocs build`, and the HTML API/external link checks passed (188 headings, 1,880 signatures, 2,120 highlighted blocks, 197 Arrow and 40 Pydantic external links). - **Warnings**: the build is not warning-free; both `mkdocs build` runs exit 0 with pre-existing `mkdocs_autorefs` warnings for duplicate TypeScript `list` anchors and several unresolved Python docstring cross-references (and `uv lock --check` still reports the pre-existing yanked-version warning for `charset-normalizer==3.4.8`).
158 lines
4.8 KiB
YAML
158 lines
4.8 KiB
YAML
site_name: LanceDB
|
|
site_url: https://lancedb.github.io/lancedb/
|
|
repo_url: https://github.com/lancedb/lancedb
|
|
edit_uri: https://github.com/lancedb/lancedb/tree/main/docs/src
|
|
repo_name: lancedb/lancedb
|
|
docs_dir: src
|
|
watch:
|
|
- src
|
|
- ../python/python
|
|
|
|
theme:
|
|
name: "material"
|
|
logo: assets/logo.png
|
|
favicon: assets/favicon.ico
|
|
palette:
|
|
# Palette toggle for light mode
|
|
- scheme: lancedb
|
|
primary: custom
|
|
toggle:
|
|
icon: material/weather-night
|
|
name: Switch to dark mode
|
|
# Palette toggle for dark mode
|
|
- scheme: slate
|
|
primary: custom
|
|
toggle:
|
|
icon: material/weather-sunny
|
|
name: Switch to light mode
|
|
features:
|
|
- content.code.copy
|
|
- content.tabs.link
|
|
- content.action.edit
|
|
- content.tooltips
|
|
- toc.follow
|
|
- navigation.top
|
|
- navigation.footer
|
|
- navigation.tracking
|
|
- navigation.instant
|
|
- content.footnote.tooltips
|
|
icon:
|
|
repo: fontawesome/brands/github
|
|
annotation: material/arrow-right-circle
|
|
|
|
plugins:
|
|
- search
|
|
- autorefs
|
|
- mkdocstrings:
|
|
handlers:
|
|
python:
|
|
# Ensure the handler points to the real package root
|
|
# so it reads local sources at python/python/lancedb
|
|
paths: [../python/python]
|
|
options:
|
|
docstring_style: numpy
|
|
docstring_options:
|
|
# Attributes documented in a `Parameters` section, and pydantic
|
|
# dataclasses whose `__init__` griffe cannot see statically, both
|
|
# trip this check. It reports nothing actionable here.
|
|
warn_unknown_params: false
|
|
heading_level: 3
|
|
show_signature_annotations: true
|
|
show_root_heading: true
|
|
show_docstring_examples: true
|
|
show_docstring_attributes: false
|
|
show_docstring_other_parameters: true
|
|
show_symbol_type_heading: true
|
|
show_labels: false
|
|
show_if_no_docstring: true
|
|
show_source: false
|
|
members_order: source
|
|
docstring_section_style: list
|
|
signature_crossrefs: true
|
|
separate_signature: true
|
|
filters:
|
|
- "!^_"
|
|
inventories:
|
|
# for cross references
|
|
- https://arrow.apache.org/docs/objects.inv
|
|
- https://pandas.pydata.org/docs/objects.inv
|
|
- https://pydantic.dev/docs/validation/latest/objects.inv
|
|
- render_swagger:
|
|
allow_arbitrary_locations: true
|
|
# - redirects:
|
|
# redirect_maps:
|
|
# # Redirect the home page and other top-level markdown files. This enables maximum SEO benefit
|
|
# # other sub-pages are handled by the ingected js in overrides/partials/header.html
|
|
# 'index.md': 'https://lancedb.com/docs/'
|
|
# 'guides/tables.md': 'https://lancedb.com/docs/tables/'
|
|
# 'ann_indexes.md': 'https://lancedb.com/docs/indexing/'
|
|
# 'basic.md': 'https://lancedb.com/docs/quickstart/'
|
|
# 'faq.md': 'https://lancedb.com/docs/faq/'
|
|
# 'embeddings/understanding_embeddings.md': 'https://lancedb.com/docs/embedding/'
|
|
# 'integrations.md': 'https://lancedb.com/docs/integrations/'
|
|
# 'examples.md': 'https://lancedb.com/docs/tutorials/'
|
|
# 'concepts/vector_search.md': 'https://lancedb.com/docs/search/vector-search/'
|
|
# 'troubleshooting.md': 'https://lancedb.com/docs/troubleshooting/'
|
|
# 'guides/storage.md': 'https://lancedb.com/docs/storage/integrations'
|
|
|
|
|
|
|
|
markdown_extensions:
|
|
- admonition
|
|
- footnotes
|
|
- pymdownx.critic
|
|
- pymdownx.caret
|
|
- pymdownx.keys
|
|
- pymdownx.mark
|
|
- pymdownx.tilde
|
|
- pymdownx.details
|
|
- pymdownx.highlight:
|
|
anchor_linenums: true
|
|
line_spans: __span
|
|
pygments_lang_class: true
|
|
- pymdownx.inlinehilite
|
|
- pymdownx.snippets:
|
|
base_path: ..
|
|
dedent_subsections: true
|
|
- pymdownx.superfences
|
|
- pymdownx.tabbed:
|
|
alternate_style: true
|
|
- md_in_html
|
|
- abbr
|
|
- attr_list
|
|
- pymdownx.snippets
|
|
- pymdownx.emoji:
|
|
emoji_index: !!python/name:material.extensions.emoji.twemoji
|
|
emoji_generator: !!python/name:material.extensions.emoji.to_svg
|
|
- markdown.extensions.toc:
|
|
toc_depth: 4
|
|
permalink: true
|
|
permalink_title: Anchor link to this section
|
|
|
|
nav:
|
|
- Documentation:
|
|
- SDK Reference: index.md
|
|
- Python: python/python.md
|
|
- Javascript/TypeScript: js/globals.md
|
|
- Java: java/java.md
|
|
- Rust: https://docs.rs/lancedb/latest/lancedb/index.html
|
|
|
|
extra_css:
|
|
- styles/global.css
|
|
- styles/extra.css
|
|
|
|
extra_javascript:
|
|
- "extra_js/reo.js"
|
|
|
|
extra:
|
|
analytics:
|
|
provider: google
|
|
property: G-B7NFM40W74
|
|
social:
|
|
- icon: fontawesome/brands/github
|
|
link: https://github.com/lancedb/lancedb
|
|
- icon: fontawesome/brands/x-twitter
|
|
link: https://twitter.com/lancedb
|
|
- icon: fontawesome/brands/linkedin
|
|
link: https://www.linkedin.com/company/lancedb
|