summaryrefslogtreecommitdiff
path: root/tests/test_ext_githubpages.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2016-01-02 22:02:21 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2016-01-06 22:14:57 +0900
commit0ea518d563c4fcf2d1f9c694749f8a917e5a4198 (patch)
tree510cdce35d76b700d5f61fccb948eb75b9ffb3ae /tests/test_ext_githubpages.py
parentddf6acd33c31af56738566363efc0ac21396a1fe (diff)
downloadsphinx-git-0ea518d563c4fcf2d1f9c694749f8a917e5a4198.tar.gz
Add sphinx.ext.githubpages to publish the docs on GitHub Pages
Diffstat (limited to 'tests/test_ext_githubpages.py')
-rw-r--r--tests/test_ext_githubpages.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/test_ext_githubpages.py b/tests/test_ext_githubpages.py
new file mode 100644
index 000000000..00a3b77e4
--- /dev/null
+++ b/tests/test_ext_githubpages.py
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+"""
+ test_ext_githubpages
+ ~~~~~~~~~~~~~~~~~~~~
+
+ Test sphinx.ext.githubpages extension.
+
+ :copyright: Copyright 2007-2015 by the Sphinx team, see AUTHORS.
+ :license: BSD, see LICENSE for details.
+"""
+
+import re
+
+from util import with_app
+
+
+@with_app('html', testroot='ext-githubpages')
+def test_githubpages(app, status, warning):
+ app.builder.build_all()
+ assert (app.outdir / '.nojekyll').exists()