Merge "Use show-policy to render default policy in documentation"

This commit is contained in:
Zuul 2022-05-18 17:22:30 +00:00 committed by Gerrit Code Review
commit 0633746cf5
2 changed files with 12 additions and 0 deletions

View File

@ -33,6 +33,7 @@ extensions = [
'sphinx.ext.viewcode',
'oslo_config.sphinxext',
'oslo_config.sphinxconfiggen',
'oslo_policy.sphinxext',
'oslo_policy.sphinxpolicygen',
'openstackdocstheme',
'sphinxcontrib.apidoc',

View File

@ -0,0 +1,11 @@
.. _policy.yaml:
The following policies are shipped by default. Glance will assume a policy's
default value if it's not explicitly overridden in the policy file.
-----------
policy.yaml
-----------
.. show-policy::
:config-file: etc/glance-policy-generator.conf