|
20 | 20 | # -- Project information ----------------------------------------------------- |
21 | 21 | from mars import __version__ |
22 | 22 |
|
23 | | -project = 'mars' |
24 | | -copyright = '1999-2020, The Alibaba Group Holding Ltd.' |
25 | | -author = 'jisheng, qinxing' |
| 23 | +project = "mars" |
| 24 | +copyright = "1999-2020, The Alibaba Group Holding Ltd." |
| 25 | +author = "jisheng, qinxing" |
26 | 26 |
|
27 | 27 | # The short X.Y version |
28 | 28 | version = __version__ |
|
40 | 40 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
41 | 41 | # ones. |
42 | 42 | extensions = [ |
43 | | - 'sphinx.ext.mathjax', |
44 | | - 'sphinx.ext.ifconfig', |
45 | | - 'sphinx.ext.intersphinx', |
46 | | - 'sphinx.ext.viewcode', |
47 | | - 'sphinx.ext.githubpages', |
48 | | - 'sphinx.ext.autosummary', |
49 | | - 'sphinx.ext.napoleon', |
50 | | - 'IPython.sphinxext.ipython_directive', |
51 | | - 'IPython.sphinxext.ipython_console_highlighting', |
52 | | - 'matplotlib.sphinxext.plot_directive', |
| 43 | + "sphinx.ext.mathjax", |
| 44 | + "sphinx.ext.ifconfig", |
| 45 | + "sphinx.ext.intersphinx", |
| 46 | + "sphinx.ext.viewcode", |
| 47 | + "sphinx.ext.githubpages", |
| 48 | + "sphinx.ext.autosummary", |
| 49 | + "sphinx.ext.napoleon", |
| 50 | + "IPython.sphinxext.ipython_directive", |
| 51 | + "IPython.sphinxext.ipython_console_highlighting", |
| 52 | + "matplotlib.sphinxext.plot_directive", |
53 | 53 | ] |
54 | 54 |
|
55 | 55 | # Add any paths that contain templates here, relative to this directory. |
56 | | -templates_path = ['_templates'] |
| 56 | +templates_path = ["_templates"] |
57 | 57 |
|
58 | 58 | # The suffix(es) of source filenames. |
59 | 59 | # You can specify multiple suffix as a list of string: |
60 | 60 | # |
61 | 61 | # source_suffix = ['.rst', '.md'] |
62 | | -source_suffix = '.rst' |
| 62 | +source_suffix = ".rst" |
63 | 63 |
|
64 | 64 | # The master toctree document. |
65 | | -master_doc = 'index' |
| 65 | +master_doc = "index" |
66 | 66 |
|
67 | 67 | # The language for content autogenerated by Sphinx. Refer to documentation |
68 | 68 | # for a list of supported languages. |
|
77 | 77 | exclude_patterns = [] |
78 | 78 |
|
79 | 79 | # The name of the Pygments (syntax highlighting) style to use. |
80 | | -pygments_style = 'sphinx' |
| 80 | +pygments_style = "sphinx" |
81 | 81 |
|
82 | 82 |
|
83 | 83 | # -- Options for HTML output ------------------------------------------------- |
84 | 84 |
|
85 | 85 | # The theme to use for HTML and HTML Help pages. See the documentation for |
86 | 86 | # a list of builtin themes. |
87 | 87 | # |
88 | | -html_theme = 'pydata_sphinx_theme' |
89 | | -html_logo = 'images/mars.svg' |
| 88 | +html_theme = "pydata_sphinx_theme" |
| 89 | +html_logo = "images/mars.svg" |
90 | 90 |
|
91 | 91 | # Theme options are theme-specific and customize the look and feel of a theme |
92 | 92 | # further. For a list of options available for each theme, see the |
|
96 | 96 | "github_url": "https://github.com/mars-project/mars", |
97 | 97 | "twitter_url": "https://twitter.com/pymars_dev", |
98 | 98 | "external_links": [ |
99 | | - {"name": "Release Notes", "url": "https://github.com/mars-project/mars/releases"}, |
100 | | - ] |
| 99 | + { |
| 100 | + "name": "Release Notes", |
| 101 | + "url": "https://github.com/mars-project/mars/releases", |
| 102 | + }, |
| 103 | + ], |
| 104 | + "logo": { |
| 105 | + "image_light": "mars.svg", |
| 106 | + "image_dark": "mars.svg", |
| 107 | + }, |
101 | 108 | } |
102 | 109 |
|
103 | 110 | # Add any paths that contain custom static files (such as style sheets) here, |
104 | 111 | # relative to this directory. They are copied after the builtin static files, |
105 | 112 | # so a file named "default.css" will overwrite the builtin "default.css". |
106 | | -html_static_path = ['images'] |
| 113 | +html_static_path = ["images"] |
107 | 114 |
|
108 | 115 | # Custom sidebar templates, must be a dictionary that maps document names |
109 | 116 | # to template names. |
|
119 | 126 | # -- Options for HTMLHelp output --------------------------------------------- |
120 | 127 |
|
121 | 128 | # Output file base name for HTML help builder. |
122 | | -htmlhelp_basename = 'marsdoc' |
| 129 | +htmlhelp_basename = "marsdoc" |
123 | 130 |
|
124 | 131 |
|
125 | 132 | # -- Options for LaTeX output ------------------------------------------------ |
|
128 | 135 | # The paper size ('letterpaper' or 'a4paper'). |
129 | 136 | # |
130 | 137 | # 'papersize': 'letterpaper', |
131 | | - |
132 | 138 | # The font size ('10pt', '11pt' or '12pt'). |
133 | 139 | # |
134 | 140 | # 'pointsize': '10pt', |
135 | | - |
136 | 141 | # Additional stuff for the LaTeX preamble. |
137 | 142 | # |
138 | 143 | # 'preamble': '', |
139 | | - |
140 | 144 | # Latex figure (float) alignment |
141 | 145 | # |
142 | 146 | # 'figure_align': 'htbp', |
|
146 | 150 | # (source start file, target name, title, |
147 | 151 | # author, documentclass [howto, manual, or own class]). |
148 | 152 | latex_documents = [ |
149 | | - (master_doc, 'mars.tex', 'mars Documentation', |
150 | | - 'jisheng,qinxing', 'manual'), |
| 153 | + (master_doc, "mars.tex", "mars Documentation", "jisheng,qinxing", "manual"), |
151 | 154 | ] |
152 | 155 |
|
153 | 156 |
|
154 | 157 | # -- Options for manual page output ------------------------------------------ |
155 | 158 |
|
156 | 159 | # One entry per manual page. List of tuples |
157 | 160 | # (source start file, name, description, authors, manual section). |
158 | | -man_pages = [ |
159 | | - (master_doc, 'mars', 'mars Documentation', |
160 | | - [author], 1) |
161 | | -] |
| 161 | +man_pages = [(master_doc, "mars", "mars Documentation", [author], 1)] |
162 | 162 |
|
163 | 163 |
|
164 | 164 | # -- Options for Texinfo output ---------------------------------------------- |
|
167 | 167 | # (source start file, target name, title, author, |
168 | 168 | # dir menu entry, description, category) |
169 | 169 | texinfo_documents = [ |
170 | | - (master_doc, 'mars', 'mars Documentation', |
171 | | - author, 'mars', 'One line description of project.', |
172 | | - 'Miscellaneous'), |
| 170 | + ( |
| 171 | + master_doc, |
| 172 | + "mars", |
| 173 | + "mars Documentation", |
| 174 | + author, |
| 175 | + "mars", |
| 176 | + "One line description of project.", |
| 177 | + "Miscellaneous", |
| 178 | + ), |
173 | 179 | ] |
174 | 180 |
|
175 | 181 | autosummary_generate = True |
|
191 | 197 |
|
192 | 198 | # -- Extension configuration ------------------------------------------------- |
193 | 199 |
|
194 | | -locale_dirs = ['locale/'] # path is example but recommended. |
195 | | -gettext_compact = False # optional. |
| 200 | +locale_dirs = ["locale/"] # path is example but recommended. |
| 201 | +gettext_compact = False # optional. |
196 | 202 | ipython_warning_is_error = False |
197 | 203 |
|
198 | 204 |
|
|
0 commit comments