QDoc: Cover annotated-examples in the catalog-pages fixture
The annotated-examples catalog groups documented examples by
their module index title and renders each group as a section
heading followed by an annotated table. The fixture covers the
annotated-classes and compact-classes shapes, but the
example-bucketing path has no end-to-end coverage; a regression
between example enumeration and table rendering would slip past
the validation suite.
The fixture grows two example projects, each documented through
an example block that flows through a category macro the
qdocconf defines, plus a catalog page that runs the
annotated-examples shape and renders the grouped table. The
fixture's examples have no module index title, so they bucket
under an empty key, exercising the empty-label heading
suppression the renderer recently adopted: the expected output
shows table only, with no decorative empty heading.
Task-number: QTBUG-146605
Change-Id: I768fd507ab5dc2e976bad62f5a8606250b2d5fa1
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
| commit | 4778f70b1eb0a8c0b76d9391ddf9d3507ae26d65 |
| parent | 68a64684963122e72dcaf482673b73b806cf4e27 |
| author | Paul Wicking <paul.wicking@qt.io> |
| committer | Paul Wicking <paul.wicking@qt.io> |
| commit time | Thu, 7 May 2026 09:20:57 +0000 |
- M REUSE.toml
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/catalog_pages/catalog_pages.qdocconf
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/catalog_pages/examples/example_one/CMakeLists.txt
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/catalog_pages/examples/example_one/example_one.qdoc
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/catalog_pages/examples/example_two/CMakeLists.txt
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/catalog_pages/examples/example_two/example_two.qdoc
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/catalog_pages/expected/catalogpages.index
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/catalog_pages/expected/html/catalogpages-example-one-example.html
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/catalog_pages/expected/html/catalogpages-example-two-example.html
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/catalog_pages/expected/html/examples-index.html
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/catalog_pages/expected/markdown/catalogpages-example-one-example.md
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/catalog_pages/expected/markdown/catalogpages-example-two-example.md
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/catalog_pages/expected/markdown/examples-index.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/catalog_pages/src/pages.qdoc