Inbound cross-links
Inbound cross-links are links from other documentation sets to yours. Understanding and validating inbound cross-links helps prevent breaking links in other repositories when you make changes.
Inbound cross-link validation allows you to:
- Detect breaking changes: Know when renaming or deleting a file will break links from other repositories.
- Prevent regressions: Avoid publishing changes that break documentation elsewhere.
- Coordinate changes: Understand dependencies before making structural changes.
A regular build of a documentation set won't validate inbound links automatically.
You have to use the inbound-links validate-link-reference after a build to validate all inbound links.
The reason for this is that validating all inbound links has to download all published Link Index files for the current Content Source.
Check all inbound links for all published Link Index files declared in the Link Catalog
docs-builder inbound-links validate-all
Validate a locally built links.json
against all published Link Index files:
docs-builder inbound-links validate-link-reference
docs-builder inbound-links validate-link-reference --file .artifacts/docs/html/links.json
Check inbound links from specific repositories or to specific resources:
docs-builder inbound-links validate --from elasticsearch --to kibana
If you move a file that other repositories link to:
- Create a redirect from the old path to the new path
- Update your documentation's redirect configuration
- Run inbound link validation to ensure the redirect works
- Notify teams that maintain repositories with inbound links
Before deleting a file:
- Run inbound link validation to see if other repositories link to it
- If there are inbound links, coordinate with those teams first
- Consider leaving a redirect to related content
- Update the other repositories to remove or update their links
Heading anchors are part of the Link Index. If other repositories link to specific headings in your documentation:
- Validate inbound links before renaming
- Consider keeping old heading anchors if heavily linked
- Document the change if coordination is needed
Our preview CI job will run inbound link validation automatically.
When moving or renaming files, always set up redirects:
# In your documentation's configuration
redirects:
- from: /old-path/file.html
to: /new-path/file.html
If you need to make a breaking change:
- Run inbound link validation to identify affected repositories.
- File issues or notify maintainers of affected repositories.
- Coordinate the change timing,
- Provide redirect mappings or alternative URLs.
Make inbound link validation part of your review process:
- Run validation locally before creating a PR.
- Include validation in CI checks.
- Review validation results before merging.
- Outbound Cross-links - Links from your documentation to others.
- Link Index - How your linkable resources are tracked.
- Link Service - Where inbound link information is stored.
- Distributed Documentation - The architecture enabling this validation.