Skip to content

Commit 3a19c7e

Browse files
authored
Merge pull request #178 from nileshpatra/fix-sphinx-build
Fix according changed sphinx API
2 parents 5a740b1 + 893388d commit 3a19c7e

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ install:
1111

1212
script:
1313
- py.test --pyargs nitime --cov-report term-missing --cov=nitime --verbose
14+
- sphinx-build doc html-no-exec
1415

1516
after_success:
1617
- coveralls

doc/sphinxext/github.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
from docutils import nodes, utils
2121
from docutils.parsers.rst.roles import set_classes
22+
from sphinx.util import logging
2223

2324
def make_link_node(rawtext, app, type, slug, options):
2425
"""Create a link to a github resource.
@@ -146,7 +147,8 @@ def setup(app):
146147
147148
:param app: Sphinx application context.
148149
"""
149-
app.info('Initializing GitHub plugin')
150+
LOG = logging.getLogger(__name__)
151+
LOG.info('Initializing GitHub plugin')
150152
app.add_role('ghissue', ghissue_role)
151153
app.add_role('ghpull', ghissue_role)
152154
app.add_role('ghuser', ghuser_role)

doc/sphinxext/only_directives.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ def builder_inited(app):
3737
html_only.traverse = only_base.dont_traverse
3838

3939
def setup(app):
40-
app.add_directive('htmlonly', html_only_directive, True, (0, 0, 0))
41-
app.add_directive('latexonly', latex_only_directive, True, (0, 0, 0))
40+
app.add_directive('htmlonly', html_only_directive, True)
41+
app.add_directive('latexonly', latex_only_directive, True)
4242
app.add_node(html_only)
4343
app.add_node(latex_only)
4444

0 commit comments

Comments
 (0)