Add sphinx.ext.githubpages to publish the docs on GitHub Pages

This commit is contained in:
Takeshi KOMIYA
2016-01-02 22:02:21 +09:00
parent ddf6acd33c
commit 0ea518d563
8 changed files with 69 additions and 1 deletions

View File

@@ -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()