From 09a97528a99ea7e449e7194c58e4ae4a99c078e2 Mon Sep 17 00:00:00 2001 From: Delapouite Date: Wed, 9 Oct 2019 07:56:49 +0200 Subject: [PATCH] doc: add cross-refs between if and else commands --- sphinx_doc_src/cmds/else.rst | 2 +- sphinx_doc_src/cmds/if.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sphinx_doc_src/cmds/else.rst b/sphinx_doc_src/cmds/else.rst index fb1622488..2355dafd4 100644 --- a/sphinx_doc_src/cmds/else.rst +++ b/sphinx_doc_src/cmds/else.rst @@ -13,7 +13,7 @@ Synopsis Description ----------- -``if`` will execute the command ``CONDITION``. If the condition's exit status is 0, the commands ``COMMANDS_TRUE`` will execute. If it is not 0 and ``else`` is given, ``COMMANDS_FALSE`` will be executed. +:ref:`if ` will execute the command ``CONDITION``. If the condition's exit status is 0, the commands ``COMMANDS_TRUE`` will execute. If it is not 0 and ``else`` is given, ``COMMANDS_FALSE`` will be executed. Example diff --git a/sphinx_doc_src/cmds/if.rst b/sphinx_doc_src/cmds/if.rst index b80b4b067..6e2e178b4 100644 --- a/sphinx_doc_src/cmds/if.rst +++ b/sphinx_doc_src/cmds/if.rst @@ -16,7 +16,7 @@ Synopsis Description ----------- -``if`` will execute the command ``CONDITION``. If the condition's exit status is 0, the commands ``COMMANDS_TRUE`` will execute. If the exit status is not 0 and ``else`` is given, ``COMMANDS_FALSE`` will be executed. +``if`` will execute the command ``CONDITION``. If the condition's exit status is 0, the commands ``COMMANDS_TRUE`` will execute. If the exit status is not 0 and :ref:`else ` is given, ``COMMANDS_FALSE`` will be executed. You can use :ref:`and ` or :ref:`or ` in the condition. See the second example below.