|
a |
|
b/docs/source/conf.py |
|
|
1 |
# Configuration file for the Sphinx documentation builder. |
|
|
2 |
# |
|
|
3 |
# This file only contains a selection of the most common options. For a full |
|
|
4 |
# list see the documentation: |
|
|
5 |
# https://www.sphinx-doc.org/en/master/usage/configuration.html |
|
|
6 |
|
|
|
7 |
# -- Path setup -------------------------------------------------------------- |
|
|
8 |
|
|
|
9 |
# If extensions (or modules to document with autodoc) are in another directory, |
|
|
10 |
# add these directories to sys.path here. If the directory is relative to the |
|
|
11 |
# documentation root, use os.path.abspath to make it absolute, like shown here. |
|
|
12 |
# |
|
|
13 |
# import os |
|
|
14 |
# import sys |
|
|
15 |
# sys.path.insert(0, os.path.abspath('.')) |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
# -- Project information ----------------------------------------------------- |
|
|
19 |
import sphinx_rtd_theme |
|
|
20 |
|
|
|
21 |
|
|
|
22 |
project = 'DeepPurpose' |
|
|
23 |
copyright = '2020, Kexin Huang, Tianfan Fu' |
|
|
24 |
author = 'Kexin Huang, Tianfan Fu' |
|
|
25 |
|
|
|
26 |
# The full version, including alpha/beta/rc tags |
|
|
27 |
release = '0.0.1' |
|
|
28 |
|
|
|
29 |
|
|
|
30 |
# -- General configuration --------------------------------------------------- |
|
|
31 |
|
|
|
32 |
# Add any Sphinx extension module names here, as strings. They can be |
|
|
33 |
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
|
|
34 |
# ones. |
|
|
35 |
extensions = [ |
|
|
36 |
] |
|
|
37 |
|
|
|
38 |
# Add any paths that contain templates here, relative to this directory. |
|
|
39 |
templates_path = ['_templates'] |
|
|
40 |
|
|
|
41 |
|
|
|
42 |
source_parsers = { |
|
|
43 |
'.md' : 'recommonmark.parser.CommonMarkParser' |
|
|
44 |
} |
|
|
45 |
source_suffix = ['.rst', '.md'] |
|
|
46 |
|
|
|
47 |
# List of patterns, relative to source directory, that match files and |
|
|
48 |
# directories to ignore when looking for source files. |
|
|
49 |
# This pattern also affects html_static_path and html_extra_path. |
|
|
50 |
exclude_patterns = [] |
|
|
51 |
|
|
|
52 |
|
|
|
53 |
# -- Options for HTML output ------------------------------------------------- |
|
|
54 |
|
|
|
55 |
# The theme to use for HTML and HTML Help pages. See the documentation for |
|
|
56 |
# a list of builtin themes. |
|
|
57 |
# |
|
|
58 |
html_theme = 'alabaster' ## origin |
|
|
59 |
html_theme = 'sphinx_rtd_theme' |
|
|
60 |
|
|
|
61 |
|
|
|
62 |
# The theme to use for HTML and HTML Help pages. See the documentation for |
|
|
63 |
# a list of builtin themes. |
|
|
64 |
|
|
|
65 |
html_theme_options = { |
|
|
66 |
'collapse_navigation': False, |
|
|
67 |
'display_version': True, |
|
|
68 |
'logo_only': False, |
|
|
69 |
} |
|
|
70 |
|
|
|
71 |
|
|
|
72 |
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
|
|
73 |
html_logo = '../build/html/_images/logo_deeppurpose_horizontal.png' |
|
|
74 |
|
|
|
75 |
html_logo = '../build/html/_images/logo_dp_2.png' |
|
|
76 |
## logo_dp_2.png |
|
|
77 |
|
|
|
78 |
html_context = { |
|
|
79 |
'css_files': [ |
|
|
80 |
'https://fonts.googleapis.com/css?family=Raleway', |
|
|
81 |
'../build/html/_static/css/deeppurpose_docs_theme.css' |
|
|
82 |
], |
|
|
83 |
} |
|
|
84 |
|
|
|
85 |
|
|
|
86 |
# Add any paths that contain custom static files (such as style sheets) here, |
|
|
87 |
# relative to this directory. They are copied after the builtin static files, |
|
|
88 |
# so a file named "default.css" will overwrite the builtin "default.css". |
|
|
89 |
html_static_path = ['_static'] |
|
|
90 |
|
|
|
91 |
|
|
|
92 |
|
|
|
93 |
|
|
|
94 |
|
|
|
95 |
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
|
|
|
100 |
|
|
|
101 |
|
|
|
102 |
|
|
|
103 |
|
|
|
104 |
|
|
|
105 |
|
|
|
106 |
|
|
|
107 |
|
|
|
108 |
|
|
|
109 |
|
|
|
110 |
|
|
|
111 |
|
|
|
112 |
|