QDoc: Render WebXML collection landing pages
The WebXML generator builds its pages on top of the same writer
that serializes index files. That writer deliberately holds back
collection nodes, so an index file can list their members only after
every member node exists. For an index file this ordering is essential;
for a standalone page it means nothing is written at all.
As a result, module landing pages in WebXML come out as empty documents,
even though the generator already knows how to render the member
listings and prose those pages should carry. Group pages were the lone
exception, rescued by a narrow special case. Anyone generating WebXML for
these pages received a contentless file that looks like data but holds
none, which made it look like something was wrong.
The special case now covers every collection node, so module, QML
module, and concept pages render the same member listings and
descriptions that group pages already produced. Output for all other
WebXML pages is unchanged.
Task-number: QTBUG-146905
Pick-to: 6.12
Change-Id: I20363b1a8e43395a26c978453de6b1f313b17e0b
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
| commit | ae210a8b15e9afd48d210b4da58879c18366c1ca |
| parent | 183da75f0f7c09ff2abfdbc70f80bf0c6d59f222 |
| author | Paul Wicking <paul.wicking@qt.io> |
| committer | Paul Wicking <paul.wicking@qt.io> |
| commit time | Fri, 5 Jun 2026 07:53:54 +0000 |
- M src/qdoc/qdoc/src/qdoc/webxmlgenerator.cpp
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/auto_as_return_type/expected/webxml/qdoctest-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/cmakedocumentation/expected/webxml/testcar-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/cmakedocumentation/expected/webxml/testcarprivate-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/compiler_generated_member_functions/expected/webxml/qdoctests-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject/expected/webxml/qdoc-test-qmlmodule.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject/expected/webxml/test-empty-qmlmodule.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject/expected/webxml/test-nover-qmlmodule.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject/expected/webxml/testcpp-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject/expected/webxml/themodule-qmlmodule.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject/expected/webxml/uicomponents-qmlmodule.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject_headerdocs/expected/webxml/qdoc-test-qmlmodule.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject_headerdocs/expected/webxml/test-empty-qmlmodule.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject_headerdocs/expected/webxml/test-nover-qmlmodule.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject_headerdocs/expected/webxml/testcpp-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject_headerdocs/expected/webxml/themodule-qmlmodule.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/comprehensiveproject_headerdocs/expected/webxml/uicomponents-qmlmodule.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/cpp20_concepts/expected/webxml/cpp20concepts-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/cpp20_concepts/expected/webxml/integral.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/cpp20_concepts/expected/webxml/traits-sortable.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/frienddeclarations/expected/webxml/friendmodule-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/hiddenfriends/expected/webxml/completelyhidden-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/hiddenfriends_fn/expected/webxml/hiddenfriendmodule-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/inherited_property_link/expected/webxml/testmodule-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/internalfilepatterns/expected/webxml/testmodule-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/modifiedoutputfilenames/expected/webxml/cppmodule-module-suffix.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/modifiedoutputfilenames/expected/webxml/qmlmodule-qmlmodule-suffix.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/modulestate/expected/webxml/moduleinstate-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/multiple_overloads_test/expected/webxml/testqdocoverloadcommand-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/multisignal/expected/webxml/testmodule-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/noshowinternal/expected/webxml/noshowinternalmodule-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/overloaded_empty_targets/expected/overloadedemptytargets-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/overloaded_signals_slots/expected/webxml/overloadedsignalsslots-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/privateheaders/expected/webxml/privateheadersmodule-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/privatemembers/expected/webxml/testmodule-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/privatevirtuals/expected/webxml/wassilykandinsky-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/qml_import_as/expected/webxml/testmodule-qmlmodule.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/qml_nativetype_synopsis/expected/webxml/qmlnativetypesynopsis-qmlmodule.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/qmlenumvaluesfromcpp/expected/webxml/module-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/qmlenumvaluesfromcpp/expected/webxml/qmlmodule-qmlmodule.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/reimplemented_test/expected/webxml/testmodule-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/scopedenum/expected/webxml/testcpp-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/sfinae_constraints/expected/webxml/sfinaemodule-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/showinternal/expected/webxml/showinternalmodule-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/template_alias_default_params/expected/webxml/templatealiasmodule-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/templateparams/expected/webxml/testmodule-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/testtemplate/expected/webxml/testcpp-module.webxml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/unnamedstruct/expected/webxml/unnamedstructmodule-module.webxml