summaryrefslogtreecommitdiff
path: root/conf.py
diff options
context:
space:
mode:
authorsommersoft <sommersoft@gmail.com>2019-07-23 20:49:37 -0500
committersommersoft <sommersoft@gmail.com>2019-07-23 20:49:37 -0500
commitb90b63bb2bb27597f87173f10451980c4412757f (patch)
tree28c031ab345190cd8bfc3a138b0390553c9572ef /conf.py
parent7b67ef15c4e8b142bf226df0c1eed91e3f934f39 (diff)
don't use files to pass data; call and return directly in conf.py
Diffstat (limited to 'conf.py')
-rw-r--r--conf.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/conf.py b/conf.py
index 152c718b5..0c23028ec 100644
--- a/conf.py
+++ b/conf.py
@@ -25,17 +25,15 @@ from recommonmark.parser import CommonMarkParser
sys.path.insert(0, os.path.abspath('docs'))
sys.path.insert(0, os.path.abspath('.'))
+import shared_bindings_matrix
+
master_doc = 'docs/index'
# Grab the JSON values to use while building the module support matrix
# in 'shared-bindings/index.rst'
-shared_bindings_json = 'support_matrix.json'
-if 'TRAVIS' in os.environ:
- shared_bindings_json = os.path.join(os.environ['HOME'], shared_bindings_json)
-else:
- shared_bindings_json = os.path.join('shared-bindings', shared_bindings_json)
-with open(shared_bindings_json) as json_file:
- modules_support_matrix = json.load(json_file)
+
+modules_support_matrix = shared_bindings_matrix.support_matrix()
+
html_context = {
'support_matrix': modules_support_matrix
}