diff --git a/ci/tests/test_extract_sdk_doc_links.py b/ci/tests/test_extract_sdk_doc_links.py index 0e4c5fe97..0efafa66b 100644 --- a/ci/tests/test_extract_sdk_doc_links.py +++ b/ci/tests/test_extract_sdk_doc_links.py @@ -15,7 +15,7 @@ class TestExtractSdkDocLinks(unittest.TestCase): def test_extracts_all_links_from_repo_docs_rs(self) -> None: urls = extract_doc_links() self.assertIn( - "https://docs.lancedb.com/performance#compaction-and-cleanup", + "https://docs.lancedb.com/maintenance/compaction#when", urls, ) self.assertIn( @@ -38,7 +38,7 @@ class TestExtractSdkDocLinks(unittest.TestCase): self.assertEqual(rc, 0) content = out.read_text(encoding="utf-8") self.assertIn( - "", + "", content, ) diff --git a/python/python/tests/test_doc_links.py b/python/python/tests/test_doc_links.py index 89f5a4e35..5c22b42fd 100644 --- a/python/python/tests/test_doc_links.py +++ b/python/python/tests/test_doc_links.py @@ -13,7 +13,7 @@ def test_python_sdk_utm_content_and_doc_links(tmp_path): expected_content = f"utm_content=python-{_core_version}" assert ( compaction_url - == f"https://docs.lancedb.com/performance?utm_source=lancedb_sdk&utm_medium=warning&utm_campaign=compaction&{expected_content}#compaction-and-cleanup" + == f"https://docs.lancedb.com/maintenance/compaction?utm_source=lancedb_sdk&utm_medium=warning&utm_campaign=compaction&{expected_content}#when" ) db = lancedb.connect(tmp_path) diff --git a/rust/lancedb/src/docs.rs b/rust/lancedb/src/docs.rs index d69a1612c..eeaee826d 100644 --- a/rust/lancedb/src/docs.rs +++ b/rust/lancedb/src/docs.rs @@ -157,7 +157,7 @@ impl DocLink { /// edition. pub const fn path(self) -> &'static str { match self { - Self::Compaction => "/performance", + Self::Compaction => "/maintenance/compaction", Self::Reindexing => "/indexing/reindexing", Self::Sql => "/search/sql", Self::BranchDiff | Self::BranchCherryPick => "/tables/branching", @@ -176,7 +176,7 @@ impl DocLink { /// Optional `#anchor` fragment on the target documentation page. pub const fn anchor(self) -> Option<&'static str> { match self { - Self::Compaction => Some("compaction-and-cleanup"), + Self::Compaction => Some("when"), Self::Reindexing => Some("incremental-reindexing"), Self::BranchDiff => Some("diff-a-branch"), Self::BranchCherryPick => Some("merge-a-branch"),