Skip to content

Commit

Permalink
Fix #10269: manpage: Failed to resolve the title of :ref: cross refer…
Browse files Browse the repository at this point in the history
…ences
  • Loading branch information
tk0miya committed Mar 26, 2022
1 parent 40a8f2b commit 6dbf1a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGES
Expand Up @@ -42,6 +42,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
Expand Down
5 changes: 1 addition & 4 deletions sphinx/builders/manpage.py
Expand Up @@ -10,7 +10,6 @@
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
Expand Down Expand Up @@ -41,9 +40,7 @@ def get_outdated_docs(self) -> Union[str, List[str]]:
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:
Expand Down

0 comments on commit 6dbf1a3

Please sign in to comment.