From fa7e0920fc779601c94d61b9f477ae1d181448a8 Mon Sep 17 00:00:00 2001 From: Beinan Date: Mon, 27 Jul 2026 18:16:12 +0000 Subject: [PATCH 1/2] docs: include lance-context in the full website build lance-context has a docs/src tree in the same shape as the other subprojects, but nothing pulls it into lance.org. Wire it in alongside spark/ray/trino. - LANCE_CONTEXT_REPO (default $HOME/oss/lance-context), documented in the usage block like the others - docs/src -> docs/src/integrations/context, adding the nav entry only when the checkout is present, so a partial local build still works - CONTRIBUTING.md -> community/project-specific/context.md - clean-full-website.sh removes both, keeping make/clean symmetric Verified end-to-end: ran make-full-website.sh against a real lance-context checkout (all 12 pages copied, nav entry generated) and `mkdocs build` succeeds with the pages rendered under site/integrations/context/. Co-Authored-By: Claude --- docs/clean-full-website.sh | 2 ++ docs/make-full-website.sh | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/docs/clean-full-website.sh b/docs/clean-full-website.sh index 2ebe0b31b87..3734fdda0a6 100755 --- a/docs/clean-full-website.sh +++ b/docs/clean-full-website.sh @@ -15,6 +15,7 @@ rm -rf "$docs_src/integrations/duckdb" rm -rf "$docs_src/integrations/spark" rm -rf "$docs_src/integrations/ray" rm -rf "$docs_src/integrations/trino" +rm -rf "$docs_src/integrations/context" rm -f "$docs_src/community/project-specific/.pages" rm -rf "$docs_src/community/project-specific/lance" rm -f "$docs_src/community/project-specific/namespace.md" @@ -22,6 +23,7 @@ rm -f "$docs_src/community/project-specific/namespace-impls.md" rm -f "$docs_src/community/project-specific/ray.md" rm -f "$docs_src/community/project-specific/spark.md" rm -f "$docs_src/community/project-specific/trino.md" +rm -f "$docs_src/community/project-specific/context.md" cat > "$docs_src/format/.pages" <<'EOF' nav: diff --git a/docs/make-full-website.sh b/docs/make-full-website.sh index bb446a2f070..414b3831fb0 100755 --- a/docs/make-full-website.sh +++ b/docs/make-full-website.sh @@ -13,6 +13,7 @@ Override any repo path with the matching environment variable: LANCE_TRINO_REPO LANCE_DUCKDB_REPO LANCE_HUGGINGFACE_REPO + LANCE_CONTEXT_REPO Defaults: LANCE_NAMESPACE_REPO=$HOME/oss/lance-namespace LANCE_NAMESPACE_IMPLS_REPO=$HOME/oss/lance-namespace-impls @@ -21,6 +22,7 @@ Defaults: LANCE_TRINO_REPO=$HOME/oss/lance-trino LANCE_DUCKDB_REPO=$HOME/oss/lance-duckdb LANCE_HUGGINGFACE_REPO=$HOME/oss/lance-huggingface + LANCE_CONTEXT_REPO=$HOME/oss/lance-context EOF } @@ -60,6 +62,7 @@ ray_repo_input=${LANCE_RAY_REPO:-$HOME/oss/lance-ray} trino_repo_input=${LANCE_TRINO_REPO:-$HOME/oss/lance-trino} duckdb_repo_input=${LANCE_DUCKDB_REPO:-$HOME/oss/lance-duckdb} huggingface_repo_input=${LANCE_HUGGINGFACE_REPO:-$HOME/oss/lance-huggingface} +context_repo_input=${LANCE_CONTEXT_REPO:-$HOME/oss/lance-context} copy_docs_dir() { local source_dir="$1" @@ -134,6 +137,7 @@ ray_repo=$(resolve_repo_dir "$ray_repo_input") trino_repo=$(resolve_repo_dir "$trino_repo_input") duckdb_repo=$(resolve_repo_dir "$duckdb_repo_input") huggingface_repo=$(resolve_repo_dir "$huggingface_repo_input") +context_repo=$(resolve_repo_dir "$context_repo_input") "$script_dir/clean-full-website.sh" @@ -265,6 +269,12 @@ else warn_missing_repo "Lance Trino docs" "$trino_repo/docs/src" fi +if copy_docs_dir "$context_repo/docs/src" "$docs_src/integrations/context"; then + integration_entries+=(" - Lance Context: context") +else + warn_missing_repo "Lance Context docs" "$context_repo/docs/src" +fi + { echo "nav:" for entry in "${integration_entries[@]}"; do @@ -305,6 +315,10 @@ if copy_file_if_exists "$trino_repo/CONTRIBUTING.md" "$docs_src/community/projec project_entries+=(" - Lance Trino: trino.md") fi +if copy_file_if_exists "$context_repo/CONTRIBUTING.md" "$docs_src/community/project-specific/context.md"; then + project_entries+=(" - Lance Context: context.md") +fi + { echo "nav:" for entry in "${project_entries[@]}"; do From 3b7706bd7a59d964b39146e6970d928f3722000d Mon Sep 17 00:00:00 2001 From: Beinan Date: Mon, 27 Jul 2026 18:29:06 +0000 Subject: [PATCH 2/2] docs: check out lance-context in the publish-site workflow The previous commit taught make-full-website.sh about LANCE_CONTEXT_REPO, but publish-site never checks the repo out or sets the variable, so CI would take the warn_missing_repo path and silently skip the docs. The script's graceful degradation is right for local partial builds, but it also means an omission here fails quietly rather than loudly. Co-Authored-By: Claude --- .github/workflows/docs-deploy.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index 0733e5ce32c..aeaea0bbcba 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -62,6 +62,11 @@ jobs: with: repository: lance-format/lance-trino path: lance-trino + - name: Checkout lance-context + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + with: + repository: lance-format/lance-context + path: lance-context - name: Configure Git Credentials run: | git config user.name github-actions[bot] @@ -83,6 +88,7 @@ jobs: LANCE_TRINO_REPO: ${{ github.workspace }}/lance-trino LANCE_DUCKDB_REPO: ${{ github.workspace }}/lance-duckdb LANCE_HUGGINGFACE_REPO: ${{ github.workspace }}/lance-huggingface + LANCE_CONTEXT_REPO: ${{ github.workspace }}/lance-context run: | docs/make-full-website.sh - name: Deploy