From 4abc669c24f46ef3dce65d7bd92f768754a768bb Mon Sep 17 00:00:00 2001 From: Brian Scholer <1260690+briantist@users.noreply.github.com> Date: Wed, 27 Oct 2021 14:23:45 -0400 Subject: [PATCH] Update module documentation about ref links (#76088) * Update module documentation about ref links --- .../rst/dev_guide/developing_modules_documenting.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/docsite/rst/dev_guide/developing_modules_documenting.rst b/docs/docsite/rst/dev_guide/developing_modules_documenting.rst index 7d4ab7e4505..2932e4f80b9 100644 --- a/docs/docsite/rst/dev_guide/developing_modules_documenting.rst +++ b/docs/docsite/rst/dev_guide/developing_modules_documenting.rst @@ -217,11 +217,20 @@ All fields in the ``DOCUMENTATION`` block are lower-case. All fields are require - ref: aci_guide description: Detailed information on how to manage your ACI infrastructure using Ansible. + # Reference by rST documentation anchor (with custom title) + - ref: The official Ansible ACI guide + description: Detailed information on how to manage your ACI infrastructure using Ansible. + # Reference by Internet resource - name: APIC Management Information Model reference description: Complete reference of the APIC object model. link: https://developer.cisco.com/docs/apic-mim-ref/ + + * If you use ``ref:`` to link to an anchor that is not associated with a title, you must add a title to the ref for the link to work correctly. + * You can link to non-module plugins with ``ref:`` using the rST anchor, but plugin and module anchors are never associated with a title, so you must supply a title when you link to them. For example ``ref: namespace.collection.plugin_name lookup plugin ``. + + :notes: * Details of any important information that doesn't fit in one of the above sections.