|
8 | 8 | import sys |
9 | 9 | import os |
10 | 10 | import re |
| 11 | +from numpydoc import numpydoc, docscrape # noqa |
11 | 12 |
|
12 | | -try: |
13 | | - import sphinx_gallery |
14 | | - |
15 | | - sphinx_gallery.__version__ |
16 | | - |
17 | | - |
18 | | -except ImportError: |
19 | | - print("warning sphinx-gallery not installed") |
20 | | - |
| 13 | +import sphinx_gallery # noqa |
| 14 | +import sphinx_rtd_theme # noqa |
21 | 15 |
|
22 | 16 | # If extensions (or modules to document with autodoc) are in another directory, |
23 | 17 | # add these directories to sys.path here. If the directory is relative to the |
24 | 18 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
25 | | -sys.path.insert(0, os.path.abspath(".")) |
26 | 19 | sys.path.insert(0, os.path.abspath("..")) |
27 | | -sys.path.insert(0, os.path.abspath("../..")) |
28 | 20 |
|
29 | 21 |
|
30 | 22 | # -- General configuration ------------------------------------------------ |
|
35 | 27 | # Add any Sphinx extension module names here, as strings. They can be |
36 | 28 | # extensions coming with Sphinx (named #'sphinx.ext.*') or your custom |
37 | 29 | # ones. |
| 30 | +# extensions = [ |
| 31 | +# "sphinx.ext.autodoc", |
| 32 | +# "sphinx.ext.autosummary", |
| 33 | +# "sphinx.ext.doctest", |
| 34 | +# "sphinx.ext.intersphinx", |
| 35 | +# # "sphinx.ext.todo", |
| 36 | +# "sphinx.ext.coverage", |
| 37 | +# "sphinx.ext.mathjax", |
| 38 | +# "sphinx.ext.ifconfig", |
| 39 | +# "sphinx.ext.viewcode", |
| 40 | +# # "sphinx.ext.napoleon", |
| 41 | +# "sphinx_gallery.gen_gallery", |
| 42 | +# 'numpydoc', |
| 43 | +# ] |
| 44 | + |
38 | 45 | extensions = [ |
39 | | - "sphinx.ext.autodoc", |
40 | | - "sphinx.ext.autosummary", |
41 | | - "sphinx.ext.doctest", |
42 | | - "sphinx.ext.intersphinx", |
43 | | - "sphinx.ext.todo", |
44 | | - "sphinx.ext.coverage", |
45 | | - "sphinx.ext.mathjax", |
46 | | - "sphinx.ext.ifconfig", |
47 | | - "sphinx.ext.viewcode", |
48 | | - "sphinx.ext.napoleon", |
49 | | - "sphinx_gallery.gen_gallery", |
| 46 | + 'sphinx.ext.autodoc', |
| 47 | + # 'sphinx.ext.napoleon', |
| 48 | + 'numpydoc', |
| 49 | + 'sphinx.ext.viewcode', |
| 50 | + 'sphinx.ext.autosummary', |
| 51 | + 'sphinx.ext.doctest', |
| 52 | + 'sphinx.ext.intersphinx', |
| 53 | + 'sphinx.ext.todo', |
| 54 | + 'sphinx.ext.coverage', |
| 55 | + 'sphinx.ext.mathjax', |
| 56 | + 'sphinx_gallery.gen_gallery', |
| 57 | + 'sphinx.ext.graphviz', |
50 | 58 | ] |
51 | 59 |
|
| 60 | +# autodoc / autosummary |
52 | 61 | autosummary_generate = True |
| 62 | +# autodoc_default_options = {'inherited-members': None} |
| 63 | +numpydoc_show_class_members = False |
53 | 64 |
|
54 | | -napoleon_numpy_docstring = True |
| 65 | +# napoleon_numpy_docstring = True |
55 | 66 |
|
56 | 67 | # Add any paths that contain templates here, relative to this directory. |
57 | 68 | templates_path = ["_templates"] |
|
68 | 79 | master_doc = "index" |
69 | 80 |
|
70 | 81 | # General information about the project. |
71 | | -project = "" |
| 82 | +project = "SKADA" |
72 | 83 | copyright = "2022, The SKADA team" |
73 | 84 | author = "Théo Gnassounou, Rémi Flamary, Alexandre Gramfort" |
74 | 85 |
|
|
101 | 112 |
|
102 | 113 | # List of patterns, relative to source directory, that match files and |
103 | 114 | # directories to ignore when looking for source files. |
104 | | -exclude_patterns = [] |
| 115 | +exclude_patterns = ['build'] |
105 | 116 |
|
106 | 117 | # The reST default role (used for this markup: `text`) to use for all |
107 | 118 | # documents. |
|
120 | 131 |
|
121 | 132 | # The name of the Pygments (syntax highlighting) style to use. |
122 | 133 | pygments_style = "default" |
| 134 | +highlight_language = 'python3' |
123 | 135 |
|
124 | 136 | # A list of ignored prefixes for module index sorting. |
125 | 137 | # modindex_common_prefix = [] |
|
165 | 177 | # Add any paths that contain custom static files (such as style sheets) here, |
166 | 178 | # relative to this directory. They are copied after the builtin static files, |
167 | 179 | # so a file named "default.css" will overwrite the builtin "default.css". |
| 180 | +# html_static_path = [] |
168 | 181 | html_static_path = ["_static"] |
169 | 182 | # html_css_files = ["css/custom.css"] |
170 | 183 |
|
|
316 | 329 | # Example configuration for intersphinx: refer to the Python standard library. |
317 | 330 | intersphinx_mapping = { |
318 | 331 | "python": ("https://docs.python.org/3", None), |
319 | | - "numpy": ("http://docs.scipy.org/doc/numpy/", None), |
320 | | - "scipy": ("http://docs.scipy.org/doc/scipy/reference/", None), |
321 | | - "matplotlib": ("http://matplotlib.org/", None), |
322 | | - "torch": ("https://pytorch.org/docs/stable/", None), |
| 332 | + # "numpy": ("http://docs.scipy.org/doc/numpy/", None), |
| 333 | + # "scipy": ("http://docs.scipy.org/doc/scipy/reference/", None), |
| 334 | + # "matplotlib": ("http://matplotlib.org/", None), |
| 335 | + # "torch": ("https://pytorch.org/docs/stable/", None), |
323 | 336 | } |
324 | 337 |
|
325 | 338 | sphinx_gallery_conf = { |
326 | | - "examples_dirs": ["../../examples", "../../examples/da"], |
| 339 | + "examples_dirs": ["../../examples"], |
327 | 340 | "gallery_dirs": "auto_examples", |
328 | 341 | "nested_sections": False, |
329 | 342 | "backreferences_dir": "gen_modules/backreferences", |
330 | 343 | "inspect_global_variables": True, |
331 | | - "doc_module": ("ot", "numpy", "scipy", "pylab"), |
| 344 | + "doc_module": ("skada", "ot", "numpy", "scipy", "pylab"), |
332 | 345 | "matplotlib_animations": True, |
333 | 346 | "reference_url": {"skada": None}, |
334 | 347 | } |
0 commit comments