Skip to content

Commit 69732e8

Browse files
committed
Fix RST syntax and resolve rstcheck validation errors
- Corrected YAML formatting issues, ensuring valid syntax for rstcheck validation. - Fixed malformed tables by aligning columns and ensuring consistent formatting. - Addressed unreferenced and duplicate hyperlink targets, ensuring proper references or removal of unused targets. - Adjusted invalid code block types (e.g., switching from yaml to ini or text) for compatibility with rstcheck. - Resolved custom role (ansplugin) issues by either ignoring the role. Signed-off-by: Ganesh Hubale <[email protected]>
1 parent 6fae821 commit 69732e8

20 files changed

+38
-36
lines changed

docs/docsite/rst/collections_guide/collections_using_playbooks.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Once installed, you can reference a collection content by its fully qualified co
1818
1919
This works for roles or any type of plugin distributed within the collection:
2020

21-
.. code-block:: yaml
21+
.. code-block:: ini
2222
2323
- name: Reference collections contents using their FQCNs
2424
hosts: all

docs/docsite/rst/dev_guide/developing_collections_creating.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ A collection skeleton is a directory that looks like a collection directory but
9090

9191
An example ``galaxy.yml.j2`` file that accepts an optional dictionary variable ``dependencies`` could look like this:
9292

93-
.. code-block:: yaml
93+
.. code-block:: ini
9494
9595
namespace: {{ namespace }}
9696
name: {{ collection_name }}

docs/docsite/rst/inventory/implicit_localhost.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ When you try to reference a ``localhost`` and you don't have it defined in inven
1717
1818
In a case like this (or ``local_action``) when Ansible needs to contact a 'localhost' but you did not supply one, we create one for you. This host is defined with specific connection variables equivalent to this in an inventory:
1919

20-
.. code-block:: yaml
20+
.. code-block:: ini
2121
2222
...
2323

docs/docsite/rst/inventory_guide/intro_patterns.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ Slicing at specific items
179179

180180
If *i* is negative, the index is relative to the end of sequence *s*: ``len(s) + i`` is substituted. However ``-0`` is ``0``.
181181

182-
.. code-block:: yaml
182+
.. code-block:: python
183183

184184
webservers[0] # == cobweb
185185
webservers[-1] # == weber
@@ -198,7 +198,7 @@ If *i* is greater than *j*, the slice is empty.
198198
If *i* is equal to *j*, the *s[i]* is substituted.
199199

200200

201-
.. code-block:: yaml
201+
.. code-block:: python
202202

203203
webservers[0:2] # == webservers[0],webservers[1],webservers[2]
204204
# == cobweb,webbing,weber

docs/docsite/rst/network/dev_guide/developing_resource_modules_network.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ For any subsequent changes to the functionality, update the model first and use
123123

124124
For example, the resource model builder includes the ``myos_interfaces.yml`` sample in the :file:`models` directory, as seen below:
125125

126-
.. code-block:: yaml
126+
.. code-block:: ini
127127
128128
---
129129
GENERATOR_VERSION: '1.0'
@@ -359,7 +359,7 @@ Using the collection
359359

360360
This example shows how to use the generated collection in a playbook:
361361

362-
.. code-block:: yaml
362+
.. code-block:: ini
363363
364364
----
365365
- hosts: myos101
@@ -558,7 +558,7 @@ The following example walks through the integration tests for the ``vyos.vyos.vy
558558
559559
``test/integration/targets/vyos_l3_interfaces/tests/cli/overridden.yaml``
560560

561-
.. code-block:: yaml
561+
.. code-block:: ini
562562
563563
---
564564
- debug:

docs/docsite/rst/network/getting_started/first_inventory.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ and type in the vault password for ``my_user``.
361361

362362
The :option:`--vault-id <ansible-playbook --vault-id>` flag allows different vault passwords for different users or different levels of access. The output includes the username ``my_user`` from your ``ansible-vault`` command and uses the YAML syntax ``key: value``:
363363

364-
.. code-block:: yaml
364+
.. code-block:: ini
365365
366366
ansible_password: !vault |
367367
$ANSIBLE_VAULT;1.2;AES256;my_user
@@ -374,7 +374,7 @@ The :option:`--vault-id <ansible-playbook --vault-id>` flag allows different vau
374374
375375
This is an example using an extract from a YAML inventory, as the INI format does not support inline vaults:
376376

377-
.. code-block:: yaml
377+
.. code-block:: ini
378378
379379
...
380380

docs/docsite/rst/network/user_guide/cli_parsing.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ Taking a deeper dive into this task:
167167

168168
Lastly in this task, the ``set_fact`` option sets the following ``interfaces`` fact for the device based on the now-structured data returned from ``cli_parse``:
169169

170-
.. code-block:: yaml
170+
.. code-block:: ini
171171
172172
Ethernet1/1:
173173
hardware: 100/1000/10000 Ethernet
@@ -258,7 +258,7 @@ This task assumes you previously gathered facts to determine the ``ansible_distr
258258

259259
Lastly in this task, the ``set_fact`` option sets the following ``interfaces`` fact for the host, based on the now-structured data returned from ``cli_parse``:
260260

261-
.. code-block:: yaml
261+
.. code-block:: ini
262262
263263
lo:
264264
broadcast: false
@@ -399,7 +399,7 @@ Taking a deeper dive into this task:
399399

400400
This task sets the following fact as the ``interfaces`` fact for the host:
401401

402-
.. code-block:: yaml
402+
.. code-block:: ini
403403
404404
mgmt0:
405405
admin_state: up
@@ -615,7 +615,7 @@ Although Ansible contains a number of plugins that can convert XML to Ansible na
615615

616616
This example task runs the ``show interface`` command and parses the output as XML:
617617

618-
.. code-block:: yaml
618+
.. code-block:: ini
619619
620620
- name: "Run command and parse as xml"
621621
ansible.utils.cli_parse:

docs/docsite/rst/network/user_guide/network_best_practices_2.5.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ The "Vault" feature of Ansible allows you to keep sensitive data such as passwor
9191

9292
Here's what it would look like if you specified your SSH passwords (encrypted with Ansible Vault) among your variables:
9393

94-
.. code-block:: yaml
94+
.. code-block:: ini
9595
9696
ansible_connection: ansible.netcommon.network_cli
9797
ansible_network_os: vyos.vyos.vyos

docs/docsite/rst/network/user_guide/network_resource_modules.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ The following table shows an example of how an initial resource configuration ch
5353
+-----------------------------------------+------------------------------------+-----------------------------------------+
5454
| Resource starting configuration | task-provided configuration (YAML) | Final resource configuration on device |
5555
+=========================================+====================================+=========================================+
56-
| .. code-block:: text | .. code-block:: yaml | *merged* |
56+
| .. code-block:: text | .. code-block:: ini | *merged* |
5757
| | | .. code-block:: text |
5858
| interface loopback100 | config: | |
5959
| ip address 10.10.1.100 255.255.255.0 | - ipv6: | interface loopback100 |
@@ -88,7 +88,7 @@ Network resource modules return the following details:
8888
* The *after* state - the new resource configuration that exists on the network device after the task was executed.
8989
* Commands - any commands configured on the device.
9090

91-
.. code-block:: yaml
91+
.. code-block:: ini
9292
9393
ok: [nxos101] =>
9494
result:

docs/docsite/rst/os_guide/intro_bsd.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ The playbook below
157157
158158
displays the details
159159

160-
.. code-block:: yaml
160+
.. code-block:: shell
161161
162162
shell> ANSIBLE_STDOUT_CALLBACK=yaml ansible-playbook -i hosts playbook.yml
163163

0 commit comments

Comments
 (0)