C++ docs: For the model bits, link to the for-in and ListView docs

Using an rst epiloge we can define global references that are even formatted
(using rst substitutions)
This commit is contained in:
Simon Hausmann 2021-07-02 12:30:36 +02:00
parent decd151b84
commit f8abd57c3b
2 changed files with 12 additions and 3 deletions

View file

@ -101,5 +101,12 @@ myst_enable_extensions = [
# Annotate h1/h2 elements with anchors
myst_heading_anchors = 2
rst_epilog = """
.. |ListView| replace:: :code:`ListView`
.. _ListView: ../markdown/widgets.html#listview
.. |Repetition| replace:: :code:`for` - :code:`in`
.. _Repetition: ../markdown/langref.html#repetition
"""
def setup(app):
app.add_css_file('theme_tweak.css')