Repository navigation
Conversation
ConfigurationFile now reads a ResolvedDocumentationSet in the domain assembly. The resolver holds the code that used to sit in the ConfigurationFile constructor, unchanged: same findings, same order, same exceptions. Cta, Branding, CrossLinkEntry, DocSetRegistry, EnabledExtensions and ResolvedApiConfiguration move with it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This was referenced Nov 18, 2026
…o split/06c1-resolved-set # Conflicts: # src/Elastic.Documentation.Configuration/Builder/ConfigurationFile.cs
… is missing The default maps of ResolvedDocumentationSet used the ordinal comparer, so a page with cta: Trial warned about an unknown template when there was no docset.yml, where the old case-insensitive map found it. Also drop a license header that was pasted into the using block of ReloadableGeneratorState. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A docset.yml with extensions written with no value used to stop the load right after release_notes, before the substitutions, api, branding and cta were processed. The resolver built the extensions last, so those steps reported or failed first. Build them at the same step and keep the NullReferenceException. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The resolver parsed the exclude globs to fail the load on an invalid one and discarded them, and ConfigurationFile parsed them again. Resolve now returns the parsed globs with the set; the failure path is unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ConfigurationFilenow reads aResolvedDocumentationSetin the domain assembly. The code that joineddocset.ymlwith the catalog moves out of its constructor intoDocumentationSetResolver, unchanged. What is accepted and reported does not change.Affects: Configuration, Navigation
Why
The documentation set is the build, and its resolved form still lives as fields of a Configuration class. The domain record is the target for the rules that follow (next PR in the stack).
What
The resolved record
ResolvedDocumentationSetholds the resolved settings: exclusions, registry, cross-links, release-notes products, extensions, products, substitutions, feature toggles, storybook, API configurations, suppressed hints, branding and CTAs. Redirects and the table of contents stay out, as agreed in the previous PR.The resolver is a move
DocumentationSetResolverholds the body of the old constructor with the same calls in the same order: findings reach the context as before, and an exception still propagates after theCould not load docset.yml:error. It is not aLoader.Fordeclaration, so no exception becomes a finding. The missing-file warning and the redirect read stay inConfigurationFile, in their old order.Types move with it
Cta,CrossLinkEntry,DocSetRegistry,EnabledExtensionsandResolvedApiConfigurationmove toElastic.Documentation.DocumentationSets; consumers add oneusing. The mutableBrandingConfigurationresult becomes the recordBranding; the YAML-shapedBrandingConfigurationDTO stays. The public members ofConfigurationFilekeep their types.Verify
CI=true dotnet testof Configuration.Tests, Navigation.Tests and Markdown.Tests pass. The S2 golden snapshots (exceptions, diagnostics order) are unchanged. Mutation check:MaxTocDepth = docSetFile.MaxTocDepth + 1in the resolver fails the newResolve_EveryDocsetKey_IsOnTheResolvedSetand the golden tests.Deferred behaviour changes: none in this PR. Left for later behaviour PRs: D108,
..in file entries, registry rules,dev_docs, api slugtags, redirectmanytargets, the toc cycle error,hidden: truecrosslink,max_toc_depthrules.Stack: 3 of 4 (06c1), on top of #4931 (06b) and #4926 (06a). Wave-1:
split/integration-wave1. Part of #4530 (foundation #4888).🤖 Generated with Claude Code
Golden compare
Local builds of the isolated docs, the prod assembler site and the codex example site, this branch's head against the wave-1 integration branch (
split/integration-wave1: currentmainplus the nine wave-1 PRs); aggregate counts, the output stays local.22 paths differ across the three sites. All also differ between two captures of that baseline taken hours apart (159 paths: live OpenAPI specs, the release-notes CDN and the generated
llmsfiles), so none of these can be attributed to this change.Limit: golden cannot show a real change inside those drifting pages.