From 6770c6ae67c14d5bd0babff7068a947012635231 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sat, 20 Jan 2018 21:18:54 +0900 Subject: [PATCH] doc: Use :event: role --- sphinx/domains/__init__.py | 4 ++-- sphinx/io.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sphinx/domains/__init__.py b/sphinx/domains/__init__.py index c68d37472..009d3bfdb 100644 --- a/sphinx/domains/__init__.py +++ b/sphinx/domains/__init__.py @@ -281,11 +281,11 @@ class Domain(object): cross-reference. If no resolution can be found, None can be returned; the xref node will - then given to the 'missing-reference' event, and if that yields no + then given to the :event:`missing-reference` event, and if that yields no resolution, replaced by *contnode*. The method can also raise :exc:`sphinx.environment.NoUri` to suppress - the 'missing-reference' event being emitted. + the :event:`missing-reference` event being emitted. """ pass diff --git a/sphinx/io.py b/sphinx/io.py index d85b6c483..9a68146ac 100644 --- a/sphinx/io.py +++ b/sphinx/io.py @@ -157,7 +157,7 @@ class SphinxBaseFileInput(FileInput): """A base class of SphinxFileInput. It supports to replace unknown Unicode characters to '?'. And it also emits - Sphinx events ``source-read`` on reading. + Sphinx events :event:`source-read` on reading. """ def __init__(self, app, env, *args, **kwds):