QDoc: Add navigation test fixture and update expected output
The template generator's navigation pipeline — breadcrumb state,
structural table of contents, sequential links — has no validating
fixture. A fixture needs to exercise each distinct path: class and
QML type breadcrumbs (static chains with module entries), generic
page breadcrumbs (navigationParent walk), group-based fallback,
prev and next sequential links, multi-level section headings for
TOC rendering, and resolvable ancestor pages so every link in the
chain lands on a real target.
The navigation fixture covers a C++ class, a QML type, a module
page, a home and a landing page, a generic page with prev/next
links, and collection pages titled C++ Classes and QML Types so
class and QML type breadcrumbs resolve their ancestry. A NavWidget
class documents itself with a mix of section levels so the
sidebar TOC contains entries for the summary sections, the
Detailed Description divider, the body headings at levels three
through five, and the member documentation section. Expected
outputs for both HTML and Markdown formats capture the rendered
result for both the new fixture and the existing projects now
that navigation chrome is part of every rendered page.
Fixes: QTBUG-145915
Change-Id: I68acc648952c1cdfe603ebfd047249f81b27013c
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
| commit | 07d21e4ba1f46b500ea9e1da53a42d1b80c102da |
| parent | aa7c682713b093927e0b117a9aaa0aecb22ac095 |
| author | Paul Wicking <paul.wicking@qt.io> |
| committer | Paul Wicking <paul.wicking@qt.io> |
| commit time | Wed, 22 Apr 2026 07:48:14 +0000 |
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/expected/html/cpp-classes.html
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/expected/html/navigation-landing.html
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/expected/html/navigation-test-home.html
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/expected/html/navwidget-members.html
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/expected/html/navwidget.html
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/expected/html/qdoc-default.css
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/expected/html/qml-navitem.html
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/expected/html/qml-types.html
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/expected/html/subpage.html
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/expected/html/testnavigation-module.html
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/expected/markdown/cpp-classes.md
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/expected/markdown/navigation-landing.md
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/expected/markdown/navigation-test-home.md
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/expected/markdown/navwidget-members.md
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/expected/markdown/navwidget.md
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/expected/markdown/qml-navitem.md
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/expected/markdown/qml-types.md
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/expected/markdown/subpage.md
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/expected/markdown/testnavigation-module.md
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/expected/testnavigation.index
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/navigation.qdocconf
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/src/classpage.cpp
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/src/classpage.h
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/src/cppclassespage.qdoc
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/src/homepage.qdoc
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/src/landingpage.qdoc
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/src/qmltype.qdoc
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/src/qmltypespage.qdoc
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/src/subpage.qdoc
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/src/testnavmodule.qdoc