From 3d187ddf58e0140c20b9750a006f7d0f579111b9 Mon Sep 17 00:00:00 2001 From: Brendan Clement Date: Mon, 5 Oct 2026 13:25:34 -0700 Subject: [PATCH] docs: point the docs tests at the moved static assets The quickstart and Camelot tests still read docs/static/..., which moved to docs/web/static/..., so both failed with FileNotFoundError. --- docs/web-tests/py/test_build_with_ai_agents.py | 2 +- docs/web-tests/py/test_quickstart.py | 2 +- docs/web/snippets/quickstart.mdx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/web-tests/py/test_build_with_ai_agents.py b/docs/web-tests/py/test_build_with_ai_agents.py index 5b9091eaa..1ab7c9cdc 100644 --- a/docs/web-tests/py/test_build_with_ai_agents.py +++ b/docs/web-tests/py/test_build_with_ai_agents.py @@ -90,7 +90,7 @@ if __name__ == "__main__": def test_camelot_oss_ingestion(tmp_path): source = Path( - "docs/static/assets/tutorials/build-with-ai-agents/camelot/data/camelot.json" + "docs/web/static/assets/tutorials/build-with-ai-agents/camelot/data/camelot.json" ) table = ingest_oss( source, diff --git a/docs/web-tests/py/test_quickstart.py b/docs/web-tests/py/test_quickstart.py index 207e6540f..46e8df901 100644 --- a/docs/web-tests/py/test_quickstart.py +++ b/docs/web-tests/py/test_quickstart.py @@ -101,7 +101,7 @@ def test_quickstart(db_path_factory): # --8<-- [start:quickstart_multimodal_bytes] from pathlib import Path - image_path = Path("docs/static/assets/images/quickstart/sir-lancelot.jpg") + image_path = Path("docs/web/static/assets/images/quickstart/sir-lancelot.jpg") image_bytes = image_path.read_bytes() multimodal_table = db.create_table( diff --git a/docs/web/snippets/quickstart.mdx b/docs/web/snippets/quickstart.mdx index 810a0c0b5..98eef9735 100644 --- a/docs/web/snippets/quickstart.mdx +++ b/docs/web/snippets/quickstart.mdx @@ -16,7 +16,7 @@ export const PyQuickstartData = "data = [\n {\n \"id\": \"1\",\n export const PyQuickstartDataAsync = "data = [\n {\n \"id\": \"1\",\n \"name\": \"King Arthur\",\n \"role\": \"King\",\n \"description\": \"Leader of Camelot and wielder of Excalibur.\",\n \"stats\": {\"strength\": 4, \"magic\": 1, \"leadership\": 5, \"wisdom\": 4},\n \"vector\": [0.7, 0.1, 0.9, 0.7],\n },\n {\n \"id\": \"2\",\n \"name\": \"Merlin\",\n \"role\": \"Wizard\",\n \"description\": \"Advisor and prophet with deep magical knowledge.\",\n \"stats\": {\"strength\": 2, \"magic\": 5, \"leadership\": 4, \"wisdom\": 5},\n \"vector\": [0.2, 0.9, 0.4, 0.9],\n },\n {\n \"id\": \"3\",\n \"name\": \"Sir Lancelot\",\n \"role\": \"Knight\",\n \"description\": \"Legendary knight known for courage and combat skill.\",\n \"stats\": {\"strength\": 5, \"magic\": 1, \"leadership\": 3, \"wisdom\": 3},\n \"vector\": [0.9, 0.1, 0.5, 0.4],\n },\n]\n"; -export const PyQuickstartMultimodalBytes = "from pathlib import Path\n\nimage_path = Path(\"docs/static/assets/images/quickstart/sir-lancelot.jpg\")\nimage_bytes = image_path.read_bytes()\n\nmultimodal_table = db.create_table(\n \"character_images\",\n data=[\n {\n \"id\": \"lancelot\",\n \"description\": \"Portrait of Sir Lancelot\",\n \"image\": image_bytes,\n \"vector\": [0.9, 0.1, 0.5, 0.4],\n }\n ],\n mode=\"overwrite\",\n)\n"; +export const PyQuickstartMultimodalBytes = "from pathlib import Path\n\nimage_path = Path(\"docs/web/static/assets/images/quickstart/sir-lancelot.jpg\")\nimage_bytes = image_path.read_bytes()\n\nmultimodal_table = db.create_table(\n \"character_images\",\n data=[\n {\n \"id\": \"lancelot\",\n \"description\": \"Portrait of Sir Lancelot\",\n \"image\": image_bytes,\n \"vector\": [0.9, 0.1, 0.5, 0.4],\n }\n ],\n mode=\"overwrite\",\n)\n"; export const PyQuickstartOpenTable = "table = db.open_table(\"characters\")\n";