mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #4823 from tk0miya/4817_fix_URLs
Fix #4817: wrong URLs on warning messages
This commit is contained in:
commit
dbafab6a9f
1
CHANGES
1
CHANGES
@ -23,6 +23,7 @@ Bugs fixed
|
|||||||
* #4783: On windows, Sphinx crashed when drives of srcdir and outdir are
|
* #4783: On windows, Sphinx crashed when drives of srcdir and outdir are
|
||||||
different
|
different
|
||||||
* #4812: autodoc ignores type annotated variables
|
* #4812: autodoc ignores type annotated variables
|
||||||
|
* #4817: wrong URLs on warning messages
|
||||||
|
|
||||||
Testing
|
Testing
|
||||||
--------
|
--------
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
# This file does only contain a selection of the most common options. For a
|
# This file does only contain a selection of the most common options. For a
|
||||||
# full list see the documentation:
|
# full list see the documentation:
|
||||||
# http://www.sphinx-doc.org/en/stable/config
|
# http://www.sphinx-doc.org/en/master/config
|
||||||
|
|
||||||
# -- Path setup --------------------------------------------------------------
|
# -- Path setup --------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -873,7 +873,7 @@ class HTMLTranslator(BaseTranslator):
|
|||||||
# type: (nodes.Node, unicode) -> None
|
# type: (nodes.Node, unicode) -> None
|
||||||
logger.warning('using "math" markup without a Sphinx math extension '
|
logger.warning('using "math" markup without a Sphinx math extension '
|
||||||
'active, please use one of the math extensions '
|
'active, please use one of the math extensions '
|
||||||
'described at http://sphinx-doc.org/ext/math.html',
|
'described at http://sphinx-doc.org/en/master/ext/math.html',
|
||||||
location=(self.builder.current_docname, node.line))
|
location=(self.builder.current_docname, node.line))
|
||||||
raise nodes.SkipNode
|
raise nodes.SkipNode
|
||||||
|
|
||||||
|
@ -827,7 +827,7 @@ class HTML5Translator(BaseTranslator):
|
|||||||
# type: (nodes.Node, unicode) -> None
|
# type: (nodes.Node, unicode) -> None
|
||||||
logger.warning('using "math" markup without a Sphinx math extension '
|
logger.warning('using "math" markup without a Sphinx math extension '
|
||||||
'active, please use one of the math extensions '
|
'active, please use one of the math extensions '
|
||||||
'described at http://sphinx-doc.org/ext/math.html',
|
'described at http://sphinx-doc.org/en/master/ext/math.html',
|
||||||
location=(self.builder.current_docname, node.line))
|
location=(self.builder.current_docname, node.line))
|
||||||
raise nodes.SkipNode
|
raise nodes.SkipNode
|
||||||
|
|
||||||
|
@ -2630,7 +2630,7 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
|||||||
# type: (nodes.Node) -> None
|
# type: (nodes.Node) -> None
|
||||||
logger.warning('using "math" markup without a Sphinx math extension '
|
logger.warning('using "math" markup without a Sphinx math extension '
|
||||||
'active, please use one of the math extensions '
|
'active, please use one of the math extensions '
|
||||||
'described at http://sphinx-doc.org/ext/math.html',
|
'described at http://sphinx-doc.org/en/master/ext/math.html',
|
||||||
location=(self.curfilestack[-1], node.line))
|
location=(self.curfilestack[-1], node.line))
|
||||||
raise nodes.SkipNode
|
raise nodes.SkipNode
|
||||||
|
|
||||||
|
@ -515,7 +515,7 @@ class ManualPageTranslator(BaseTranslator):
|
|||||||
# type: (nodes.Node) -> None
|
# type: (nodes.Node) -> None
|
||||||
logger.warning('using "math" markup without a Sphinx math extension '
|
logger.warning('using "math" markup without a Sphinx math extension '
|
||||||
'active, please use one of the math extensions '
|
'active, please use one of the math extensions '
|
||||||
'described at http://sphinx-doc.org/ext/math.html')
|
'described at http://sphinx-doc.org/en/master/ext/math.html')
|
||||||
raise nodes.SkipNode
|
raise nodes.SkipNode
|
||||||
|
|
||||||
visit_math_block = visit_math
|
visit_math_block = visit_math
|
||||||
|
@ -1745,7 +1745,7 @@ class TexinfoTranslator(nodes.NodeVisitor):
|
|||||||
# type: (nodes.Node) -> None
|
# type: (nodes.Node) -> None
|
||||||
logger.warning('using "math" markup without a Sphinx math extension '
|
logger.warning('using "math" markup without a Sphinx math extension '
|
||||||
'active, please use one of the math extensions '
|
'active, please use one of the math extensions '
|
||||||
'described at http://sphinx-doc.org/ext/math.html')
|
'described at http://sphinx-doc.org/en/master/ext/math.html')
|
||||||
raise nodes.SkipNode
|
raise nodes.SkipNode
|
||||||
|
|
||||||
visit_math_block = visit_math
|
visit_math_block = visit_math
|
||||||
|
@ -1185,7 +1185,7 @@ class TextTranslator(nodes.NodeVisitor):
|
|||||||
# type: (nodes.Node) -> None
|
# type: (nodes.Node) -> None
|
||||||
logger.warning('using "math" markup without a Sphinx math extension '
|
logger.warning('using "math" markup without a Sphinx math extension '
|
||||||
'active, please use one of the math extensions '
|
'active, please use one of the math extensions '
|
||||||
'described at http://sphinx-doc.org/ext/math.html',
|
'described at http://sphinx-doc.org/en/master/ext/math.html',
|
||||||
location=(self.builder.current_docname, node.line))
|
location=(self.builder.current_docname, node.line))
|
||||||
raise nodes.SkipNode
|
raise nodes.SkipNode
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user