mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge branch 'stable'
This commit is contained in:
commit
2b6eac73c3
4
CHANGES
4
CHANGES
@ -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)
|
||||
====================================
|
||||
|
||||
|
@ -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).
|
||||
%:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user