It should since 1.8.18.
+++ /dev/null
-/** @mainpage
-
-@htmlinclude file.html
-*/
-
-/** @page warnings This will produce a warning
-
-@htmlinclude nonexistent.html
-*/
--- /dev/null
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8" />
+ <title>The htmlonly command | My Project</title>
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i%7CSource+Code+Pro:400,400i,600" />
+ <link rel="stylesheet" href="m-dark+documentation.compiled.css" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+</head>
+<body>
+<header><nav id="navigation">
+ <div class="m-container">
+ <div class="m-row">
+ <a href="index.html" id="m-navbar-brand" class="m-col-t-8 m-col-m-none m-left-m">My Project</a>
+ </div>
+ </div>
+</nav></header>
+<main><article>
+ <div class="m-container m-container-inflatable">
+ <div class="m-row">
+ <div class="m-col-l-10 m-push-l-1">
+ <h1>
+ The htmlonly command
+ </h1>
+<p>Works only since Doxygen 1.8.18, before it was not included in the XML output.</p><iframe style="width: 500px; height: 500px;" src="https://mcss.mosra.cz">
+ </div>
+ </div>
+ </div>
+</article></main>
+</body>
+</html>
--- /dev/null
+/** @mainpage
+
+@htmlinclude file.html
+*/
+
+/** @page html-only The htmlonly command
+
+Works only since Doxygen 1.8.18, before it was not included in the XML output.
+
+@htmlonly
+<iframe style="width: 500px; height: 500px;" src="https://mcss.mosra.cz">
+@endhtmlonly
+*/
+
+/** @page warnings This will produce a warning
+
+@htmlinclude nonexistent.html
+*/
self.run_doxygen(wildcard='warnings.xml')
self.assertEqual(*self.actual_expected_contents('warnings.html'))
-class Htmlinclude(IntegrationTestCase):
- def test(self):
+class HtmlonlyHtmlinclude(IntegrationTestCase):
+ def test_htmlinclude(self):
self.run_doxygen(wildcard='indexpage.xml')
self.assertEqual(*self.actual_expected_contents('index.html'))
+ @unittest.skipUnless(LooseVersion(doxygen_version()) >= LooseVersion("1.8.18"),
+ "1.8.17 and older doesn't include @htmlonly in XML output")
+ def test_htmlonly(self):
+ self.run_doxygen(wildcard='html-only.xml')
+ self.assertEqual(*self.actual_expected_contents('html-only.html'))
+
def test_warnings(self):
self.run_doxygen(wildcard='warnings.xml')
self.assertEqual(*self.actual_expected_contents('warnings.html'))