Merge branch 'stable'

This commit is contained in:
Takeshi KOMIYA 2016-10-20 14:42:54 +09:00
commit 2b6eac73c3
3 changed files with 9 additions and 4 deletions

View File

@ -228,6 +228,10 @@ Release 1.4.9 (in development)
Bugs fixed
----------
* #2936: Fix doc/Makefile that can't build man because doc/man exists
* #3058: Using the same 'caption' attribute in multiple 'toctree' directives
results in warning / error
Release 1.4.8 (released Oct 1, 2016)
====================================

View File

@ -1,3 +1,4 @@
.PHONY: man
# Makefile for Sphinx documentation
#
@ -12,6 +13,9 @@ BUILDDIR = _build
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
man:
@$(SPHINXBUILD) -M man "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%:

View File

@ -53,9 +53,6 @@ class TocTree(Directive):
env = self.state.document.settings.env
suffixes = env.config.source_suffix
glob = 'glob' in self.options
caption = self.options.get('caption')
if caption:
self.options.setdefault('name', nodes.fully_normalize_name(caption))
ret = []
# (title, ref) pairs, where ref may be a document, or an external link,
@ -116,7 +113,7 @@ class TocTree(Directive):
# includefiles only entries that are documents
subnode['includefiles'] = includefiles
subnode['maxdepth'] = self.options.get('maxdepth', -1)
subnode['caption'] = caption
subnode['caption'] = self.options.get('caption')
subnode['glob'] = glob
subnode['hidden'] = 'hidden' in self.options
subnode['includehidden'] = 'includehidden' in self.options