From a3b300f8a175a9acf4b115a334a7fee4db13275a Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Mon, 26 Sep 2016 14:53:18 +0100 Subject: [PATCH] doc: Integrate oslo_policy.sphinxpolicygen Change-Id: I80e75b8a592e1125e02ca6177661177a7c17c927 --- .gitignore | 1 + doc/source/conf.py | 6 +++++- doc/source/index.rst | 7 +++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ca61a4883..1baab3825 100644 --- a/.gitignore +++ b/.gitignore @@ -45,6 +45,7 @@ nova/tests/cover/* nova/vcsversion.py tools/conf/nova.conf* doc/source/_static/nova.conf.sample +doc/source/_static/nova.policy.yaml.sample # Files created by releasenotes build releasenotes/build diff --git a/doc/source/conf.py b/doc/source/conf.py index 7249f97c7..e7c1bb525 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -34,8 +34,9 @@ extensions = ['sphinx.ext.autodoc', 'sphinx.ext.coverage', 'sphinx.ext.graphviz', 'oslosphinx', - "ext.support_matrix", + 'ext.support_matrix', 'oslo_config.sphinxconfiggen', + 'oslo_policy.sphinxpolicygen', 'ext.versioned_notifications', 'ext.feature_matrix', ] @@ -43,6 +44,9 @@ extensions = ['sphinx.ext.autodoc', config_generator_config_file = '../../etc/nova/nova-config-generator.conf' sample_config_basename = '_static/nova' +policy_generator_config_file = '../../etc/nova/nova-policy-generator.conf' +sample_policy_basename = '_static/nova' + todo_include_todos = True # The suffix of source filenames. diff --git a/doc/source/index.rst b/doc/source/index.rst index d3f93418b..4389cac68 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -190,6 +190,13 @@ Sample Configuration File sample_config +Sample Policy file +------------------ + +.. toctree:: + :maxdepth: 1 + + sample_policy Man Pages ----------