From a63d77f92f6aed60258f680677a5adbfe1ee767b Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sun, 7 Apr 2024 13:14:41 +0200 Subject: [PATCH] Fix internal option/return value links for simplified RST output. --- changelogs/fragments/269-refs.yml | 1 + src/antsibull_docs/markup/rstify.py | 4 ++-- .../baseline-simplified-rst-squash-hierarchy/foo_become.rst | 2 +- .../baseline-simplified-rst-squash-hierarchy/foo_cache.rst | 2 +- .../baseline-simplified-rst-squash-hierarchy/foo_callback.rst | 2 +- .../foo_connection.rst | 2 +- .../baseline-simplified-rst-squash-hierarchy/foo_filter.rst | 2 +- .../foo_inventory.rst | 2 +- .../baseline-simplified-rst-squash-hierarchy/foo_lookup.rst | 2 +- .../baseline-simplified-rst-squash-hierarchy/foo_module.rst | 4 ++-- .../baseline-simplified-rst-squash-hierarchy/foo_role.rst | 2 +- .../baseline-simplified-rst-squash-hierarchy/foo_shell.rst | 2 +- .../baseline-simplified-rst-squash-hierarchy/foo_test.rst | 2 +- .../baseline-simplified-rst-squash-hierarchy/foo_vars.rst | 2 +- .../collections/ns/col2/foo2_module.rst | 4 ++-- .../collections/ns2/col/foo_become.rst | 2 +- .../baseline-simplified-rst/collections/ns2/col/foo_cache.rst | 2 +- .../collections/ns2/col/foo_callback.rst | 2 +- .../collections/ns2/col/foo_connection.rst | 2 +- .../collections/ns2/col/foo_filter.rst | 2 +- .../collections/ns2/col/foo_inventory.rst | 2 +- .../collections/ns2/col/foo_lookup.rst | 2 +- .../collections/ns2/col/foo_module.rst | 4 ++-- .../baseline-simplified-rst/collections/ns2/col/foo_role.rst | 2 +- .../baseline-simplified-rst/collections/ns2/col/foo_shell.rst | 2 +- .../baseline-simplified-rst/collections/ns2/col/foo_test.rst | 2 +- .../baseline-simplified-rst/collections/ns2/col/foo_vars.rst | 2 +- .../collections/ns2/flatcol/foo_module.rst | 2 +- 28 files changed, 32 insertions(+), 31 deletions(-) diff --git a/changelogs/fragments/269-refs.yml b/changelogs/fragments/269-refs.yml index 1265875a..0053fa38 100644 --- a/changelogs/fragments/269-refs.yml +++ b/changelogs/fragments/269-refs.yml @@ -1,2 +1,3 @@ bugfixes: + - "Fix internal links to options and return values in simplified RST output (https://github.com/ansible-community/antsibull-docs/pull/269)." - "Include role in role attribute references (https://github.com/ansible-community/antsibull-docs/pull/269)." diff --git a/src/antsibull_docs/markup/rstify.py b/src/antsibull_docs/markup/rstify.py index 5f29077f..deceb429 100644 --- a/src/antsibull_docs/markup/rstify.py +++ b/src/antsibull_docs/markup/rstify.py @@ -69,7 +69,7 @@ def plugin_option_like_link( ) -> t.Optional[str]: if current_plugin: ref = massage_rst_label("/".join(name)) - ep = f"{entrypoint}__" if entrypoint is not None else "" + ep = f"{entrypoint}--" if entrypoint is not None else "" prefix = "return" if what == "retval" else "parameter" return f"{prefix}-{ep}{ref}_" return self.plugin_link(plugin) @@ -83,7 +83,7 @@ def _custom_format_option_like( ) -> str: plugin = part.plugin if url and url.endswith("_"): - plugin_text = f" (`link <{url}>`_)" + plugin_text = f" (`link <#{url[:-1]}>`_)" elif plugin: plugin_result = [plugin.type] if plugin.type not in ("module", "role", "playbook"): diff --git a/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_become.rst b/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_become.rst index 3ec2c2fb..17def721 100644 --- a/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_become.rst +++ b/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_become.rst @@ -1,7 +1,7 @@ .. Created with antsibull-docs -ns2.col.foo become -- Use foo \ :literal:`bar` (`link `_)\ +ns2.col.foo become -- Use foo \ :literal:`bar` (`link <#parameter-bar>`_)\ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This become plugin is part of the `ns2.col collection `_ (version 2.1.0). diff --git a/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_cache.rst b/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_cache.rst index b84d6271..8f368d98 100644 --- a/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_cache.rst +++ b/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_cache.rst @@ -1,7 +1,7 @@ .. Created with antsibull-docs -ns2.col.foo cache -- Foo files \ :literal:`bar` (`link `_)\ +ns2.col.foo cache -- Foo files \ :literal:`bar` (`link <#parameter-bar>`_)\ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This cache plugin is part of the `ns2.col collection `_ (version 2.1.0). diff --git a/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_callback.rst b/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_callback.rst index 020c9fe7..ce705a4d 100644 --- a/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_callback.rst +++ b/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_callback.rst @@ -1,7 +1,7 @@ .. Created with antsibull-docs -ns2.col.foo callback -- Foo output \ :literal:`bar` (`link `_)\ +ns2.col.foo callback -- Foo output \ :literal:`bar` (`link <#parameter-bar>`_)\ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This callback plugin is part of the `ns2.col collection `_ (version 2.1.0). diff --git a/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_connection.rst b/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_connection.rst index 184b8957..565feede 100644 --- a/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_connection.rst +++ b/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_connection.rst @@ -1,7 +1,7 @@ .. Created with antsibull-docs -ns2.col.foo connection -- Foo connection \ :literal:`bar` (`link `_)\ +ns2.col.foo connection -- Foo connection \ :literal:`bar` (`link <#parameter-bar>`_)\ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This connection plugin is part of the `ns2.col collection `_ (version 2.1.0). diff --git a/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_filter.rst b/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_filter.rst index 5d656079..f104e0fc 100644 --- a/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_filter.rst +++ b/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_filter.rst @@ -1,7 +1,7 @@ .. Created with antsibull-docs -ns2.col.foo filter -- The foo filter \ :literal:`bar` (`link `_)\ +ns2.col.foo filter -- The foo filter \ :literal:`bar` (`link <#parameter-bar>`_)\ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This filter plugin is part of the `ns2.col collection `_ (version 2.1.0). diff --git a/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_inventory.rst b/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_inventory.rst index 9157d3c6..81e828fa 100644 --- a/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_inventory.rst +++ b/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_inventory.rst @@ -1,7 +1,7 @@ .. Created with antsibull-docs -ns2.col.foo inventory -- The foo inventory \ :literal:`bar` (`link `_)\ +ns2.col.foo inventory -- The foo inventory \ :literal:`bar` (`link <#parameter-bar>`_)\ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This inventory plugin is part of the `ns2.col collection `_ (version 2.1.0). diff --git a/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_lookup.rst b/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_lookup.rst index 89052014..45dc0d82 100644 --- a/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_lookup.rst +++ b/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_lookup.rst @@ -1,7 +1,7 @@ .. Created with antsibull-docs -ns2.col.foo lookup -- Look up some foo \ :literal:`bar` (`link `_)\ +ns2.col.foo lookup -- Look up some foo \ :literal:`bar` (`link <#parameter-bar>`_)\ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This lookup plugin is part of the `ns2.col collection `_ (version 2.1.0). diff --git a/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_module.rst b/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_module.rst index 6cc64cd2..353aad99 100644 --- a/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_module.rst +++ b/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_module.rst @@ -1,7 +1,7 @@ .. Created with antsibull-docs -ns2.col.foo module -- Do some foo \ :literal:`bar` (`link `_)\ +ns2.col.foo module -- Do some foo \ :literal:`bar` (`link <#parameter-bar>`_)\ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This module is part of the `ns2.col collection `_ (version 2.1.0). @@ -199,7 +199,7 @@ See Also Another foo. * \ `ns2.col.foo `__\ lookup plugin - Look up some foo \ :literal:`bar` (`link `_)\ . + Look up some foo \ :literal:`bar` (`link <#parameter-bar>`_)\ . * \ `ansible.builtin.service `__\ The service module. diff --git a/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_role.rst b/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_role.rst index a41b8f82..a509eeb9 100644 --- a/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_role.rst +++ b/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_role.rst @@ -39,7 +39,7 @@ Synopsis ^^^^^^^^ - This is the foo role. -- If you set \ :literal:`foo\_param\_1` (`link `_)\ while \ :literal:`foo\_param\_2=3` (`link `_)\ , this might behave funny. +- If you set \ :literal:`foo\_param\_1` (`link <#parameter-main--foo_param_1>`_)\ while \ :literal:`foo\_param\_2=3` (`link <#parameter-main--foo_param_2>`_)\ , this might behave funny. Parameters diff --git a/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_shell.rst b/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_shell.rst index e59f59e9..6990cc5b 100644 --- a/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_shell.rst +++ b/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_shell.rst @@ -1,7 +1,7 @@ .. Created with antsibull-docs -ns2.col.foo shell -- Foo shell \ :literal:`bar` (`link `_)\ +ns2.col.foo shell -- Foo shell \ :literal:`bar` (`link <#parameter-bar>`_)\ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This shell plugin is part of the `ns2.col collection `_ (version 2.1.0). diff --git a/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_test.rst b/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_test.rst index 4946b1bd..3034dc89 100644 --- a/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_test.rst +++ b/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_test.rst @@ -1,7 +1,7 @@ .. Created with antsibull-docs -ns2.col.foo test -- Is something a foo \ :literal:`bar` (`link `_)\ +ns2.col.foo test -- Is something a foo \ :literal:`bar` (`link <#parameter-bar>`_)\ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This test plugin is part of the `ns2.col collection `_ (version 2.1.0). diff --git a/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_vars.rst b/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_vars.rst index d6041115..8ceb2ed9 100644 --- a/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_vars.rst +++ b/tests/functional/baseline-simplified-rst-squash-hierarchy/foo_vars.rst @@ -1,7 +1,7 @@ .. Created with antsibull-docs -ns2.col.foo vars -- Load foo \ :literal:`bar` (`link `_)\ +ns2.col.foo vars -- Load foo \ :literal:`bar` (`link <#parameter-bar>`_)\ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This vars plugin is part of the `ns2.col collection `_ (version 2.1.0). diff --git a/tests/functional/baseline-simplified-rst/collections/ns/col2/foo2_module.rst b/tests/functional/baseline-simplified-rst/collections/ns/col2/foo2_module.rst index fb20fac0..5566b4d9 100644 --- a/tests/functional/baseline-simplified-rst/collections/ns/col2/foo2_module.rst +++ b/tests/functional/baseline-simplified-rst/collections/ns/col2/foo2_module.rst @@ -26,8 +26,8 @@ Synopsis - Does some foo on the remote host. - A broken reference \ :ref:`asdfasdfoobarTHISDOESNOTEXIST `\ . -- The option \ :literal:`foo` (`link `_)\ exists, but \ :literal:`foobar` (`link `_)\ does not. -- The return value \ :literal:`bar` (`link `_)\ exists, but \ :literal:`barbaz` (`link `_)\ does not. +- The option \ :literal:`foo` (`link <#parameter-foo>`_)\ exists, but \ :literal:`foobar` (`link <#parameter-foobar>`_)\ does not. +- The return value \ :literal:`bar` (`link <#return-bar>`_)\ exists, but \ :literal:`barbaz` (`link <#return-barbaz>`_)\ does not. - Again existing: \ :literal:`foo=1` (of module `ns.col2.foo `__)\ , \ :literal:`bar=2` (of module `ns.col2.foo `__)\ - Again not existing: \ :literal:`foobar=1` (of module `ns.col2.foo `__)\ , \ :literal:`barbaz=2` (of module `ns.col2.foo `__)\ diff --git a/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_become.rst b/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_become.rst index 3ec2c2fb..17def721 100644 --- a/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_become.rst +++ b/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_become.rst @@ -1,7 +1,7 @@ .. Created with antsibull-docs -ns2.col.foo become -- Use foo \ :literal:`bar` (`link `_)\ +ns2.col.foo become -- Use foo \ :literal:`bar` (`link <#parameter-bar>`_)\ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This become plugin is part of the `ns2.col collection `_ (version 2.1.0). diff --git a/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_cache.rst b/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_cache.rst index b84d6271..8f368d98 100644 --- a/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_cache.rst +++ b/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_cache.rst @@ -1,7 +1,7 @@ .. Created with antsibull-docs -ns2.col.foo cache -- Foo files \ :literal:`bar` (`link `_)\ +ns2.col.foo cache -- Foo files \ :literal:`bar` (`link <#parameter-bar>`_)\ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This cache plugin is part of the `ns2.col collection `_ (version 2.1.0). diff --git a/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_callback.rst b/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_callback.rst index 020c9fe7..ce705a4d 100644 --- a/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_callback.rst +++ b/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_callback.rst @@ -1,7 +1,7 @@ .. Created with antsibull-docs -ns2.col.foo callback -- Foo output \ :literal:`bar` (`link `_)\ +ns2.col.foo callback -- Foo output \ :literal:`bar` (`link <#parameter-bar>`_)\ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This callback plugin is part of the `ns2.col collection `_ (version 2.1.0). diff --git a/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_connection.rst b/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_connection.rst index 184b8957..565feede 100644 --- a/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_connection.rst +++ b/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_connection.rst @@ -1,7 +1,7 @@ .. Created with antsibull-docs -ns2.col.foo connection -- Foo connection \ :literal:`bar` (`link `_)\ +ns2.col.foo connection -- Foo connection \ :literal:`bar` (`link <#parameter-bar>`_)\ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This connection plugin is part of the `ns2.col collection `_ (version 2.1.0). diff --git a/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_filter.rst b/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_filter.rst index 5d656079..f104e0fc 100644 --- a/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_filter.rst +++ b/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_filter.rst @@ -1,7 +1,7 @@ .. Created with antsibull-docs -ns2.col.foo filter -- The foo filter \ :literal:`bar` (`link `_)\ +ns2.col.foo filter -- The foo filter \ :literal:`bar` (`link <#parameter-bar>`_)\ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This filter plugin is part of the `ns2.col collection `_ (version 2.1.0). diff --git a/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_inventory.rst b/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_inventory.rst index 9157d3c6..81e828fa 100644 --- a/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_inventory.rst +++ b/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_inventory.rst @@ -1,7 +1,7 @@ .. Created with antsibull-docs -ns2.col.foo inventory -- The foo inventory \ :literal:`bar` (`link `_)\ +ns2.col.foo inventory -- The foo inventory \ :literal:`bar` (`link <#parameter-bar>`_)\ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This inventory plugin is part of the `ns2.col collection `_ (version 2.1.0). diff --git a/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_lookup.rst b/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_lookup.rst index 89052014..45dc0d82 100644 --- a/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_lookup.rst +++ b/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_lookup.rst @@ -1,7 +1,7 @@ .. Created with antsibull-docs -ns2.col.foo lookup -- Look up some foo \ :literal:`bar` (`link `_)\ +ns2.col.foo lookup -- Look up some foo \ :literal:`bar` (`link <#parameter-bar>`_)\ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This lookup plugin is part of the `ns2.col collection `_ (version 2.1.0). diff --git a/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_module.rst b/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_module.rst index 6cc64cd2..353aad99 100644 --- a/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_module.rst +++ b/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_module.rst @@ -1,7 +1,7 @@ .. Created with antsibull-docs -ns2.col.foo module -- Do some foo \ :literal:`bar` (`link `_)\ +ns2.col.foo module -- Do some foo \ :literal:`bar` (`link <#parameter-bar>`_)\ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This module is part of the `ns2.col collection `_ (version 2.1.0). @@ -199,7 +199,7 @@ See Also Another foo. * \ `ns2.col.foo `__\ lookup plugin - Look up some foo \ :literal:`bar` (`link `_)\ . + Look up some foo \ :literal:`bar` (`link <#parameter-bar>`_)\ . * \ `ansible.builtin.service `__\ The service module. diff --git a/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_role.rst b/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_role.rst index a41b8f82..a509eeb9 100644 --- a/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_role.rst +++ b/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_role.rst @@ -39,7 +39,7 @@ Synopsis ^^^^^^^^ - This is the foo role. -- If you set \ :literal:`foo\_param\_1` (`link `_)\ while \ :literal:`foo\_param\_2=3` (`link `_)\ , this might behave funny. +- If you set \ :literal:`foo\_param\_1` (`link <#parameter-main--foo_param_1>`_)\ while \ :literal:`foo\_param\_2=3` (`link <#parameter-main--foo_param_2>`_)\ , this might behave funny. Parameters diff --git a/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_shell.rst b/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_shell.rst index e59f59e9..6990cc5b 100644 --- a/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_shell.rst +++ b/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_shell.rst @@ -1,7 +1,7 @@ .. Created with antsibull-docs -ns2.col.foo shell -- Foo shell \ :literal:`bar` (`link `_)\ +ns2.col.foo shell -- Foo shell \ :literal:`bar` (`link <#parameter-bar>`_)\ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This shell plugin is part of the `ns2.col collection `_ (version 2.1.0). diff --git a/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_test.rst b/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_test.rst index 4946b1bd..3034dc89 100644 --- a/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_test.rst +++ b/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_test.rst @@ -1,7 +1,7 @@ .. Created with antsibull-docs -ns2.col.foo test -- Is something a foo \ :literal:`bar` (`link `_)\ +ns2.col.foo test -- Is something a foo \ :literal:`bar` (`link <#parameter-bar>`_)\ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This test plugin is part of the `ns2.col collection `_ (version 2.1.0). diff --git a/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_vars.rst b/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_vars.rst index d6041115..8ceb2ed9 100644 --- a/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_vars.rst +++ b/tests/functional/baseline-simplified-rst/collections/ns2/col/foo_vars.rst @@ -1,7 +1,7 @@ .. Created with antsibull-docs -ns2.col.foo vars -- Load foo \ :literal:`bar` (`link `_)\ +ns2.col.foo vars -- Load foo \ :literal:`bar` (`link <#parameter-bar>`_)\ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This vars plugin is part of the `ns2.col collection `_ (version 2.1.0). diff --git a/tests/functional/baseline-simplified-rst/collections/ns2/flatcol/foo_module.rst b/tests/functional/baseline-simplified-rst/collections/ns2/flatcol/foo_module.rst index d3884d68..5280dbdf 100644 --- a/tests/functional/baseline-simplified-rst/collections/ns2/flatcol/foo_module.rst +++ b/tests/functional/baseline-simplified-rst/collections/ns2/flatcol/foo_module.rst @@ -1,7 +1,7 @@ .. Created with antsibull-docs -ns2.flatcol.foo module -- Do some foo \ :literal:`bar` (`link `_)\ +ns2.flatcol.foo module -- Do some foo \ :literal:`bar` (`link <#parameter-bar>`_)\ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This module is part of the `ns2.flatcol collection `_.