Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
AI4Finance-Foundation
GitHub Repository: AI4Finance-Foundation/FinRL
Path: blob/master/docs/source/conf.py
728 views
1
#
2
# Configuration file for the Sphinx documentation builder.
3
#
4
# This file does only contain a selection of the most common options. For a
5
# full list see the documentation:
6
# http://www.sphinx-doc.org/en/master/config
7
# -- Path setup --------------------------------------------------------------
8
# If extensions (or modules to document with autodoc) are in another directory,
9
# add these directories to sys.path here. If the directory is relative to the
10
# documentation root, use os.path.abspath to make it absolute, like shown here.
11
#
12
from __future__ import annotations
13
14
import os
15
import sys
16
17
import sphinx_rtd_theme
18
19
sys.path.insert(0, os.path.abspath("../../"))
20
sys.path.insert(0, os.path.abspath(os.path.join("../..", "finrl"))) # Important
21
22
23
# -- Project information -----------------------------------------------------
24
25
project = "FinRL"
26
copyright = "2021, FinRL"
27
author = "FinRL"
28
29
# The short X.Y version
30
version = ""
31
# The full version, including alpha/beta/rc tags
32
release = "0.3.1"
33
34
35
# -- General configuration ---------------------------------------------------
36
37
# If your documentation needs a minimal Sphinx version, state it here.
38
#
39
# needs_sphinx = '1.0'
40
41
# Add any Sphinx extension module names here, as strings. They can be
42
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
43
# ones.
44
extensions = [
45
"sphinx.ext.autodoc",
46
"sphinx.ext.doctest",
47
"sphinx.ext.viewcode",
48
"sphinx.ext.githubpages",
49
"sphinx.ext.autosectionlabel",
50
"recommonmark", # for including markdown
51
# 'sphinx_markdown_tables' # Support rendering tables in markdown
52
]
53
54
autodoc_mock_imports = [
55
"gym",
56
"matplotlib",
57
"numpy",
58
"pybullet",
59
"torch",
60
"opencv-python",
61
]
62
63
pygments_style = "sphinx"
64
65
66
# Add any paths that contain templates here, relative to this directory.
67
templates_path = ["_templates"]
68
69
# The suffix(es) of source filenames.
70
# You can specify multiple suffix as a list of string:
71
#
72
# source_suffix = ['.rst', '.md']
73
source_suffix = ".rst"
74
75
# The master toctree document.
76
master_doc = "index"
77
78
# The language for content autogenerated by Sphinx. Refer to documentation
79
# for a list of supported languages.
80
#
81
# This is also used if you do content translation via gettext catalogs.
82
# Usually you set "language" from the command line for these cases.
83
language = None
84
85
# List of patterns, relative to source directory, that match files and
86
# directories to ignore when looking for source files.
87
# This pattern also affects html_static_path and html_extra_path.
88
exclude_patterns = []
89
90
# The name of the Pygments (syntax highlighting) style to use.
91
pygments_style = None
92
93
94
# -- Options for HTML output -------------------------------------------------
95
96
# The theme to use for HTML and HTML Help pages. See the documentation for
97
# a list of builtin themes.
98
#
99
100
html_theme = "sphinx_rtd_theme"
101
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
102
html_logo = "./image/logo_transparent_background.png"
103
html_theme_options = {
104
"logo_only": True,
105
"display_version": False,
106
}
107
108
109
# Theme options are theme-specific and customize the look and feel of a theme
110
# further. For a list of options available for each theme, see the
111
# documentation.
112
#
113
# html_theme_options = {}
114
115
# Add any paths that contain custom static files (such as style sheets) here,
116
# relative to this directory. They are copied after the builtin static files,
117
# so a file named "default.css" will overwrite the builtin "default.css".
118
html_static_path = ["_static"]
119
120
# Custom sidebar templates, must be a dictionary that maps document names
121
# to template names.
122
#
123
# The default sidebars (for documents that don't match any pattern) are
124
# defined by theme itself. Builtin themes are using these templates by
125
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
126
# 'searchbox.html']``.
127
#
128
# html_sidebars = {}
129
130
131
# -- Options for HTMLHelp output ---------------------------------------------
132
133
# Output file base name for HTML help builder.
134
htmlhelp_basename = "FinRLdoc"
135
136
137
# -- Options for LaTeX output ------------------------------------------------
138
139
latex_elements = {
140
# The paper size ('letterpaper' or 'a4paper').
141
#
142
# 'papersize': 'letterpaper',
143
# The font size ('10pt', '11pt' or '12pt').
144
#
145
# 'pointsize': '10pt',
146
# Additional stuff for the LaTeX preamble.
147
#
148
# 'preamble': '',
149
# Latex figure (float) alignment
150
#
151
# 'figure_align': 'htbp',
152
}
153
154
# Grouping the document tree into LaTeX files. List of tuples
155
# (source start file, target name, title,
156
# author, documentclass [howto, manual, or own class]).
157
latex_documents = [
158
(master_doc, "FinRL.tex", "FinRL Documentation", "FinRL", "manual"),
159
]
160
161
162
# -- Options for manual page output ------------------------------------------
163
164
# One entry per manual page. List of tuples
165
# (source start file, name, description, authors, manual section).
166
man_pages = [(master_doc, "finrl", "FinRL Documentation", [author], 1)]
167
168
169
# -- Options for Texinfo output ----------------------------------------------
170
171
# Grouping the document tree into Texinfo files. List of tuples
172
# (source start file, target name, title, author,
173
# dir menu entry, description, category)
174
texinfo_documents = [
175
(
176
master_doc,
177
"FinRL",
178
"FinRL Documentation",
179
author,
180
"FinRL",
181
"One line description of project.",
182
"Miscellaneous",
183
),
184
]
185
186
187
# -- Options for Epub output -------------------------------------------------
188
189
# Bibliographic Dublin Core info.
190
epub_title = project
191
192
# The unique identifier of the text. This can be a ISBN number
193
# or the project homepage.
194
#
195
# epub_identifier = ''
196
197
# A unique identification for the text.
198
#
199
# epub_uid = ''
200
201
# A list of files that should not be packed into the epub file.
202
epub_exclude_files = ["search.html"]
203
204
205
# -- Extension configuration -------------------------------------------------
206
207