mirror of
https://github.com/lancedb/lancedb.git
synced 2026-12-04 16:20:55 +00:00
fix: point the compaction warning at the current docs page (#4913)
Refs #4371 The link checker flags `https://docs.lancedb.com/performance#compaction-and-cleanup` because that section no longer exists. Compaction has its own page now, and its "When to run it" section (`#when`) covers the warning this link is attached to: tables with many small fragments. This points `DocLink::Compaction` at `/maintenance/compaction#when` and updates the two tests that hard-code the URL. The anchor exists on the published site and in `docs/web/maintenance/compaction.mdx`, so `test_all_doc_links_resolve_in_repo_docs` still holds. Tests: `python -m unittest ci.tests.test_extract_sdk_doc_links` and `cargo test -p lancedb --lib docs::tests::` pass locally. Co-authored-by: Xuanwo <github@xuanwo.io>
This commit is contained in:
1 parent
fb853bae75
commit
ec230318f6
3 files changed
+5
-5
No files matched your search
@@ -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"),
|
||||
|
||||
Reference in new issue
Block a user