From: Vladimír Vondruš Date: Mon, 11 Dec 2017 02:02:25 +0000 (+0100) Subject: m.dox: initial test. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=d7840ed8feb58163cdb672c7445adaf1ce71f6e5;p=blog.git m.dox: initial test. --- 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'))