Skip to content

Commit

Permalink
[Docs] Update custom manpage builder to support Sphinx 1.3.6
Browse files Browse the repository at this point in the history
Fix windows build file to use custom manpage builder.
  • Loading branch information
Nicola Nye committed Apr 19, 2016
1 parent 15286a7 commit f3fab4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ if "%1" == "text" (
)

if "%1" == "man" (
%SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man
%SPHINXBUILD% -b cyrman %ALLSPHINXOPTS% %BUILDDIR%/man
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The manual pages are in %BUILDDIR%/man.
Expand Down
5 changes: 3 additions & 2 deletions doc/source/exts/sphinxlocal/builders/manpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

from os import path

from six import string_types
from docutils.io import FileOutput
from docutils.frontend import OptionParser

Expand Down Expand Up @@ -59,7 +60,7 @@ def write(self, *ignored):

for info in self.config.man_pages:
docname, name, description, authors, section = info
if isinstance(authors, basestring):
if isinstance(authors, string_types):
if authors:
authors = [authors]
else:
Expand All @@ -74,7 +75,7 @@ def write(self, *ignored):
tree = self.env.get_doctree(docname)
docnames = set()
largetree = inline_all_toctrees(self, docnames, docname, tree,
darkgreen)
darkgreen, [docname])
self.info('} ', nonl=True)
self.env.resolve_references(largetree, docname, self)
# remove pending_xref nodes
Expand Down

0 comments on commit f3fab4e

Please sign in to comment.