From cc6816faf973831899515a4f8d4eb9da75d2f0c2 Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Wed, 11 Dec 2019 16:02:49 +0100 Subject: [PATCH] doc: markup :option: role as :nref-option: role to prevent sphinx warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Roberto Abdelkader Martínez Pérez --- docs/source/the_project/security.rst | 2 +- docs/source/tutorial/tutorial04.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/the_project/security.rst b/docs/source/the_project/security.rst index 85375cc..4cab781 100644 --- a/docs/source/the_project/security.rst +++ b/docs/source/the_project/security.rst @@ -65,7 +65,7 @@ This will *silently delete all the files below the current directory*, no questions asked. Probably not what you expected. This happens because :command:`find` has the last word on how to interpret its -arguments. For :command:`find`, the argument :option:`-delete` is not a path. +arguments. For :command:`find`, the argument :nref-option:`-delete` is not a path. Let's see how we can handle this particular case: diff --git a/docs/source/tutorial/tutorial04.rst b/docs/source/tutorial/tutorial04.rst index 511131a..5c01b89 100644 --- a/docs/source/tutorial/tutorial04.rst +++ b/docs/source/tutorial/tutorial04.rst @@ -151,7 +151,7 @@ I Need my Report! OK, I understand. That's cool, by the way. So, if I want to use this with *Kapow!*, I have to make it read the script - from ``stdin``. To do this I know that I have to put a ``-`` at the end. + from ``stdin``. To do this I know that I have to put a :nref-option:`-` at the end. Let me try: