From 3dc0c2135ed451e7fe0839740ad539b73ee4bdc9 Mon Sep 17 00:00:00 2001 From: Ozan Uslan <54141068+ozanuslan@users.noreply.github.com> Date: Sat, 1 Oct 2022 18:11:07 +0300 Subject: [PATCH] Docs: Add code-block wrappers to code examples in style_guide (#78970) * Docs: Add code-block wrappers to code examples in style_guide List of changed files: - docs/docsite/rst/dev-guide/style_guide/index.rst - docs/docsite/rst/dev-guide/style_guide/basic_rules.rst --- docs/docsite/rst/dev_guide/style_guide/basic_rules.rst | 4 +++- docs/docsite/rst/dev_guide/style_guide/index.rst | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/docsite/rst/dev_guide/style_guide/basic_rules.rst b/docs/docsite/rst/dev_guide/style_guide/basic_rules.rst index 034aece5409..fcb4abad687 100644 --- a/docs/docsite/rst/dev_guide/style_guide/basic_rules.rst +++ b/docs/docsite/rst/dev_guide/style_guide/basic_rules.rst @@ -61,7 +61,9 @@ For menu procedures, bold the menu names, button names, and so on to help the us 3. In the **Open** dialog box, click **Save**. 4. On the toolbar, click the **Open File** icon. -For code or command snippets, use the RST `code-block directive `_:: +For code or command snippets, use the RST `code-block directive `_: + +.. code-block:: rst .. code-block:: bash diff --git a/docs/docsite/rst/dev_guide/style_guide/index.rst b/docs/docsite/rst/dev_guide/style_guide/index.rst index 0183ba99212..b43b9164d31 100644 --- a/docs/docsite/rst/dev_guide/style_guide/index.rst +++ b/docs/docsite/rst/dev_guide/style_guide/index.rst @@ -192,7 +192,9 @@ Adding anchors * Include at least one anchor on every page * Place the main anchor above the main header -* If the file has a unique title, use that for the main page anchor:: +* If the file has a unique title, use that for the main page anchor: + +.. code-block:: text .. _unique_page::