From 1e60a368ae90456266ac6d5c3f12115e700ad35b Mon Sep 17 00:00:00 2001 From: gord chung Date: Mon, 24 Jul 2017 22:44:49 +0000 Subject: [PATCH] generate conf on doc build Change-Id: I83db618116cb56574f67738e008001ff7074799e --- .gitignore | 1 + doc/source/conf.py | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index dccc084d29..e4cc07eb60 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ cover/* dist/* doc/build doc/source/api/ +doc/source/_static/ etc/ceilometer/ceilometer.conf subunit.log diff --git a/doc/source/conf.py b/doc/source/conf.py index 8ecf2ad476..10336f5b7c 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -46,8 +46,13 @@ extensions = [ 'sphinx.ext.viewcode', 'sphinxcontrib.pecanwsme.rest', 'sphinxcontrib.httpdomain', + 'oslo_config.sphinxconfiggen', ] +config_generator_config_file = os.path.join(ROOT, + 'etc/ceilometer/ceilometer-config-generator.conf') +sample_config_basename = '_static/ceilometer' + wsme_protocols = ['restjson', 'restxml'] todo_include_todos = True @@ -139,7 +144,7 @@ bug_tag = '' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -#html_static_path = ['_static'] +html_static_path = ['_static'] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format.