Files
scylladb/docs/_templates/db_config.tmpl
David Garcia 559dc9bb27 docs: Implement relative link support for configuration properties
Introduces relative link support for individual properties listed on the configuration properties page.  For instance, to link to a property from a different document, use the syntax :ref:`memtable_flush_static_shares <confprop_memtable_flush_static_shares>`.

Additionally, it also adds support for linking groups. For example, :ref:`Ungrouped properties <confgroup_ungrouped_properties>`.

Closes scylladb/scylladb#17753
2024-03-20 11:39:30 +02:00

23 lines
453 B
ReStructuredText

.. -*- mode: rst -*-
{% for group in data %}
{% if group.value_status_count[value_status] > 0 %}
.. _confgroup_{{ group.name }}:
{{ group.name }}
{{ '-' * (group.name|length) }}
{% if group.description %}
{{ group.description | readable_desc_rst }}
{% endif %}
{% for item in group.properties %}
{% if item.value_status == value_status %}
.. _confprop_{{ item.name }}:
.. confval:: {{ item.name }}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}