Skip to content

Commit b2ce1eb

Browse files
authored
Merge pull request #130 from CITCOM-project/sphinx-markdown
Sphinx markdown
2 parents fc17496 + 61f4691 commit b2ce1eb

File tree

5 files changed

+35
-18
lines changed

5 files changed

+35
-18
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/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)