Skip to content

docs: include lance-context in the full website build - #8014

Merged
jackye1995 merged 2 commits into
lance-format:mainfrom
beinan:docs/add-lance-context
Jul 27, 2026
Merged

docs: include lance-context in the full website build#8014
jackye1995 merged 2 commits into
lance-format:mainfrom
beinan:docs/add-lance-context

Conversation

@beinan

@beinan beinan commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Summary

lance-context has a docs/src tree in the same shape as the other subprojects, but nothing pulls it into lance.org. This wires it in alongside spark/ray/trino so its docs publish the same way they do.

Context: I originally set up a standalone GitHub Pages site on the lance-context repo, and @jackye1995 pointed out that the org deliberately doesn't enable per-subproject Pages — public docs should build into lance.org instead. This is that change; the matching lance-context-side PR is lance-format/lance-context#212.

Changes

Follows the existing pattern exactly, in both scripts:

  • LANCE_CONTEXT_REPO (default $HOME/oss/lance-context), documented in the usage block like the others
  • docs/srcdocs/src/integrations/context, adding the nav entry only when the checkout is present, so a partial local build still works and just warns
  • CONTRIBUTING.mdcommunity/project-specific/context.md
  • clean-full-website.sh removes both, keeping make/clean symmetric

Verification

Ran the real thing rather than eyeballing the diff:

  • make-full-website.sh against an actual lance-context checkout — all 12 pages copied, integrations/.pages nav entry generated, no warning for context
  • mkdocs build succeeds; pages render under site/integrations/context/ with correct nav nesting (context/guide/quickstart/ etc. are linked from the integrations index)
  • clean-full-website.sh removes everything it added

Note on placement

I put it under Integrations since that's where the other subprojects live and it needs no new top-level section. It's arguably not an "integration" in the same sense as Spark or Trino — it's a storage engine built on Lance — so if you'd prefer a different home, say the word and I'll move it.

🤖 Generated with Claude Code

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 <noreply@anthropic.com>
@github-actions github-actions Bot added A-docs Documentation documentation Improvements or additions to documentation labels Jul 27, 2026
beinan added a commit to lance-format/lance-context that referenced this pull request Jul 27, 2026
## Summary

Switches the docs from a standalone GitHub Pages site to lance.org,
which is how the other subprojects publish.

I'd previously set up Pages here (#203, #206) and asked for the repo's
Pages setting to be enabled. @jackye1995 pointed out that the org
doesn't enable per-subproject Pages by design — public docs should build
into lance.org. He's right, and it turns out the docs are already in
exactly the right shape for it: lance.org is built from the `lance`
repo, whose `make-full-website.sh` copies each subproject's `docs/src`
into the main site.

So the content stays; only the publishing route changes.

## Changes

- **Add `.pages` nav files.** The main site uses the `awesome-pages`
plugin, so navigation must come from `.pages` files rather than a
hardcoded `nav:` block — otherwise these pages render unordered under
lance.org. Enabling the plugin here too keeps local preview and the
published site on one source of truth.
- **Drop the hardcoded `nav:` from `mkdocs.yml`**, now redundant.
- **`site_url` → `https://lance.org/integrations/context/`**, the
address the docs will actually be served from.
- **Remove `.github/workflows/docs.yml`.** It deployed to a Pages site
that doesn't exist and can't be created without an org-level policy
change, so it only ever produced a red X on `main`.

## Verification

Ran `lance/docs/make-full-website.sh` against this checkout and built
the full site: all 12 pages land under `site/integrations/context/`, and
the nav nests correctly (`Quickstart`, `Rollouts (RolloutDB)`, `Rollout
schema`, ... all appear in the sidebar).

## Depends on

lance-format/lance#8014 — until that merges, this repo's docs simply
aren't picked up by the website build. Nothing here breaks in the
meantime; `mkdocs build --strict` still passes locally for preview.

## Follow-ups from the same conversation

Two other things Jack raised, not in this PR:

- **Developer guide → `CONTRIBUTING.md`**, which also auto-builds into
lance.org. The lance-side PR already wires up the copy rule; this repo
has no `CONTRIBUTING.md` yet, so that's a separate change.
- **Discussions** are moving to lance-format/lance/discussions org-wide.

Also worth cleaning up once this lands: the now-unused `gh-pages` branch
on this repo.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
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 <noreply@anthropic.com>
@beinan

beinan commented Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

Pushed a second commit: the first one taught make-full-website.sh about LANCE_CONTEXT_REPO, but publish-site never checked the repo out or set the variable — so CI would have taken the warn_missing_repo path and silently skipped the docs. Now adds the checkout step and the env var alongside the others.

Worth noting the failure mode: the script's graceful degradation is right for local partial builds, but it means an omission in the workflow fails quietly rather than loudly. Easy to miss.

@github-actions github-actions Bot added the A-ci CI / build workflows label Jul 27, 2026

@jackye1995 jackye1995 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me!

@jackye1995
jackye1995 merged commit c3b2ddb into lance-format:main Jul 27, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ci CI / build workflows A-docs Documentation documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants