Skip to content

Remove the hardcoded deep-linking suppression list for docs-content - #4561

Draft
Mpdreamz wants to merge 3 commits into
mainfrom
chore/remove-deep-linking-skip-list
Draft

Mpdreamz wants to merge 3 commits into
mainfrom
chore/remove-deep-linking-skip-list

Conversation

@Mpdreamz

Copy link
Copy Markdown
Member

Merge after elastic/docs-content#8988 (open at the time of writing). That PR adds suppress: to the docs-content toc files this change stops special-casing.

Part of https://github.com/elastic/docs-eng-team/issues/1115

Affects: Configuration, Assembler builds

Why

DocumentationSetFile carries a temporary list of docs-content toc paths that always get DeepLinkingVirtualFile suppressed, because those tocs did not declare suppress:. The list hides the hint from every build, whatever the toc says. docs-builder consumes docs-content at build time, so merging this before the content PR brings back about 416 hints in assembler builds.

What

Suppression comes only from the toc

The skip path list and the check that used it are gone from DocumentationSetFile. A nested toc.yml suppresses DeepLinkingVirtualFile only when it declares suppress: itself, which is how every other repo already works. OptionalWindowsReplace stays because other code uses it.

Tests

Two tests in ValidationTests load a nested toc at docs-content/solutions/toc.yml. Without suppress: it reports the deep-linking hint. With suppress: it reports nothing.

Verify

./build.sh unit-test
dotnet test tests/Navigation.Tests -- --treenode-filter "/*/*/ValidationTests/*"

Restoring the old list makes NestedToc_UnderFormerlyHardcodedPathWithoutSuppress_EmitsDeepLinkingHint fail.

🤖 Generated with Claude Code

The nested toc.yml files in docs-content now declare `suppress:` themselves, so the temporary path list in `DocumentationSetFile` is dead weight.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Docs preview (local build)

Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/4561/

The Windows build reports `solutions\toc.yml`, so the `EndsWith("solutions/toc.yml")` check failed there. The test now normalises backslashes before comparing.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

This branch was successfully deployed

2 active deployments
assembler-preview — 9275a61a Deployed Nov 4, 2026 by github-actions[bot]
docs-preview — 9275a61a Deployed Nov 4, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant