|
6 | 6 | import sys |
7 | 7 | from sphinx_gallery.sorting import FileNameSortKey |
8 | 8 |
|
9 | | -sys.path.insert(0, os.path.abspath('..')) |
| 9 | +sys.path.insert(0, os.path.abspath("..")) |
| 10 | + |
| 11 | +# NOTE: To expose sphinx warnings, comment `setup_logger()` in floatcsep.commands.main |
| 12 | + |
10 | 13 |
|
11 | 14 | # -- Project information ----------------------------------------------------- |
12 | 15 |
|
13 | | -project = 'floatCSEP' |
14 | | -copyright = '2022, Pablo Iturrieta' |
15 | | -author = 'Pablo Iturrieta' |
16 | | -release = 'v0.1.0' |
| 16 | +project = "floatCSEP" |
| 17 | +copyright = "2022, Pablo Iturrieta" |
| 18 | +author = "Pablo Iturrieta" |
| 19 | +release = "v0.1.0" |
17 | 20 |
|
18 | 21 | # -- General configuration --------------------------------------------------- |
19 | 22 |
|
20 | 23 | extensions = [ |
21 | | - 'sphinx.ext.autodoc', |
22 | | - 'sphinx.ext.todo', |
23 | | - 'sphinx.ext.autosummary', |
24 | | - 'sphinx.ext.coverage', |
25 | | - 'sphinx.ext.mathjax', |
26 | | - 'sphinx.ext.viewcode', |
27 | | - 'sphinx.ext.napoleon', |
28 | | - 'sphinx.ext.intersphinx', |
29 | | - # 'sphinx_gallery.gen_gallery', |
30 | | - # 'sphinx.ext.githubpages' |
| 24 | + "sphinx.ext.autodoc", |
| 25 | + "sphinx.ext.todo", |
| 26 | + "sphinx.ext.autosummary", |
| 27 | + "sphinx.ext.coverage", |
| 28 | + "sphinx.ext.mathjax", |
| 29 | + "sphinx.ext.viewcode", |
| 30 | + "sphinx.ext.napoleon", |
| 31 | + "sphinx.ext.intersphinx", |
31 | 32 | ] |
32 | 33 |
|
33 | | -templates_path = ['_templates'] |
34 | | -source_suffix = '.rst' |
35 | | -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
36 | | -pygments_style = 'default' # todo |
37 | | -autodoc_typehints = 'none' |
| 34 | +# language = 'en' |
| 35 | +autosummary_generate = False |
| 36 | +autoclass_content = "both" |
| 37 | +suppress_warnings = [ |
| 38 | + "autosummary", |
| 39 | + "autosummary.missing", |
| 40 | +] |
| 41 | +templates_path = ["_templates"] |
| 42 | +source_suffix = ".rst" |
| 43 | +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] |
| 44 | +pygments_style = "default" |
| 45 | +autodoc_typehints = "description" |
38 | 46 | intersphinx_mapping = { |
39 | 47 | "python": ("https://docs.python.org/3/", None), |
40 | 48 | "numpy": ("https://docs.scipy.org/doc/numpy/", None), |
41 | 49 | "pandas": ("http://pandas.pydata.org/pandas-docs/stable/", None), |
42 | | - "scipy": ('http://docs.scipy.org/doc/scipy/reference', None), |
43 | | - "matplotlib": ('http://matplotlib.sourceforge.net/', None), |
44 | | - 'pycsep': ('https://docs.cseptesting.org/', None) |
| 50 | + "scipy": ("http://docs.scipy.org/doc/scipy/reference", None), |
| 51 | + "matplotlib": ("https://matplotlib.org/stable", None), |
| 52 | + "pycsep": ("https://docs.cseptesting.org/", None), |
45 | 53 | } |
46 | 54 | # -- Options for HTML output ------------------------------------------------- |
47 | 55 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output |
48 | 56 |
|
49 | | -html_theme = 'sphinx_rtd_theme' |
50 | | -html_static_path = ['_static'] |
| 57 | +html_theme = "sphinx_rtd_theme" |
| 58 | +html_static_path = ["_static"] |
51 | 59 | html_theme_options = { |
52 | | - 'display_version': True, |
53 | | - 'prev_next_buttons_location': 'both', |
54 | | - 'collapse_navigation': False, |
55 | | - 'style_nav_header_background': '#343131ff', |
56 | | - 'logo_only': True, |
| 60 | + "display_version": True, |
| 61 | + "prev_next_buttons_location": "both", |
| 62 | + "collapse_navigation": False, |
| 63 | + "style_nav_header_background": "#343131ff", |
| 64 | + "logo_only": True, |
57 | 65 | } |
58 | | -html_logo = '_static/floatcsep_logo.svg' |
| 66 | +html_logo = "_static/floatcsep_logo.svg" |
59 | 67 | todo_include_todos = False |
0 commit comments