From 559dc9bb277d824e99c785f1fea2da1111fa84ff Mon Sep 17 00:00:00 2001 From: David Garcia Date: Tue, 12 Mar 2024 11:47:31 +0000 Subject: [PATCH] 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 `. Additionally, it also adds support for linking groups. For example, :ref:`Ungrouped properties `. Closes scylladb/scylladb#17753 --- docs/_templates/db_config.tmpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/_templates/db_config.tmpl b/docs/_templates/db_config.tmpl index d3af074712..690aefcf9f 100644 --- a/docs/_templates/db_config.tmpl +++ b/docs/_templates/db_config.tmpl @@ -2,6 +2,8 @@ {% for group in data %} {% if group.value_status_count[value_status] > 0 %} +.. _confgroup_{{ group.name }}: + {{ group.name }} {{ '-' * (group.name|length) }} @@ -11,6 +13,8 @@ {% for item in group.properties %} {% if item.value_status == value_status %} +.. _confprop_{{ item.name }}: + .. confval:: {{ item.name }} {% endif %} {% endfor %}