QDoc: Wire navigation extraction through the IR pipeline
Pages need navigation metadata — breadcrumbs, sequential links, and
a sidebar table of contents — to help readers move between related
content. The template generator has IR types for this metadata but
no extraction path producing it. The IR Builder also needs to
assemble per-page TOC entries from the rendered structure so
templates can iterate a single ordered list rather than reconstruct
the TOC from scattered sources.
The NodeExtractor now produces a NavigationData struct per page,
populating it with the breadcrumb chain, prev/next/start links, and
configured TOC depth. Each breadcrumb carries a state reflecting
whether the link was resolved, points to the current page, or
could not be resolved at all, so templates no longer need to
infer the distinction from an empty href. The IR Builder carries
this state across the extraction boundary and, after constructing
the body and section IR, assembles tocEntries from the summary
sections, the detailed description divider for reference pages, the
body section-headings, and the detail sections. LinkResolver treats
an intra-page anchor (\c{#fragment}) as a resolvable target when the
fragment exists on the current page, so TOC entries work as
clickable anchors regardless of where the link originated.
Task-number: QTBUG-145915
Change-Id: I2aaa3e6860a8039b6dbc133cf6a441619a1c087c
Reviewed-by: Topi Reinio <topi.reinio@qt.io>