diff options
| author | sommersoft <sommersoft@gmail.com> | 2019-07-23 20:49:37 -0500 |
|---|---|---|
| committer | sommersoft <sommersoft@gmail.com> | 2019-07-23 20:49:37 -0500 |
| commit | b90b63bb2bb27597f87173f10451980c4412757f (patch) | |
| tree | 28c031ab345190cd8bfc3a138b0390553c9572ef /conf.py | |
| parent | 7b67ef15c4e8b142bf226df0c1eed91e3f934f39 (diff) | |
don't use files to pass data; call and return directly in conf.py
Diffstat (limited to 'conf.py')
| -rw-r--r-- | conf.py | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -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 } |
