QDoc: Strip license headers from template output
Template files carry Qt license headers for compliance, but these
headers shouldn't appear in generated documentation. Using HTML
comments passes them through to the output, which stamps Qt's
copyright on any documentation created with the new generator,
also for other projects.
This change replaces the html comment markers with Inja template
comment markers. This strips the headers during rendering while
keeping them visible in the template source files.
Task-number: QTBUG-144245
Change-Id: Ied59ebbb014d08a84eb2a354b2f135ad459b6eb2
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
Reviewed-by: David Boddie <david.boddie@qt.io>
| commit | af3c47ca1487c8580280a8648f5656075fd56454 |
| parent | 6765e7228babef8d60d05bd89d0b3c34be3b889a |
| author | Paul Wicking <paul.wicking@qt.io> |
| committer | Paul Wicking <paul.wicking@qt.io> |
| commit time | Mon, 23 Feb 2026 19:41:06 +0100 |
- M src/qdoc/qdoc/src/qdoc/templates/page.html
- M src/qdoc/qdoc/src/qdoc/templates/page.md
- 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/markdown_output/expected/template/readme.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/minimal_configuration_template/expected/template/readme.html