Commit Graph
2 Commits
Author SHA1 Message Date
Lucia CerchieandLucia Cerchie 623777389e fix(docs): unblock nightly eval preparation for Firecrawl (#5309)
The nightly Agent Evals workflow stops during documentation preparation
because the Firecrawl example names a fixed Enterprise edition. Use the
unversioned integrations URL and regenerate the snippet so the
development composer accepts the example.

This fixes the preparation error in [run
46482397051](https://github.com/lancedb/docs/actions/runs/46482397051).
The public URL currently redirects to the same integrations page.

## Checks completed

- Reproduced the composer failure with the exact three source revisions
from the failed run.
- Passed documentation assembly, development composition, and skill
packaging after the change.
- Passed Ruff formatting, Ruff lint, and `git diff --check`.
- Confirmed that the public URL redirects and returns HTTP 200.

The live Firecrawl example and full eval suite were not run. The
Firecrawl example requires a personal API key and consumes service
credits.

## Clicktesting

Required tools: Git, GitHub CLI, GNU Make, uv, Node.js 20 or later, and
npm. Use your own GitHub account with read access to `lancedb/docs` and
`lancedb/sophon`. No service secrets are required for these
documentation checks.

Start in an empty directory. Authenticate with your own account, then
obtain the branch and the build inputs:

```bash
gh auth login
gh repo clone lancedb/lancedb lancedb
git -C lancedb switch --track origin/fix/nightly-firecrawl-url
gh repo clone lancedb/docs docs
git -C docs checkout 1a2a108f590405ae7dcec16da098c8c94f75469b
gh repo clone lancedb/sophon sophon
git -C sophon checkout d471a248ab3e80e08b92c432c969027643dee33e
npm install --global mint@4.2.888
uv python install 3.13
cd docs
export LANCEDB_DOCS_ROOT=../lancedb/docs/web
export SOPHON_DOCS_ROOT=../sophon/docs/web
make assemble
uv run --no-project --python 3.13 --with pyyaml python scripts/compose.py --development build/site --output build/nightly
make package-skill
```

Expected result: all three build commands succeed. Composition must not
report that Firecrawl code uses another edition.

Start the documentation application from the generated directory:

```bash
cd build/nightly
mint dev --port 3000
```

Open
`http://localhost:3000/enterprise/development/integrations/data/firecrawl`.
Find “Crawl a site.” Confirm that its Python example uses
`https://docs.lancedb.com/integrations`.

In a second terminal, check the live destination:

```bash
curl -sSL -o /dev/null -w '%{http_code} %{url_effective}\n' https://docs.lancedb.com/integrations
```

Expected result: HTTP 200 and the current edition's integrations URL.

Co-authored-by: Lucia Cerchie <cerchie@Lucias-MacBook-Pro.local>
2026-12-02 05:59:55 -08:00
Juampi 0ba8b6f0a8 docs: add Firecrawl integration page (#4706)
I work at Firecrawl. This adds a Firecrawl page to Integrations > Data
Platforms & Frameworks: a Python recipe that crawls a site with
Firecrawl, stores the pages as Markdown chunks with their source URL in
a LanceDB table that embeds them through the embedding registry,
searches the table, and then adds web search results to the same table.

It follows the docs workflow in CONTRIBUTING.md:

- The example is a test, `docs/web-tests/py/test_firecrawl.py`, split
into five `--8<--` snippets. Like the other integration snippets that
need a provider key, it skips unless `FIRECRAWL_API_KEY` is set.
- `docs/web/snippets/firecrawl.mdx` is generated from it with `uv run
docs/web-tests/mdx_snippets_gen.py -s docs/web-tests/py -s
docs/web-tests/ts -s docs/web-tests/rs -o docs/web/snippets`. The
generator also rewrites other snippet files on current `main` without
this change, so I left those out.
- `docs/web/integrations/data/firecrawl.mdx` imports the snippets with
`<CodeBlock>` like the dlt page, and every heading has an explicit
`{#anchor}`.
- `docs/web/docs.json` adds the page at the end of the Data Platforms &
Frameworks group.

The embedding function is `sentence-transformers` with
`all-MiniLM-L6-v2`, so the recipe needs no API key besides Firecrawl's.
Each Firecrawl call passes `integration="_lancedb"`, a label that tells
Firecrawl a request came from this guide; the page says it is optional.
It needs `firecrawl-py` 4.3.3 or later.

## Testing

```
$ FIRECRAWL_API_KEY=... pytest docs/web-tests/py/test_firecrawl.py -v
test_firecrawl.py::test_firecrawl_crawl_and_search PASSED     (lancedb 0.40.0, Python 3.12)
$ pytest docs/web-tests/py/test_firecrawl.py -rs              (no key)
SKIPPED [1] Set FIRECRAWL_API_KEY to run this integration snippet
$ ruff format --check docs/web-tests/py/test_firecrawl.py && ruff check docs/web-tests/py/test_firecrawl.py
1 file already formatted
All checks passed!
```

Regenerating the snippets from the test produces the same
`docs/web/snippets/firecrawl.mdx`. I have not run the Mintlify site
checks (`mint validate`, broken-links), so please run them in CI or on
your side.

I drafted this with an AI coding assistant and ran the test above
myself.
2026-11-30 21:13:16 +08:00