Skip to content

Declare the products hub prefix as a navigation phantom - #3876

Open
florent-leborgne wants to merge 1 commit into
mainfrom
docs-products-nav-phantom
Open

Declare the products hub prefix as a navigation phantom#3876
florent-leborgne wants to merge 1 commit into
mainfrom
docs-products-nav-phantom

Conversation

@florent-leborgne

Copy link
Copy Markdown
Member

Why

Isolated docs-content builds run NavigationPrefixChecker against assembler navigation from docs-builder:edge. Pages under a prefix that is neither a claimed toc nor a phantom fail CI. elastic/docs-content#7964 adds hub pages at /products/*, which is a new top-level prefix.

A real - toc: products entry would fail assembler build until those files exist on docs-content main (Could not find navigation node for identifier: docs-content://products).

What

Registers docs-content://products as a phantom in config/navigation.yml and config/navigation_preview.yml. That lets the prefix checker accept the hub pages without requiring the folder to exist on docs-content main yet, and without putting Products in primary nav.

After elastic/docs-content#7964 merges, a follow-up can replace this phantom with - toc: products (after get-started) if Products should appear in primary nav.

Test plan

  • docs-builder assembler still builds against current docs-content main (no products/ folder required)
  • After this lands on docs-builder:edge, re-run Add product documentation hub pages docs-content#7964 build / build; the four products/*.md prefix-checker errors should be gone

Made with Cursor

Isolated docs-content builds reject pages under prefixes that assembler navigation does not claim. A real toc entry would fail assembler until the hub pages exist on docs-content main.

Co-authored-by: Cursor <cursoragent@cursor.com>
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