]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
doc/_ext: print "default" using "literal" filter
authorKefu Chai <kchai@redhat.com>
Tue, 11 May 2021 07:50:02 +0000 (15:50 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 11 May 2021 08:05:04 +0000 (16:05 +0800)
commit80eb4f42fb02ff98190fb8cc1aab8d96a92f5a9e
tree93bcfb1550def3a788723d3533c70097305e6d26
parent44e611ce309cbc80ba78dbe564c738d03e193f4e
doc/_ext: print "default" using "literal" filter

there is chance that the default value of an option is empty, before
this change the rendered result would be "````", and sphinx is confused
at seeing this:

Unexpected section title or transition.

as it takes it as a notion of section title. after this change,
the "literal" filter is always applied to the default value, so an empty
string is rendered like "<empty string>" instead.

Signed-off-by: Kefu Chai <kchai@redhat.com>
doc/_ext/ceph_confval.py