diff --git a/docs/bin/plugin_formatter.py b/docs/bin/plugin_formatter.py index 6223a202621..d44244a7055 100755 --- a/docs/bin/plugin_formatter.py +++ b/docs/bin/plugin_formatter.py @@ -75,6 +75,7 @@ _ITALIC = re.compile(r"I\(([^)]+)\)") _BOLD = re.compile(r"B\(([^)]+)\)") _MODULE = re.compile(r"M\(([^)]+)\)") _URL = re.compile(r"U\(([^)]+)\)") +_LINK = re.compile(r"L\(([^)]+),([^)]+)\)") _CONST = re.compile(r"C\(([^)]+)\)") DEPRECATED = b" (D)" @@ -90,6 +91,7 @@ def rst_ify(text): t = _ITALIC.sub(r"*\1*", text) t = _BOLD.sub(r"**\1**", t) t = _MODULE.sub(r":ref:`\1 <\1>`", t) + t = _LINK.sub(r"`\1 <\2>`_", t) t = _URL.sub(r"\1", t) t = _CONST.sub(r"`\1`", t) except Exception as e: @@ -109,6 +111,7 @@ def html_ify(text): t = _BOLD.sub(r"\1", t) t = _MODULE.sub(r"\1", t) t = _URL.sub(r"\1", t) + t = _LINK.sub(r"\1", t) t = _CONST.sub(r"\1", t) return t diff --git a/docs/docsite/rst/dev_guide/developing_modules_documenting.rst b/docs/docsite/rst/dev_guide/developing_modules_documenting.rst index c921e5f9446..a2b498386a0 100644 --- a/docs/docsite/rst/dev_guide/developing_modules_documenting.rst +++ b/docs/docsite/rst/dev_guide/developing_modules_documenting.rst @@ -407,6 +407,8 @@ Example usage:: See also M(win_copy) or M(win_template). ... See U(https://www.ansible.com/tower) for an overview. + ... + See L(IOS Platform Options guide, ../network/user_guide/platform_ios.html) .. note::