Skip to content

Commit 5e32f6c

Browse files
felixfonteinpatchback[bot]
authored andcommitted
Replace URLs into the Ansible docsite with RST references (#3281)
* Replace URLs into the Ansible docsite with RST references. * Add anscollection role to rstcheck. (cherry picked from commit a5685df)
1 parent 72ee7fd commit 5e32f6c

File tree

12 files changed

+21
-14
lines changed

12 files changed

+21
-14
lines changed

docs/docsite/rst/community/collection_contributors/collection_release_with_branches.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Collections MUST follow the `semantic versioning <https://semver.org/>`_ rules.
1212
Release planning and announcement
1313
----------------------------------
1414

15-
#. Announce your intention to release the collection in a corresponding pinned release issue/community pinboard of the collection and in the ``#ansible-community`` `Matrix/IRC channel <https://docs.ansible.com/projects/ansible/devel/community/communication.html#real-time-chat>`_. Repeat the announcement in any other dedicated channels if they exist.
15+
#. Announce your intention to release the collection in a corresponding pinned release issue/community pinboard of the collection and in the ``#ansible-community`` :ref:`Matrix/IRC channel <communication_irc>`. Repeat the announcement in any other dedicated channels if they exist.
1616

1717
#. Ensure all the other repository maintainers are informed about the time of the following release.
1818

@@ -152,7 +152,7 @@ Publishing the collection
152152

153153
5. Announce the release through the `Bullhorn Newsletter <https://forum.ansible.com/c/news/bullhorn/17>`_.
154154

155-
6. Announce the release in the pinned release issue/community pinboard of the collection and in the ``#ansible-community`` `Matrix/Libera.Chat IRC channel <https://docs.ansible.com/projects/ansible/devel/community/communication.html#real-time-chat>`_.
155+
6. Announce the release in the pinned release issue/community pinboard of the collection and in the ``#ansible-community`` :ref:`Matrix/Libera.Chat IRC channel <communication_irc>`.
156156

157157
7. In the ``stable-X`` branch, update the version in ``galaxy.yml`` to the next **expected** version, for example, ``X.1.0``. Add, commit and push to the **upstream** repository.
158158

@@ -207,7 +207,7 @@ Publishing the collection
207207

208208
4. Announce the release through the `Bullhorn Newsletter <https://forum.ansible.com/c/news/bullhorn/17>`_.
209209

210-
5. Announce the release in the pinned release issue/community pinboard of the collection and in the ``#ansible-community`` `Matrix/IRC channel <https://docs.ansible.com/projects/ansible/devel/community/communication.html#real-time-chat>`_. Additionally, you can announce it using GitHub's Releases system.
210+
5. Announce the release in the pinned release issue/community pinboard of the collection and in the ``#ansible-community`` :ref:`Matrix/IRC channel <communication_irc>`. Additionally, you can announce it using GitHub's Releases system.
211211

212212
6. In the ``stable-X`` branch, update the version in ``galaxy.yml`` to the next **expected** version, for example, if you have released ``X.1.0``, the next expected version could be ``X.2.0``. Add, commit and push to the **upstream** repository.
213213

@@ -291,7 +291,7 @@ Releasing when more minor versions are expected
291291

292292
4. Announce the release through the `Bullhorn Newsletter <https://forum.ansible.com/c/news/bullhorn/17>`_.
293293

294-
5. Announce the release in the pinned release issue/community pinboard of the collection and in the ``#ansible-community`` `Matrix/IRC channel <https://docs.ansible.com/projects/ansible/devel/community/communication.html#real-time-chat>`.
294+
5. Announce the release in the pinned release issue/community pinboard of the collection and in the ``#ansible-community`` :ref:`Matrix/IRC channel <communication_irc>`.
295295

296296

297297
Releasing when no more minor versions are expected
@@ -338,4 +338,4 @@ Releasing when no more minor versions are expected
338338

339339
4. Announce the release through the `Bullhorn Newsletter <https://forum.ansible.com/c/news/bullhorn/17>`_.
340340

341-
5. Announce the release in the pinned issue/community pinboard of the collection and in the ``#ansible-community`` `Matrix/IRC channel <https://docs.ansible.com/projects/ansible/devel/community/communication.html#real-time-chat>`_.
341+
5. Announce the release in the pinned issue/community pinboard of the collection and in the ``#ansible-community`` :ref:`Matrix/IRC channel <communication_irc>`.

docs/docsite/rst/community/contributor_path.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Find the corresponding project
2222
These are multiple community projects in the Ansible ecosystem you could contribute to:
2323

2424
- `Ansible Core <https://docs.ansible.com/ansible-core/devel/index.html>`_
25-
- `Collections <https://docs.ansible.com/projects/ansible/latest/user_guide/collections_using.html>`_
25+
- :ref:`Collections <collections_index>`
2626
- `AWX <https://github.com/ansible/awx>`_
2727
- `Galaxy <https://galaxy.ansible.com/>`_
2828
- `ansible-lint <https://ansible-lint.readthedocs.io/en/latest/>`_

docs/docsite/rst/community/steering/steering_committee_membership.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ In case of absence or irregular participation, the removal process consists of t
129129
Ansible Community Code of Conduct violations
130130
.............................................
131131

132-
In case of the `Ansible Community Code of Conduct <https://docs.ansible.com/projects/ansible/latest/community/code_of_conduct.html>`_ violations, the process is the same as above except steps 1-2. Instead:
132+
In case of the :ref:`Ansible Community Code of Conduct <code_of_conduct>` violations, the process is the same as above except steps 1-2. Instead:
133133

134134
#. The initiator reports the case to the Committee by email.
135135

docs/docsite/rst/dev_guide/developing_modules_general.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ information, including instructions for :ref:`testing module documentation <test
180180

181181
.. note::
182182
If contributing to Ansible, every new module and plugin should have integration tests, even if the tests cannot be run on Ansible CI infrastructure.
183-
In this case, the tests should be marked with the ``unsupported`` alias in `aliases file <https://docs.ansible.com/projects/ansible/latest/dev_guide/testing/sanity/integration-aliases.html>`_.
183+
In this case, the tests should be marked with the ``unsupported`` alias in :ref:`aliases file <integration_aliases>`.
184184

185185

186186
Contributing back to Ansible

docs/docsite/rst/dev_guide/testing/sanity/import.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ Ansible allows the following unchecked imports from these specific directories:
134134
* For ``plugins/modules/`` and ``plugins/module_utils/``, unchecked imports are only allowed from the Python standard library;
135135
* For other directories in ``plugins/`` (see `the community collection requirements <https://docs.ansible.com/projects/ansible/devel/community/collection_contributors/collection_requirements.html#modules-plugins>`_ for a list), unchecked imports are only allowed from the Python standard library, from public dependencies of ansible-core, and from ansible-core itself.
136136

137+
.. Note that the internal link above needs to stay since that page is not part of the ansible-core documentation,
138+
while this document is both part of the ansible-core and the ansible docsite.
139+
137140
Public dependencies of ansible-core are:
138141

139142
* Jinja2

docs/docsite/rst/dev_guide/testing/sanity/integration-aliases.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _integration_aliases:
2+
13
integration-aliases
24
===================
35

docs/docsite/rst/dev_guide/testing_integration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Some tests may require root.
1818

1919
.. note::
2020
Every new module and plugin should have integration tests, even if the tests cannot be run on Ansible CI infrastructure.
21-
In this case, the tests should be marked with the ``unsupported`` alias in `aliases file <https://docs.ansible.com/projects/ansible/latest/dev_guide/testing/sanity/integration-aliases.html>`_.
21+
In this case, the tests should be marked with the ``unsupported`` alias in :ref:`aliases file <integration_aliases>`.
2222

2323
Quick Start
2424
===========

docs/docsite/rst/inventory_guide/intro_inventory.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Ansible :ref:`inventory_plugins` supports a range of formats and sources, which
1919
.. contents::
2020
:local:
2121

22-
The following YAML snippets include an ellipsis (...) to indicate that the snippets are part of a larger YAML file. You can find out more about YAML syntax at `YAML Basics <https://docs.ansible.com/projects/ansible/latest/reference_appendices/YAMLSyntax.html#yaml-basics">`_.
22+
The following YAML snippets include an ellipsis (...) to indicate that the snippets are part of a larger YAML file. You can find out more about YAML syntax at :ref:`yaml_basics`.
2323

2424
.. _inventoryformat:
2525

docs/docsite/rst/playbook_guide/playbooks_tests.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ In Ansible 2.14, the ``pep440`` option for ``version_type`` was added, and the r
195195

196196
"{{ '2.14.0rc1' is version('2.14.0', 'lt', version_type='pep440') }}"
197197

198-
When using ``version`` in a playbook or role, don't use ``{{ }}`` as described in the `FAQ <https://docs.ansible.com/projects/ansible/latest/reference_appendices/faq.html#when-should-i-use-also-how-to-interpolate-variables-or-dynamic-variable-names>`_
198+
When using ``version`` in a playbook or role, don't use ``{{ }}`` as described in the :ref:`FAQ <when_to_use_brackets>`:
199199

200200
.. code-block:: yaml
201201

docs/docsite/rst/reference_appendices/YAMLSyntax.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ You may also wish to read :ref:`working_with_playbooks` at the same time to see
1515
is used in practice.
1616

1717

18+
.. _yaml_basics:
19+
1820
YAML Basics
1921
-----------
2022

0 commit comments

Comments
 (0)