mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
merge with stable
This commit is contained in:
commit
db0f7ccc70
10
CHANGES
10
CHANGES
@ -122,7 +122,15 @@ Bugs fixed
|
||||
* #1358: Fix handling of image paths outside of the source directory when using
|
||||
the "wildcard" style reference.
|
||||
* #1374: Fix for autosummary generating overly-long summaries if first line
|
||||
doesn't end with a period
|
||||
doesn't end with a period.
|
||||
* #1391: Actually prevent using "pngmath" and "mathjax" extensions at the same
|
||||
time in sphinx-quickstart.
|
||||
* #1386: Fix bug preventing more than one theme being added by the entry point
|
||||
mechanism.
|
||||
* #1370: Ignore "toctree" nodes in text writer, instead of raising.
|
||||
* #1364: Fix 'make gettext' fails when the '.. todolist::' directive is present.
|
||||
* #1367: Fix a change of PR#96 that break sphinx.util.docfields.Field.make_field
|
||||
interface/behavior for `item` argument usage.
|
||||
|
||||
Documentation
|
||||
-------------
|
||||
|
@ -55,6 +55,9 @@ class Catalog(object):
|
||||
self.metadata = {} # msgid -> file, line, uid
|
||||
|
||||
def add(self, msg, origin):
|
||||
if not hasattr(origin, 'uid'):
|
||||
# Nodes that are replicated like todo don't have a uid, however i18n is also unnecessary.
|
||||
return
|
||||
if msg not in self.metadata: # faster lookup in hash
|
||||
self.messages.append(msg)
|
||||
self.metadata[msg] = []
|
||||
|
@ -1183,6 +1183,7 @@ Please indicate if you want to use one of the following Sphinx extensions:''')
|
||||
if d['ext_pngmath'] and d['ext_mathjax']:
|
||||
print('''Note: pngmath and mathjax cannot be enabled at the same time.
|
||||
pngmath has been deselected.''')
|
||||
d['ext_pngmath'] = False
|
||||
if 'ext_ifconfig' not in d:
|
||||
do_prompt(d, 'ext_ifconfig', 'ifconfig: conditional inclusion of '
|
||||
'content based on config values (y/n)', 'n', boolean)
|
||||
|
@ -67,7 +67,7 @@ class Field(object):
|
||||
fieldname += nodes.Text(' ')
|
||||
fieldname += self.make_xref(self.rolename, domain,
|
||||
fieldarg, nodes.Text)
|
||||
fieldbody = nodes.field_body('', nodes.paragraph('', '', content))
|
||||
fieldbody = nodes.field_body('', nodes.paragraph('', '', *content))
|
||||
return nodes.field('', fieldname, fieldbody)
|
||||
|
||||
|
||||
@ -272,10 +272,10 @@ class DocFieldTransformer(object):
|
||||
groupindices[typename] = len(entries)
|
||||
group = [typedesc, []]
|
||||
entries.append(group)
|
||||
entry = typedesc.make_entry(fieldarg, translatable_content)
|
||||
entry = typedesc.make_entry(fieldarg, [translatable_content])
|
||||
group[1].append(entry)
|
||||
else:
|
||||
entry = typedesc.make_entry(fieldarg, translatable_content)
|
||||
entry = typedesc.make_entry(fieldarg, [translatable_content])
|
||||
entries.append([typedesc, entry])
|
||||
|
||||
# step 2: all entries are collected, construct the new field list
|
||||
|
@ -729,6 +729,9 @@ class TextTranslator(nodes.NodeVisitor):
|
||||
def visit_index(self, node):
|
||||
raise nodes.SkipNode
|
||||
|
||||
def visit_toctree(self, node):
|
||||
raise nodes.SkipNode
|
||||
|
||||
def visit_substitution_definition(self, node):
|
||||
raise nodes.SkipNode
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user