From d7840ed8feb58163cdb672c7445adaf1ce71f6e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 11 Dec 2017 03:02:25 +0100 Subject: [PATCH] m.dox: initial test. --- pelican-plugins/m/test/dox/page.html | 46 ++++++++++++++++++++++++++++ pelican-plugins/m/test/dox/page.rst | 7 +++++ pelican-plugins/m/test/test_dox.py | 14 +++++++++ 3 files changed, 67 insertions(+) create mode 100644 pelican-plugins/m/test/dox/page.html create mode 100644 pelican-plugins/m/test/dox/page.rst create mode 100644 pelican-plugins/m/test/test_dox.py diff --git a/pelican-plugins/m/test/dox/page.html b/pelican-plugins/m/test/dox/page.html new file mode 100644 index 00000000..f88fa1fd --- /dev/null +++ b/pelican-plugins/m/test/dox/page.html @@ -0,0 +1,46 @@ + + + + + m.dox | A Pelican Blog + + + + + + + + + + + + + +
+
+ +
+ + diff --git a/pelican-plugins/m/test/dox/page.rst b/pelican-plugins/m/test/dox/page.rst new file mode 100644 index 00000000..fb627b09 --- /dev/null +++ b/pelican-plugins/m/test/dox/page.rst @@ -0,0 +1,7 @@ +m.dox +##### + +- Function link: :dox:`Utility::Directory::mkpath()` +- Class link: :dox:`Interconnect::Emitter` +- Page link: :dox:`building-corrade` +- :dox:`Custom link title ` diff --git a/pelican-plugins/m/test/test_dox.py b/pelican-plugins/m/test/test_dox.py new file mode 100644 index 00000000..242b0c11 --- /dev/null +++ b/pelican-plugins/m/test/test_dox.py @@ -0,0 +1,14 @@ +from m.test import PluginTestCase + +class Dox(PluginTestCase): + def __init__(self, *args, **kwargs): + super().__init__(__file__, '', *args, **kwargs) + + def test(self): + self.run_pelican({ + 'PLUGINS': ['m.htmlsanity', 'm.dox'], + 'M_DOX_TAGFILES': [ + ('../doc/doxygen/corrade.tag', 'http://doc.magnum.graphics/corrade/', ['Corrade::'])] + }) + + self.assertEqual(*self.actual_expected_contents('page.html')) -- 2.30.2