From: Kefu Chai Date: Mon, 10 May 2021 12:55:40 +0000 (+0800) Subject: doc/_ext: render constraint and policies if available X-Git-Tag: v17.1.0~2002^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f84504464a89e0138f31b1a89e99a9b450a7f678;p=ceph.git doc/_ext: render constraint and policies if available they are used by rbd options. Signed-off-by: Kefu Chai --- diff --git a/doc/_ext/ceph_confval.py b/doc/_ext/ceph_confval.py index 71038a47a7f2..c9712718b544 100644 --- a/doc/_ext/ceph_confval.py +++ b/doc/_ext/ceph_confval.py @@ -56,6 +56,12 @@ TEMPLATE = ''' {%- elif opt.max is defined %} :max: ``{{ opt.max }}`` {%- endif %} +{%- if opt.constraint %} + :constraint: {{ opt.constraint }} +{% endif %} +{%- if opt.policies %} + :policies: {{ opt.policies }} +{% endif %} {%- if opt.see_also %} :see also: {{ opt.see_also | map('ref_confval') | join(', ') }} {%- endif %}