Repository navigation
Remove the unused catalog key from the API configuration - #4975
Conversation
No production `docset.yml` sets `catalog:`, so the deployment pills on the API catalog cards and the `Deployments:` line in the catalog Markdown never showed. The key, its parser, its resolver, the pills, their CSS and their tests are removed. A `docset.yml` that still sets `catalog:` now gets the standard unknown-key error. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
| single-entry sequence with a required `spec:` and `product:`, and optional `repository:` and | ||
| `children:`: |
There was a problem hiding this comment.
Severity: P3 (Low)
Add an upgrade note telling users to remove the entire catalog: block from existing api: entries. The previous guide included a valid catalog.categories example, and docsets that copied it now fail validation. The new list of supported keys does not tell those users that the block was removed without a replacement.
Generated by Libra. React with 👍 or 👎 to give feedback on this comment.
There was a problem hiding this comment.
No change. This page documents the current configuration, so it lists only the keys that work. Removals are announced in the release notes, not in the feature page. No known docset sets catalog:: the api: block in elastic/docs-content has no such key. A docset that does set it fails with Unknown key 'catalog' plus the list of valid keys (children, product, repository, spec), which already says what to remove. An upgrade note would also imply a migration path for a key nobody uses.
Three `using Elastic.Documentation.AppliesTo;` lines, a blank line, an explicit `null` argument and two doc comments still referred to the removed deployment pills. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/4975/ Sample changed pages: |
The
catalog:key under anapi:entry indocset.ymlis removed, along with the deployment pills it fed on the API catalog cards.Affects:
Configuration,API referencePrompt summary: Delete the unused
catalog:setting from the API configuration, and everything that only exists to serve it. The PR must not carry thebreakinglabel.Why
No production docset sets
catalog:. Theapi:block inelastic/docs-contenthas nocatalog:key, so the pills on the catalog cards and theDeployments:line in the catalog Markdown never showed there. Only thedocs/_docset.ymlfixtures set it. The key, its parser, its resolver and its rendering were dead weight.What
The
catalog:key is gone fromdocset.ymlA
docset.ymlthat setscatalog:under anapi:entry now gets the standard unknown-key error. That error listschildren,product,repositoryandspecas the valid keys. The parser, the resolver and theApiCatalogCategoryhelper are deleted with the key.Catalog cards lose their deployment pills
The API catalog cards no longer render deployment pills, and the catalog Markdown export drops its
Deployments:line. The pills only appeared for an API that setcatalog:. Their CSS is removed fromapi-docs.cssandapi-reference.css.Fixtures and docs follow
The
docs/_docset.ymlfixtures anddocs/data/openapi/api-explorer.mdno longer mentioncatalog:. The frozenGolden/Baselinecopy ofdocs/_docset.ymlloses the same blocks, so it still loads without errors.Tests that covered only the key are deleted
The category parsing, resolution and pill tests go. The grouped-catalog test stays, because it also guards the group labels and the attached variant card. It is renamed, and its snapshot loses only the pill. The
bad-categorydiagnostics case is removed, so that snapshot now showsApiConfigurations: null.Verify