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