Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2022-03-26 19:55:34 +0300
committerGitHub <noreply@github.com>2022-03-26 19:55:34 +0300
commitdfa742a99b4e3f6776342918ebe67161ecf497fd (patch)
tree2d6b60b5b24c814acb85ded4def5eef76b7ec66c
parent3816bcdfa9cf65f9af6c70bbf7837fd51841ddfa (diff)
parent6dbf1a3c8569d9534d7af1690a7269546737bbbb (diff)
Merge pull request #10284 from tk0miya/10269_manpage_resolving_refuri
Fix #10269: manpage: Failed to resolve the title of :ref: cross references
-rw-r--r--CHANGES1
-rw-r--r--sphinx/builders/manpage.py5
2 files changed, 2 insertions, 4 deletions
diff --git a/CHANGES b/CHANGES
index 7e38710d4..02c8ab307 100644
--- a/CHANGES
+++ b/CHANGES
@@ -43,6 +43,7 @@ Bugs fixed
variables/structure members
* #10175: LaTeX: named footnote reference is linked to an incorrect footnote if
the name is also used in the different document
+* #10269: manpage: Failed to resolve the title of :ref: cross references
* #10179: i18n: suppress "rST localization" warning
* #10118: imgconverter: Unnecessary availablity check is called for remote URIs
* #10181: napoleon: attributes are displayed like class attributes for google
diff --git a/sphinx/builders/manpage.py b/sphinx/builders/manpage.py
index 43637b65a..cc6fc1fbe 100644
--- a/sphinx/builders/manpage.py
+++ b/sphinx/builders/manpage.py
@@ -10,7 +10,6 @@ from sphinx import addnodes
from sphinx.application import Sphinx
from sphinx.builders import Builder
from sphinx.config import Config
-from sphinx.errors import NoUri
from sphinx.locale import __
from sphinx.util import logging, progress_message
from sphinx.util.console import darkgreen # type: ignore
@@ -41,9 +40,7 @@ class ManualPageBuilder(Builder):
return 'all manpages' # for now
def get_target_uri(self, docname: str, typ: str = None) -> str:
- if typ == 'token':
- return ''
- raise NoUri(docname, typ)
+ return ''
@progress_message(__('writing'))
def write(self, *ignored: Any) -> None: