QDoc: Add QtLottie validation test for template generator
The template generator's rendering pipeline lacks an integration test
that exercises real-world QML module documentation. Unit tests verify
individual constructs in isolation. A multi-page module with section
hierarchies, admonitions, include directives, cross-references, and
QML code examples provides confidence that the constructs compose
correctly.
The QtLottie validation test uses documentation derived from the real
Qt Lottie sources (qtlottie.git commit f667eca126cd). Doc comments
are extracted from C++ into standalone .qdoc files so PureDocParser
handles them without build dependencies. Import-only QML snippets use
\code instead of \qml to avoid the standalone parser's grammar
requirement for a root object declaration. The test currently asserts
full content rendering for the index page and basic page generation
for QML type and module pages, which will gain content assertions as
type and module templates are wired.
The dual-format output test gains a table construct, keeping
format-specific validation in its natural home.
Fixes: QTBUG-142470
Change-Id: Ib081f15e1148a630ea24bc400045ea108dab0a67
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
Reviewed-by: David Boddie <david.boddie@qt.io>
| commit | 03b14ac08aa801c962a94c047c00822379d2bbad |
| parent | 82de7a2dd625a91724ac6dc3a368dca071d49293 |
| author | Paul Wicking <paul.wicking@qt.io> |
| committer | Paul Wicking <paul.wicking@qt.io> |
| commit time | Wed, 25 Feb 2026 17:25:24 +0100 |
- M licenseRule.json
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/dual_format_output/expected/html/readme.html
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/dual_format_output/expected/markdown/readme.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/dual_format_output/src/README.qdoc
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/expected/html/qml-qt-labs-lottieqt-lottieanimation.html
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/expected/html/qml-qt-labs-lottieqt-vectorimagehelpers-layeritem.html
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/expected/html/qt-labs-lottieqt-qmlmodule.html
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/expected/html/qt-labs-lottieqt-vectorimagehelpers-qmlmodule.html
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/expected/html/qtlottieanimation-index.html
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/expected/markdown/qml-qt-labs-lottieqt-lottieanimation.md
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/expected/markdown/qml-qt-labs-lottieqt-vectorimagehelpers-layeritem.md
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/expected/markdown/qt-labs-lottieqt-qmlmodule.md
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/expected/markdown/qt-labs-lottieqt-vectorimagehelpers-qmlmodule.md
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/expected/markdown/qtlottieanimation-index.md
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/expected/qtlottie.index
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/qtlottie_validation.qdocconf
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/src/Item.qdoc
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/src/external-resources.qdoc
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/src/qlottieanimation.qdoc
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/src/qquicklayeritem.qdoc
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/src/qtlottie.qdoc
- A src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/src/qtlottievectorimagehelpers.qdoc