diff --git a/CHANGES b/CHANGES index d3ad98ec6..89ad3d8d5 100644 --- a/CHANGES +++ b/CHANGES @@ -23,6 +23,7 @@ Bugs fixed * #4783: On windows, Sphinx crashed when drives of srcdir and outdir are different * #4812: autodoc ignores type annotated variables +* #4817: wrong URLs on warning messages Testing -------- diff --git a/sphinx/templates/quickstart/conf.py_t b/sphinx/templates/quickstart/conf.py_t index 2f3f71b1e..6a648f39c 100644 --- a/sphinx/templates/quickstart/conf.py_t +++ b/sphinx/templates/quickstart/conf.py_t @@ -4,7 +4,7 @@ # # This file does only contain a selection of the most common options. For a # full list see the documentation: -# http://www.sphinx-doc.org/en/stable/config +# http://www.sphinx-doc.org/en/master/config # -- Path setup -------------------------------------------------------------- diff --git a/sphinx/writers/html.py b/sphinx/writers/html.py index 0fc4a7bea..2aef7833e 100644 --- a/sphinx/writers/html.py +++ b/sphinx/writers/html.py @@ -873,7 +873,7 @@ class HTMLTranslator(BaseTranslator): # type: (nodes.Node, unicode) -> None logger.warning('using "math" markup without a Sphinx math extension ' '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)) raise nodes.SkipNode diff --git a/sphinx/writers/html5.py b/sphinx/writers/html5.py index 21d7626ef..fcf1e8875 100644 --- a/sphinx/writers/html5.py +++ b/sphinx/writers/html5.py @@ -827,7 +827,7 @@ class HTML5Translator(BaseTranslator): # type: (nodes.Node, unicode) -> None logger.warning('using "math" markup without a Sphinx math extension ' '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)) raise nodes.SkipNode diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index 472107db3..0fecd7b8a 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -2630,7 +2630,7 @@ class LaTeXTranslator(nodes.NodeVisitor): # type: (nodes.Node) -> None logger.warning('using "math" markup without a Sphinx math extension ' '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)) raise nodes.SkipNode diff --git a/sphinx/writers/manpage.py b/sphinx/writers/manpage.py index 38954ca81..3f58fc31d 100644 --- a/sphinx/writers/manpage.py +++ b/sphinx/writers/manpage.py @@ -515,7 +515,7 @@ class ManualPageTranslator(BaseTranslator): # type: (nodes.Node) -> None logger.warning('using "math" markup without a Sphinx math extension ' '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 visit_math_block = visit_math diff --git a/sphinx/writers/texinfo.py b/sphinx/writers/texinfo.py index cce269479..051ce9de6 100644 --- a/sphinx/writers/texinfo.py +++ b/sphinx/writers/texinfo.py @@ -1745,7 +1745,7 @@ class TexinfoTranslator(nodes.NodeVisitor): # type: (nodes.Node) -> None logger.warning('using "math" markup without a Sphinx math extension ' '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 visit_math_block = visit_math diff --git a/sphinx/writers/text.py b/sphinx/writers/text.py index 5e870efa2..d6a72ad58 100644 --- a/sphinx/writers/text.py +++ b/sphinx/writers/text.py @@ -1185,7 +1185,7 @@ class TextTranslator(nodes.NodeVisitor): # type: (nodes.Node) -> None logger.warning('using "math" markup without a Sphinx math extension ' '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)) raise nodes.SkipNode