Skip to content

Commit 8594fe2

Browse files
committed
fixed includes
1 parent 82d2395 commit 8594fe2

File tree

2 files changed

+2
-26
lines changed

2 files changed

+2
-26
lines changed

docs/docsite/rst/dev_guide/developing_modules_documenting.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ All fields in the ``DOCUMENTATION`` block are lower-case. All fields are require
252252

253253
.. _module_documents_linking:
254254

255-
.. _include_document_linking.rst
255+
.. _include:: document_linking.rst
256256

257257
.. _semantic_markup:
258258

docs/docsite/rst/dev_guide/plugins_documenting.rst

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -219,31 +219,7 @@ All fields in the ``DOCUMENTATION`` block are lower-case. All fields are require
219219

220220
.. _plugins_documents_linking:
221221

222-
.. _include_document_linking.rst
223-
Linking within plugin documentation
224-
-----------------------------------
225-
226-
You can link from your plugin documentation to other module docs, other resources on docs.ansible.com, and resources elsewhere on the internet with the help of some pre-defined macros. The correct formats for these macros are:
227-
228-
* ``L()`` for links with a heading. For example: ``See L(Ansible Automation Platform,https://www.ansible.com/products/automation-platform).`` As of Ansible 2.10, do not use ``L()`` for relative links between Ansible documentation and collection documentation.
229-
* ``U()`` for URLs. For example: ``See U(https://www.ansible.com/products/automation-platform) for an overview.``
230-
* ``R()`` for cross-references with a heading (added in Ansible 2.10). For example: ``See R(Cisco IOS Platform Guide,ios_platform_options)``. Use the RST anchor for the cross-reference. See :ref:`adding_anchors_rst` for details.
231-
* ``M()`` for module names. For example: ``See also M(ansible.builtin.yum) or M(community.general.apt_rpm)``. A FQCN **must** be used, short names will create broken links; use ``ansible.builtin`` for modules in ansible-core.
232-
* ``P()`` for plugin names. For example: ``See also P(ansible.builtin.file#lookup) or P(community.general.json_query#filter)``. This can also reference roles: ``P(community.sops.install#role)``. This is supported since ansible-core 2.15. FQCNs must be used; use ``ansible.builtin`` for plugins in ansible-core.
233-
234-
.. note::
235-
236-
For links between pluigins and documentation within a collection, you can use any of the options above. For links outside of your collection, use ``R()`` if available. Otherwise, use ``U()`` or ``L()`` with full URLs (not relative links). For modules, use ``M()`` with the FQCN or ``ansible.builtin`` as shown in the example. If you are creating your own documentation site, you will need to use the `intersphinx extension <https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html>`_ to convert ``R()`` and ``M()`` to the correct links.
237-
238-
.. note::
239-
To refer to a group of modules in a collection, use ``R()``. When a collection is not the right granularity, use ``C(..)``:
240-
241-
- ``Refer to the R(kubernetes.core collection, plugins_in_kubernetes.core) for information on managing kubernetes clusters.``
242-
- ``The C(win_*) modules (spread across several collections) allow you to manage various aspects of windows hosts.``
243-
244-
.. note::
245-
246-
Because it stands out better, use ``seealso`` for general references over the use of notes or adding links to the description.
222+
.. _include:: document_linking.rst
247223

248224
.. _plugins_semantic_markup:
249225

0 commit comments

Comments
 (0)