From 80ee551acdb2c0548df4a2e08d501589a73a192a Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 6 Feb 2021 20:56:54 +0100 Subject: [PATCH] docs: fix links to stanza doc --- docs/api/xmlstream/stanzabase.rst | 4 ++-- docs/howto/stanzas.rst | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/api/xmlstream/stanzabase.rst b/docs/api/xmlstream/stanzabase.rst index ad43a44a..c061648c 100644 --- a/docs/api/xmlstream/stanzabase.rst +++ b/docs/api/xmlstream/stanzabase.rst @@ -99,8 +99,8 @@ of an interface defined by the parent. .. seealso:: - :ref:`create-stanza-plugins` - - :ref:`create-extension-plugins` - - :ref:`override-parent-interfaces` + - :ref:`is_extension` + - :ref:`overrides` Registering Stanza Plugins diff --git a/docs/howto/stanzas.rst b/docs/howto/stanzas.rst index 56dfce79..97178f36 100644 --- a/docs/howto/stanzas.rst +++ b/docs/howto/stanzas.rst @@ -327,6 +327,9 @@ Which will produces the following: We can see that ``bool_interfaces`` allows to quickly create sub-elements with no content, without the need to create a custom class or getter/setter. + +.. _overrides: + overrides ~~~~~~~~~ @@ -350,6 +353,8 @@ parent ``interfaces`` with the same name. parent = Parent() parent['toto'] = 'test' # equivalent to parent['sub']['toto'] = "test" +.. _is_extension: + is_extension ~~~~~~~~~~~~