Skip to content

Commit c8c1d3f

Browse files
Merge branch 'main' into base-causal-test-case
2 parents f99c46a + b2ce1eb commit c8c1d3f

File tree

7 files changed

+43
-39
lines changed

7 files changed

+43
-39
lines changed

docs/source/conf.py

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,26 @@
1313
import os
1414
import sys
1515

16-
#Include root directory of project
16+
# Include root directory of project
1717
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../..")))
1818

1919

2020
# -- Project information -----------------------------------------------------
2121

22-
project = 'Causal Testing'
23-
copyright = '2021, Andrew Clark, Michael Foster, Neil Walkinshaw, Rob Hierons, Bob Turner'
24-
author = 'Andrew Clark, Michael Foster, Neil Walkinshaw, Rob Hierons, Bob Turner'
22+
project = "Causal Testing"
23+
copyright = "2021, Andrew Clark, Michael Foster, Neil Walkinshaw, Rob Hierons, Bob Turner"
24+
author = "Andrew Clark, Michael Foster, Neil Walkinshaw, Rob Hierons, Bob Turner"
2525

2626

2727
# -- General configuration ---------------------------------------------------
2828

2929
# Add any Sphinx extension module names here, as strings. They can be
3030
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3131
# ones.
32-
extensions = [
33-
'autoapi.extension',
34-
'sphinx.ext.autosectionlabel'
35-
]
32+
extensions = ["autoapi.extension", "myst_parser", "sphinx.ext.autosectionlabel"]
3633

3734
# Add any paths that contain templates here, relative to this directory.
38-
templates_path = ['_templates']
35+
templates_path = ["_templates"]
3936

4037
# List of patterns, relative to source directory, that match files and
4138
# directories to ignore when looking for source files.
@@ -47,12 +44,12 @@
4744
# The theme to use for HTML and HTML Help pages. See the documentation for
4845
# a list of builtin themes.
4946
#
50-
html_theme = 'sphinx_rtd_theme'
47+
html_theme = "sphinx_rtd_theme"
5148

5249
# Add any paths that contain custom static files (such as style sheets) here,
5350
# relative to this directory. They are copied after the builtin static files,
5451
# so a file named "default.css" will overwrite the builtin "default.css".
55-
#html_static_path = ['_static']
52+
# html_static_path = ['_static']
5653

57-
#Path to generate documentation from using sphinx AutoAPI
58-
autoapi_dirs = [os.path.abspath(os.path.join('..', '..', 'causal_testing'))]
54+
# Path to generate documentation from using sphinx AutoAPI
55+
autoapi_dirs = [os.path.abspath(os.path.join("..", "..", "causal_testing"))]

docs/source/glossary.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Glossary
2+
3+
TDB

docs/source/index.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ Causal testing is a causal inference-driven framework for functional black-box t
2727

2828
json_front_end
2929

30+
.. toctree::
31+
:maxdepth: 1
32+
:caption: Glossary
33+
34+
glossary
35+
3036
Indices and tables
3137
==================
3238

docs/source/installation.rst

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,35 +21,28 @@ Alternatively, on Linux systems, this can be done with `sudo apt install graphvi
2121
Install from source
2222
-------------------
2323

24-
In future it will be possible to install from PyPI, but for now...
25-
26-
.. code-block:: console
24+
In future it will be possible to install from PyPI, but for now::
2725

2826
git clone https://github.com/CITCOM-project/CausalTestingFramework
2927
cd CausalTestingFramework
3028

31-
then, to install a specific release:
29+
then, to install a specific release::
3230

33-
.. code-block:: console
3431
git fetch --all --tags --prune
3532
git checkout tags/<tag> -b <branch>
3633
pip install -e .
3734

38-
e.g. version `1.0.0`
35+
e.g. version `1.0.0`::
3936

40-
.. code-block:: console
4137
git fetch --all --tags --prune
4238
git checkout tags/1.0.0 -b version
4339
pip install -e .
4440

45-
or to install the latest development version:
41+
or to install the latest development version::
4642

47-
.. code-block:: console
4843
pip install -e .
4944

50-
Use
51-
52-
.. code-block:: console
45+
Use::
5346

5447
pip install -e .[dev]
5548

docs/source/json_front_end.rst

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,17 @@ Each test requires:
3333

3434
Run Commands
3535
------------
36-
To run the JSON frontend example from the root directory of the project, use
37-
38-
.. code-block:: console
36+
To run the JSON frontend example from the root directory of the project, use::
3937

4038
python examples/poisson/run_causal_tests.py
4139

42-
A failure flag `-f` can be specified to stop the framework running if a test is failed
43-
44-
.. code-block:: console
40+
A failure flag `-f` can be specified to stop the framework running if a test is failed::
4541

4642
python examples/poisson/run_causal_tests.py -f
4743

4844
There are two main outputs of this frontend, both are controlled by the logging module. Firstly outputs are printed to stdout (terminal).
4945
Secondly a log file is produced, by default a file called `json_frontend.log` is produced in the directory the script is called from.
5046

51-
The behaviour of where the log file is produced and named can be altered with the --log_path argument:
52-
53-
.. code-block:: console
47+
The behaviour of where the log file is produced and named can be altered with the --log_path argument::
5448

5549
python examples\poisson\run_causal_tests.py -f --data_path="examples\poisson\data.csv" --dag_path="examples\poisson\dag.dot" --json_path="examples\poisson\causal_tests.json --log_path="example_directory\logname.log"

docs/source/requirements.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
sphinx==4.2.0
2-
sphinx-autoapi==1.8.4
3-
sphinx-rtd-theme==1.0.0
1+
Sphinx==5.3.0
2+
myst-parser==0.18.1
3+
sphinx-autoapi==2.0.1
4+
sphinx-rtd-theme==1.1.1

setup.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,19 @@
1515
]
1616

1717
# Additional dependencies for development
18-
dev_requirements = ["autopep8", "isort", "pytest", "pylint", "black"]
18+
dev_requirements = [
19+
"autopep8",
20+
"isort",
21+
"pytest",
22+
"pylint",
23+
"black",
24+
"autoapi",
25+
"myst-parser",
26+
"sphinx-autoapi",
27+
"sphinx_rtd_theme",
28+
]
1929

20-
readme = open("README.md", encoding = "UTF-8").read()
30+
readme = open("README.md", encoding="UTF-8").read()
2131

2232
setup(
2333
name="causal_testing_framework",

0 commit comments

Comments
 (0)