Skip to content

Conversation

@lachlancollins
Copy link
Member

@lachlancollins lachlancollins commented Dec 5, 2025

🎯 Changes

Adjusts verify-links to ensure links can resolve locally (i.e. as intended), rather than having to resolve 1 level higher

The level adjusting is then handled by the TanStack website in #563

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested this code locally with pnpm test:pr.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).

Summary by CodeRabbit

  • Documentation

    • Reorganized documentation structure and updated internal cross-references for improved navigation consistency.
  • Chores

    • Enhanced link verification tooling to improve documentation maintenance and quality assurance processes.

✏️ Tip: You can customize this high-level summary in your review settings.

@changeset-bot
Copy link

changeset-bot bot commented Dec 5, 2025

⚠️ No Changeset found

Latest commit: 129ff13

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link

coderabbitai bot commented Dec 5, 2025

Walkthrough

This PR reorganizes documentation directory structure by updating relative paths across 40+ markdown files and refactors the link verification script. Changes systematically adjust documentation links from paths like ../../ to ../ or ./ , reflecting a flatter docs hierarchy. The scripts/verify-links.ts script is refactored to improve link validation logic and error reporting.

Changes

Cohort / File(s) Summary
API Documentation - Core Objects
docs/api/core/cell.md, docs/api/core/column.md, docs/api/core/header-group.md, docs/api/core/header.md, docs/api/core/row.md, docs/api/core/table.md
Updated relative links to guide and API references, changing paths from ../../../guide/ to ../../guide/ and cross-references from relative ../ to ./ patterns.
API Documentation - Features
docs/api/features/filters.md, docs/api/features/global-filtering.md, docs/api/features/pinning.md, docs/api/features/row-selection.md
Updated guide reference paths from ../../../guide/ to ../../guide/ and adjusted internal API cross-references.
Framework Documentation
docs/framework/react/guide/table-state.md
Updated example paths from ../../examples/ to ../examples/.
Guide Documentation - Core Concepts
docs/guide/cells.md, docs/guide/columns.md, docs/guide/data.md, docs/guide/header-groups.md, docs/guide/headers.md, docs/guide/rows.md, docs/guide/tables.md
Updated internal API and guide references from ../../api/ and ../../guide/ to ../api/ and ../guide/ respectively. Minor formatting changes in columns.md (dash bullet to blockquote).
Guide Documentation - Features & Operations
docs/guide/column-defs.md, docs/guide/column-faceting.md, docs/guide/column-filtering.md, docs/guide/column-ordering.md, docs/guide/column-pinning.md, docs/guide/column-sizing.md, docs/guide/column-visibility.md, docs/guide/expanding.md, docs/guide/features.md, docs/guide/filters.md, docs/guide/fuzzy-filtering.md, docs/guide/global-faceting.md, docs/guide/global-filtering.md, docs/guide/grouping.md, docs/guide/pagination.md, docs/guide/pinning.md, docs/guide/row-pinning.md, docs/guide/row-selection.md, docs/guide/sorting.md
Updated relative paths from ../../ to ../ for API and example links; adjusted same-directory references from ../ to ./.
Utility & Config
docs/guide/custom-features.md, docs/overview.md
Updated relative paths for example and guide references.
Link Verification Script
scripts/verify-links.ts
Refactored link validation logic: replaced fileExistsForLink with relativeLinkExists, updated error tracking with a global errors array (file, link, resolvedPath, reason), improved fragment/mailto filtering in isRelativeLink, renamed normalizePath to stripExtension, added example path handling for framework-specific examples, reworked error reporting structure.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

  • scripts/verify-links.ts: Complex refactoring with new error tracking, path resolution logic, and example directory handling—requires careful validation of link resolution behavior and error reporting accuracy.
  • Documentation files: Homogeneous link updates across 40+ files that follow consistent patterns and can be spot-checked; changes are purely navigational with no content impact.
  • Areas requiring extra attention:
    • Verify relativeLinkExists correctly resolves paths relative to the file being checked
    • Confirm example path conversion logic correctly maps to /examples/{framework}/ directories
    • Validate error messages and conditions in new reasons field align with actual link issues
    • Spot-check a few markdown files to ensure link corrections are accurate (especially cross-references between API and guide docs)

Possibly related PRs

Poem

🐰 With whiskers twitching, paths rearranged,
From ../../ to ../, docs reorganized, changed,
Links now shorter, structure made light,
A flatter garden, much more right! 🌿

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title 'docs: correct local relative links' accurately summarizes the main change: correcting relative link paths in documentation files and the verify-links script.
Description check ✅ Passed The description adequately explains the changes (adjusting verify-links for local link resolution) and notes the accompanying TanStack website PR, but the checklist items remain unchecked, which may indicate incomplete testing.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch docs-relative-links

Comment @coderabbitai help to get the list of available commands and usage tips.

@nx-cloud
Copy link

nx-cloud bot commented Dec 5, 2025

View your CI Pipeline Execution ↗ for commit 129ff13

Command Status Duration Result
nx affected --targets=test:sherif,test:knip,tes... ✅ Succeeded 38s View ↗
nx run-many --targets=build --exclude=examples/** ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-12-05 10:53:56 UTC

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 5, 2025

More templates

@tanstack/angular-table

npm i https://pkg.pr.new/@tanstack/angular-table@6132

@tanstack/lit-table

npm i https://pkg.pr.new/@tanstack/lit-table@6132

@tanstack/match-sorter-utils

npm i https://pkg.pr.new/@tanstack/match-sorter-utils@6132

@tanstack/qwik-table

npm i https://pkg.pr.new/@tanstack/qwik-table@6132

@tanstack/react-table

npm i https://pkg.pr.new/@tanstack/react-table@6132

@tanstack/react-table-devtools

npm i https://pkg.pr.new/@tanstack/react-table-devtools@6132

@tanstack/solid-table

npm i https://pkg.pr.new/@tanstack/solid-table@6132

@tanstack/svelte-table

npm i https://pkg.pr.new/@tanstack/svelte-table@6132

@tanstack/table-core

npm i https://pkg.pr.new/@tanstack/table-core@6132

@tanstack/vue-table

npm i https://pkg.pr.new/@tanstack/vue-table@6132

commit: 129ff13

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (6)
docs/guide/data.md (1)

248-248: Minor style improvement suggestion (optional).

Line 248 uses "a lot of" which could be more concise. Consider: "However, many developers underestimate just how much data can be handled client-side."

This is a low-priority stylistic refinement flagged by static analysis.

docs/guide/pagination.md (1)

33-33: Minor style improvement suggestion (optional).

Line 33 uses "a lot of people" which could be more concise. Consider: "However, many developers underestimate just how much data can be handled client-side."

Flagged by static analysis as a stylistic refinement opportunity.

docs/api/core/row.md (1)

123-123: Minor style improvement suggestion (optional).

Line 123 uses "all of the [Cells]" which could be more concise. Consider: "Returns all Cells for the row."

Flagged by static analysis as a stylistic refinement opportunity.

docs/guide/columns.md (1)

11-11: Consider using ./ for same-directory references.

The ../guide/ pattern works but is redundant since this file is already in docs/guide/. For example, ../guide/column-defs could be simplified to ./column-defs. However, this is a minor stylistic preference and the current paths resolve correctly.

Also applies to: 21-21, 50-50, 70-70

docs/guide/row-pinning.md (1)

20-20: Minor: Consider using same-directory reference for sibling guide.

Line 20 uses ../guide/sorting which works, but since both files are in docs/guide/, using ./sorting.md would be more direct and idiomatic. This is a nitpick and doesn't affect functionality.

docs/guide/header-groups.md (1)

28-28: Minor style suggestion: consider "among" instead of "amongst".

Line 28 uses "amongst", which is less common in modern usage compared to "among". This is entirely optional and a matter of style preference.

- - `depth`: The depth of the header group, zero-indexed based. Think of this as the row index amongst all header rows.
+ - `depth`: The depth of the header group, zero-indexed based. Think of this as the row index among all header rows.
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c06811a and 129ff13.

📒 Files selected for processing (40)
  • docs/api/core/cell.md (1 hunks)
  • docs/api/core/column.md (1 hunks)
  • docs/api/core/header-group.md (2 hunks)
  • docs/api/core/header.md (2 hunks)
  • docs/api/core/row.md (2 hunks)
  • docs/api/core/table.md (2 hunks)
  • docs/api/features/filters.md (1 hunks)
  • docs/api/features/global-filtering.md (1 hunks)
  • docs/api/features/pinning.md (1 hunks)
  • docs/api/features/row-selection.md (1 hunks)
  • docs/framework/react/guide/table-state.md (1 hunks)
  • docs/guide/cells.md (2 hunks)
  • docs/guide/column-defs.md (2 hunks)
  • docs/guide/column-faceting.md (1 hunks)
  • docs/guide/column-filtering.md (2 hunks)
  • docs/guide/column-ordering.md (3 hunks)
  • docs/guide/column-pinning.md (3 hunks)
  • docs/guide/column-sizing.md (2 hunks)
  • docs/guide/column-visibility.md (1 hunks)
  • docs/guide/columns.md (4 hunks)
  • docs/guide/custom-features.md (2 hunks)
  • docs/guide/data.md (3 hunks)
  • docs/guide/expanding.md (2 hunks)
  • docs/guide/features.md (1 hunks)
  • docs/guide/filters.md (1 hunks)
  • docs/guide/fuzzy-filtering.md (1 hunks)
  • docs/guide/global-faceting.md (1 hunks)
  • docs/guide/global-filtering.md (3 hunks)
  • docs/guide/grouping.md (1 hunks)
  • docs/guide/header-groups.md (1 hunks)
  • docs/guide/headers.md (4 hunks)
  • docs/guide/pagination.md (2 hunks)
  • docs/guide/pinning.md (1 hunks)
  • docs/guide/row-pinning.md (1 hunks)
  • docs/guide/row-selection.md (1 hunks)
  • docs/guide/rows.md (3 hunks)
  • docs/guide/sorting.md (1 hunks)
  • docs/guide/tables.md (3 hunks)
  • docs/overview.md (2 hunks)
  • scripts/verify-links.ts (5 hunks)
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2025-09-15T15:05:14.117Z
Learnt from: stevenwjy
Repo: TanStack/table PR: 6094
File: packages/table-core/src/utils/getGroupedRowModel.ts:74-78
Timestamp: 2025-09-15T15:05:14.117Z
Learning: In TanStack Table's Row interface, the `subRows` property is typed as `Row<TData>[]` (not optional) and the `createRow` function always initializes it as an empty array, so `subRows` is guaranteed to never be undefined.

Applied to files:

  • docs/api/core/row.md
  • docs/api/core/table.md
  • docs/guide/data.md
  • docs/api/core/header.md
  • docs/guide/rows.md
  • docs/guide/tables.md
  • docs/overview.md
📚 Learning: 2025-09-15T15:05:14.117Z
Learnt from: stevenwjy
Repo: TanStack/table PR: 6094
File: packages/table-core/src/utils/getGroupedRowModel.ts:74-78
Timestamp: 2025-09-15T15:05:14.117Z
Learning: In TanStack Table's Row interface, the `subRows` property is typed as `Row<TData>[]` (not optional) and the `createRow` function always initializes it as an empty array using `subRows ?? []`, so `subRows` is guaranteed to never be undefined.

Applied to files:

  • docs/api/core/row.md
  • docs/api/core/table.md
  • docs/guide/data.md
  • docs/guide/rows.md
  • docs/guide/tables.md
  • docs/overview.md
🪛 LanguageTool
docs/api/core/row.md

[style] ~123-~123: Consider removing “of” to be more concise
Context: ...ells = () => Cell[] ``` Returns all of the Cells for the row.

(ALL_OF_THE)

docs/guide/data.md

[style] ~248-~248: Consider using a synonym to be more concise.
Context: ... This is still usually a good idea, but a lot of developers underestimate how much data ...

(A_LOT_OF)

docs/guide/tables.md

[grammar] ~74-~74: Ensure spelling is correct
Context: ...the same TData type that you used for you data. ```ts const columns: ColumnDef<U...

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)


[style] ~129-~129: Did you mean ‘different from’? ‘Different than’ is often considered colloquial style.
Context: ...hat are generated may be very different than the array of data that you originally...

(DIFFERENT_THAN)

docs/guide/header-groups.md

[style] ~28-~28: The preposition ‘amongst’ is correct, but some people think that it is old-fashioned or literary. A more frequently used alternative is the preposition “among”.
Context: ...d based. Think of this as the row index amongst all header rows. - headers: An array ...

(AMONGST)

docs/guide/column-ordering.md

[grammar] ~107-~107: Use a hyphen to join words.
Context: ...s a modern, modular and lightweight drag and drop library that is highly compatib...

(QB_NEW_EN_HYPHEN)


[grammar] ~107-~107: Use a hyphen to join words.
Context: ...modern, modular and lightweight drag and drop library that is highly compatible w...

(QB_NEW_EN_HYPHEN)

docs/guide/global-filtering.md

[style] ~25-~25: Consider using a synonym to be more concise.
Context: ...should-you-use-client-side-pagination), a lot of developers underestimate how many rows ...

(A_LOT_OF)

docs/guide/column-filtering.md

[style] ~32-~32: Consider using a synonym to be more concise.
Context: ...should-you-use-client-side-pagination), a lot of developers underestimate how many rows ...

(A_LOT_OF)

docs/guide/pagination.md

[style] ~33-~33: Consider using a synonym to be more concise.
Context: ...ical for very large datasets. However, a lot of people underestimate just how much data...

(A_LOT_OF)

🪛 markdownlint-cli2 (0.18.1)
docs/guide/column-pinning.md

12-12: Headings must start at the beginning of the line

(MD023, heading-start-left)

🔇 Additional comments (43)
docs/api/core/column.md (1)

5-5: ✓ Link path correction is accurate.

The relative path adjustment from ../../../guide/features.md to ../../guide/features.md correctly reflects the directory hierarchy. From docs/api/core/, going up two levels reaches docs/, enabling correct resolution to docs/guide/features.md.

docs/api/core/cell.md (1)

5-5: ✓ Link path correction matches the pattern in related files.

The relative path adjustment is consistent with other API core documentation updates and correctly resolves to docs/guide/features.md.

docs/framework/react/guide/table-state.md (1)

9-10: ✓ Link paths correctly adjusted for framework-specific examples.

The change from ../../examples/ to ../examples/ properly reflects the relative depth from docs/framework/react/guide/ to docs/framework/react/examples/.

docs/api/features/row-selection.md (1)

18-18: ✓ Link path correctly simplified for same-namespace reference.

The change from ../../core/table.md to ../core/table.md correctly resolves within the docs/api/ namespace.

docs/guide/row-selection.md (1)

15-15: ✓ Cross-namespace link path corrected.

The change from ../../api/features/row-selection.md to ../api/features/row-selection.md correctly navigates from docs/guide/ up to docs/ and then into the API documentation.

docs/guide/column-sizing.md (1)

9-10: ✓ All relative paths consistently corrected across multiple link types.

The systematic updates from ../../ to ../ properly reflect the navigation from docs/guide/ to examples and API reference documentation at the docs/ level. Examples links to ../framework/react/examples/, API link to ../api/features/, and advanced example link are all correctly resolved.

Also applies to: 14-14, 169-169

docs/api/features/global-filtering.md (1)

28-28: ✓ Link path correctly adjusted for guide reference.

The change from ../../../guide/column-filtering.md to ../../guide/column-filtering.md properly resolves from the API features documentation to the guides section.

docs/guide/global-filtering.md (2)

13-13: ✓ Cross-namespace and same-namespace link paths correctly updated.

The changes from ../../ to ../ properly reflect navigation from docs/guide/ to both API references and pagination guide within the documentation structure.

Also applies to: 25-25


141-141: Verify that fuzzy-filtering.md exists at the target location.

Line 141 uses ./fuzzy-filtering.md, which assumes a file fuzzy-filtering.md exists in the same directory (docs/guide/). Confirm this file exists and the link target is valid.

docs/guide/custom-features.md (1)

9-9: Consistent relative path updates applied.

Both references to the custom-features example have been systematically updated from ../../ to ../, aligning with the PR's documentation structure correction. The changes are consistent and syntactically correct.

Please verify that the new relative paths now correctly resolve to the intended targets. Given the systematic nature of these changes across 40+ files, confirming that ../framework/react/examples/custom-features resolves correctly from docs/guide/custom-features.md would validate the entire PR refactor.

Also applies to: 111-111

docs/guide/sorting.md (1)

9-10: Consistent link corrections across multiple reference types.

Updates apply consistently across example links (lines 9–10) and API documentation reference (line 14), all following the ../../../ pattern. The corrections maintain internal consistency.

Also applies to: 14-14

docs/guide/data.md (1)

136-136: Internal guide-to-guide links consistently updated.

All four cross-references to other guides within docs/guide/ have been systematically updated from ../../guide/... to ../guide/..., including preservation of the anchor fragment on line 250. The pattern is consistently applied.

Also applies to: 182-182, 242-242, 250-250

docs/guide/column-faceting.md (1)

9-9: Relative path corrections applied consistently.

Both the example reference and API documentation link have been updated from ../../ to ../, following the established refactoring pattern.

Also applies to: 13-13

docs/api/features/filters.md (1)

10-13: Guide reference links consistently updated from API features directory.

All four guide cross-references have been updated from ../../../guide/... to ../../guide/..., reflecting the correct relative navigation from docs/api/features/ to docs/guide/. Updates are uniform across all four linked guides.

docs/guide/pagination.md (1)

9-15: Comprehensive relative path updates applied systematically.

All example links (lines 9–15), the API reference (line 19), and the inline example reference (line 33) have been updated from ../../ to ../ consistently. The refactoring is thorough across multiple link types and contexts.

Also applies to: 19-19, 33-33

docs/guide/features.md (1)

7-20: Navigation index correctly updated to use same-directory references.

All 14 feature guide links have been updated from ../X to ./X, which is the appropriate pattern for same-directory references. This is correct for a navigation index page within docs/guide/.

docs/api/core/row.md (1)

5-5: Relative path updates correct for different navigation contexts.

Line 5 appropriately updates the features guide cross-reference from ../../../ to ../../, and line 123 correctly updates the same-directory cell reference to ./. Both changes are contextually appropriate.

Also applies to: 123-123

docs/overview.md (1)

13-13: LGTM! Relative links updated correctly.

The link paths are updated to resolve locally from the docs/ directory:

  • ./introduction.mddocs/introduction.md
  • ./guide/features.mddocs/guide/features.md

Also applies to: 36-36

docs/api/core/header.md (1)

5-5: LGTM! Link paths correctly adjusted.

The relative paths resolve appropriately:

  • ../../guide/features.md correctly navigates from docs/api/core/ to docs/guide/features.md
  • ./column.md and ./header-group.md correctly reference sibling files in the same directory

Also applies to: 41-41, 49-49

docs/guide/columns.md (1)

7-7: LGTM! Link path correctly adjusted.

docs/guide/global-faceting.md (1)

9-9: LGTM! Link paths correctly adjusted.

Both relative paths resolve correctly from docs/guide/ to their target locations.

Also applies to: 13-13

docs/guide/cells.md (1)

7-7: LGTM! Link paths correctly adjusted.

The relative paths resolve correctly. Same note applies as in columns.md regarding the ../guide/ pattern for same-directory references.

Also applies to: 15-15, 35-35

docs/guide/column-visibility.md (1)

9-16: LGTM! Link paths correctly adjusted.

All example and API links resolve correctly from docs/guide/ to their target locations.

Also applies to: 20-20

scripts/verify-links.ts (5)

14-23: LGTM! Exclusion patterns are appropriate.

The function correctly filters out absolute paths, URLs, fragment-only links, and mailto links.


25-28: LGTM! Extension stripping logic is correct.

Using extname correctly handles various edge cases including files without extensions and filenames with multiple dots.


30-86: Core validation logic looks correct.

The resolution approach correctly simulates web-relative navigation by:

  1. Stripping extensions from both the source file and the link target
  2. Resolving from the parent directory of the source file
  3. Re-adding .md for non-example paths

One consideration: if documentation ever links to non-.md files (other than examples), those would fail validation since lines 71-73 unconditionally append .md. This seems acceptable given the current docs structure, but worth noting if the docs expand to include other file types.


88-125: LGTM! Main verification flow is well-structured.

The function correctly:

  • Globs all markdown files
  • Extracts and filters relative links
  • Validates each link and accumulates errors
  • Exits with code 1 when broken links are found

7-12: LGTM! Error accumulation approach is appropriate for CLI script.

The global errors array simplifies the control flow for this single-run verification script.

docs/guide/filters.md (1)

9-12: Link paths correctly adjusted for same-directory references.

The filter guide links now use ./ prefix for sibling guides within the same directory, which is a clearer and more maintainable approach than the previous ../../ paths.

docs/api/core/table.md (1)

17-17: Link paths correctly adjusted for cross-section references.

The links from API docs to guide sections properly reflect the reduced depth (from ../../../guide/ to ../../guide/), accounting for the flatter hierarchy.

Also applies to: 37-37

docs/guide/fuzzy-filtering.md (1)

9-9: Link paths correctly adjusted for external top-level directory navigation.

Both links properly reflect the reduction from two levels to one level when accessing framework/ and api/ directories from guide docs.

Also applies to: 13-13

docs/guide/pinning.md (1)

9-10: Link paths correctly adjusted for same-directory references.

Both links to sibling guides properly use ./ prefix, which is the idiomatic approach for same-directory references.

docs/api/core/header-group.md (1)

5-5: Link paths correctly adjusted; same-directory reference improved.

Line 5 properly reflects the reduced depth for guide references (../../guide/). Line 32's change from ../header.md to ./header.md is an improvement, making the same-directory reference more explicit and direct.

Also applies to: 32-32

docs/api/features/pinning.md (1)

10-11: Link paths correctly adjusted for cross-section references.

Both links properly reduce the path depth from three levels to two (../../../guide/../../guide/), reflecting the restructured hierarchy.

docs/guide/grouping.md (1)

13-13: Link paths correctly adjusted; same-directory references improved.

Line 13 properly reduces the cross-section reference depth (../../api/../api/). Lines 19–20's changes from ../column-pinning.md and ../column-ordering.md to ./ references are improvements for same-directory navigation.

Also applies to: 19-20

docs/guide/column-filtering.md (1)

18-18: Link paths updated to reflect new directory structure.

The relative path adjustments from ../../api/... to ../api/... and local guide references are correct and align with the PR's objective to adjust link validation to the current directory level.

Also applies to: 32-32

docs/guide/column-ordering.md (1)

9-10: Link paths consistently updated to match flattened directory structure.

All relative paths have been systematically adjusted from ../../ to ../ for API and framework references, and cross-guide links have been updated accordingly. Changes align with the PR's objective.

Also applies to: 14-14, 24-24, 26-26, 107-107

docs/guide/rows.md (1)

7-7: Internal guide links updated to reflect directory restructuring.

Relative paths adjusted from ../../ to ../ for API and guide cross-references. Changes maintain logical grouping and are consistent with the PR's scope.

Also applies to: 27-27, 88-88

docs/guide/column-pinning.md (1)

9-10: Consistent relative path updates for all internal references.

Framework example paths, API references, and cross-guide links have been systematically updated from ../../ to ../. Anchor links in API references are properly formatted.

Also applies to: 14-15, 19-19, 24-24, 31-31, 80-87

docs/guide/expanding.md (1)

9-11: API and framework paths updated; same-directory guide link adjusted to ./ notation.

Example references now point to ../framework/react/examples/... and API to ../api/features/expanding. Line 214 correctly uses ./pinning.md for a same-directory reference, confirming the flattened docs hierarchy.

Also applies to: 15-15, 214-214

docs/guide/tables.md (1)

7-7: API links updated; same-directory guide references converted to ./ notation.

API paths now use ../api/core/... and same-directory guide links use ./ for column-defs and row-models, confirming the directory restructuring.

Also applies to: 74-74, 82-82, 125-125, 129-129

docs/guide/headers.md (1)

7-7: All relative paths systematically updated from ../../ to ../ for API, guide, and framework references.

Changes maintain proper directory navigation and are consistent across all link types.

Also applies to: 17-17, 45-45, 49-49, 68-68, 72-72

docs/guide/column-defs.md (1)

7-7: API paths updated to ../api/core/...; same-directory grouping reference uses ./ notation.

All link adjustments are consistent with the flattened directory structure and PR objectives.

Also applies to: 15-15, 245-245

## API

[Header Group API](../../api/core/header-group)
[Header Group API](../api/core/header-group)
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

# First, let's check the actual content of the file and verify the structure
git ls-files docs/guide/header-groups.md

Repository: TanStack/table

Length of output: 85


🏁 Script executed:

# Check the actual lines mentioned in the review
cat -n docs/guide/header-groups.md | head -35

Repository: TanStack/table

Length of output: 2091


🏁 Script executed:

# Now verify that all the target documentation files exist
# Based on the claimed paths in the review
for link in "docs/api/core/header-group.md" "docs/framework/react/examples/column-groups.md" "docs/guide/rows.md" "docs/guide/headers.md"; do
  if [ -f "$link" ]; then
    echo "✓ Found: $link"
  else
    echo "✗ Missing: $link"
    # Try to find similar files
    echo "  Searching for similar files..."
    fd -i "$(basename "$link" .md)" docs/ 2>/dev/null | head -5
  fi
done

Repository: TanStack/table

Length of output: 246


🏁 Script executed:

# Also check the docs directory structure
find docs -type f -name "*.md" | head -20

Repository: TanStack/table

Length of output: 672


🏁 Script executed:

# Search for column-groups related files
find docs -type f -name "*column*group*" 2>/dev/null

Repository: TanStack/table

Length of output: 40


🏁 Script executed:

# Also check framework directory structure
find docs/framework -type d -name "*react*" 2>/dev/null | head -10

Repository: TanStack/table

Length of output: 78


🏁 Script executed:

# List all files in framework directories
find docs/framework -type f -name "*.md" 2>/dev/null | grep -i column | head -10

Repository: TanStack/table

Length of output: 40


Line 15 contains a broken link that should be corrected.

While the relative path changes on lines 7, 23, and 29 are correct and resolve to existing documentation files, line 15's link to ../framework/react/examples/column-groups points to a non-existent file. The directory docs/framework/react/examples/column-groups.md does not exist in the repository. This link needs to be either corrected to point to the actual location of the column groups example, or the referenced file needs to be created.

🤖 Prompt for AI Agents
In docs/guide/header-groups.md around line 15, the link
../framework/react/examples/column-groups points to a non-existent file; either
update that link to the correct existing path for the column groups example
(find the actual example file under docs/framework/react/... and replace the
relative path accordingly) or create the missing
docs/framework/react/examples/column-groups.md file with the intended content so
the link resolves.

@lachlancollins lachlancollins merged commit 0067f06 into main Dec 5, 2025
6 checks passed
@lachlancollins lachlancollins deleted the docs-relative-links branch December 5, 2025 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants