/
conf.py
88 lines (68 loc) · 1.99 KB
/
conf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
from datetime import datetime
import alabaster
import einsteinpy
project = "EinsteinPy"
year = datetime.now().year
copyright = "%d EinsteinPy Development Team" % year
version = einsteinpy.__version__
release = version
highlight_language = "python"
pygments_style = "sphinx"
autoclass_content = "both"
intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
"astropy": ("http://docs.astropy.org/en/stable/", None),
"numpy": ("https://docs.scipy.org/doc/numpy/", None),
"scipy": ("https://docs.scipy.org/doc/scipy/reference", None),
"matplotlib": ("https://matplotlib.org", None),
"sympy": ("https://docs.sympy.org/latest", None),
}
autodoc_member_order = "bysource"
html_theme_options = {
"logo": "logo_small.png",
"logo_name": True,
"logo_text_align": "center",
"travis_button": True,
"codecov_button": True,
"description": "General Relativity in Python",
"body_text_align": "left",
"github_user": "einsteinpy",
"github_repo": "einsteinpy",
"show_relbars": True,
"show_powered_by": False,
"page_width": "80%",
"github_banner": True,
"extra_nav_links": {"Blog": "https://blog.einsteinpy.org/"},
}
add_function_parentheses = True
add_module_names = True
needs_sphinx = "1.3"
extensions = [
"alabaster",
"sphinx.ext.autodoc",
"sphinx.ext.napoleon",
"sphinx.ext.todo",
"sphinx.ext.mathjax",
"sphinx.ext.intersphinx",
"nbsphinx",
"IPython.sphinxext.ipython_console_highlighting",
"sphinx.ext.mathjax", # New module for matrix visualization
"sphinx.ext.graphviz", # For creating the diagrams
]
templates_path = ["_templates"]
source_suffix = ".rst"
master_doc = "index"
html_theme = "alabaster"
html_theme_path = [alabaster.get_path()]
html_title = "EinsteinPy"
html_static_path = ["_static"]
htmlhelp_basename = "einsteinpydoc"
html_sidebars = {
"**": [
"about.html",
"navigation.html",
"relations.html",
"searchbox.html",
"donate.html",
]
}