summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rwxr-xr-xdoc/source/conf.py8
-rw-r--r--doc/source/cors.rst9
-rw-r--r--doc/source/cors_config_file.cfg2
-rw-r--r--requirements.txt4
5 files changed, 21 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index ed88334..bf4d049 100644
--- a/.gitignore
+++ b/.gitignore
@@ -50,3 +50,4 @@ ChangeLog
# Editors
*~
.*.swp
+/doc/source/sample.config
diff --git a/doc/source/conf.py b/doc/source/conf.py
index a5301af..af9a25f 100755
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -25,9 +25,17 @@ extensions = [
#'sphinx.ext.intersphinx',
'oslosphinx',
'oslo_config.sphinxext',
+ 'oslo_config.sphinxconfiggen',
'stevedore.sphinxext',
]
+# NOTE(dhellmann): An issue with the oslo.config sphinx integration
+# makes the show-options directive here result in
+# duplicate target nodes being introduced. Until we
+# can fix that, use the other directive to dump a
+# config file and include it as literal text.
+config_generator_config_file = 'cors_config_file.cfg'
+
# autodoc generation is a bit aggressive and a nuisance when doing heavy
# text edit cycles.
# execute "export SPHINX_DEBUG=1" in your terminal to disable
diff --git a/doc/source/cors.rst b/doc/source/cors.rst
index 99e5dc0..7f0beec 100644
--- a/doc/source/cors.rst
+++ b/doc/source/cors.rst
@@ -125,7 +125,14 @@ configuration, this may be done as follows.::
Configuration Options
---------------------
-.. show-options:: oslo.middleware.cors
+.. NOTE(dhellmann): An issue with the oslo.config sphinx integration
+ makes the show-options directive here result in
+ duplicate target nodes being introduced. Until we
+ can fix that, use the other directive to dump a
+ config file and include it as literal text.
+.. .. show-options:: oslo.middleware.cors
+
+.. literalinclude:: sample.config
Module Documentation
--------------------
diff --git a/doc/source/cors_config_file.cfg b/doc/source/cors_config_file.cfg
new file mode 100644
index 0000000..2cc624e
--- /dev/null
+++ b/doc/source/cors_config_file.cfg
@@ -0,0 +1,2 @@
+[DEFAULT]
+namespace = oslo.middleware.cors
diff --git a/requirements.txt b/requirements.txt
index 0745a66..3dc518a 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -5,10 +5,10 @@
pbr>=1.6 # Apache-2.0
Babel>=1.3 # BSD
Jinja2>=2.8 # BSD License (3 clause)
-oslo.config>=3.4.0 # Apache-2.0
+oslo.config>=3.7.0 # Apache-2.0
oslo.context>=0.2.0 # Apache-2.0
oslo.i18n>=2.1.0 # Apache-2.0
-oslo.utils>=3.4.0 # Apache-2.0
+oslo.utils>=3.5.0 # Apache-2.0
six>=1.9.0 # MIT
stevedore>=1.5.0 # Apache-2.0
WebOb>=1.2.3 # MIT