|
1 | | -# -*- coding: utf-8 -*- |
2 | | - |
3 | 1 | import pyunlocbox |
4 | 2 |
|
5 | 3 | extensions = [ |
6 | | - 'sphinx.ext.viewcode', |
7 | | - 'sphinx.ext.autosummary', |
8 | | - 'sphinx.ext.mathjax', |
9 | | - 'sphinx.ext.inheritance_diagram', |
| 4 | + "sphinx.ext.viewcode", |
| 5 | + "sphinx.ext.autosummary", |
| 6 | + "sphinx.ext.mathjax", |
| 7 | + "sphinx.ext.inheritance_diagram", |
10 | 8 | ] |
11 | 9 |
|
12 | | -extensions.append('sphinx.ext.autodoc') |
| 10 | +extensions.append("sphinx.ext.autodoc") |
13 | 11 | autodoc_default_options = { |
14 | | - 'members': True, |
15 | | - 'undoc-members': True, |
16 | | - 'show-inheritance': True, |
17 | | - 'member-order': 'bysource', # alphabetical, groupwise, bysource |
| 12 | + "members": True, |
| 13 | + "undoc-members": True, |
| 14 | + "show-inheritance": True, |
| 15 | + "member-order": "bysource", # alphabetical, groupwise, bysource |
18 | 16 | } |
19 | 17 |
|
20 | | -extensions.append('sphinx.ext.intersphinx') |
| 18 | +extensions.append("sphinx.ext.intersphinx") |
21 | 19 | intersphinx_mapping = { |
22 | | - 'python': ('https://docs.python.org/3', None), |
23 | | - 'numpy': ('https://numpy.org/doc/stable', None), |
24 | | - 'scipy': ('https://docs.scipy.org/doc/scipy/reference', None), |
25 | | - 'matplotlib': ('https://matplotlib.org', None), |
26 | | - 'pygsp': ('https://pygsp.readthedocs.io/en/stable', None), |
| 20 | + "python": ("https://docs.python.org/3", None), |
| 21 | + "numpy": ("https://numpy.org/doc/stable", None), |
| 22 | + "scipy": ("https://docs.scipy.org/doc/scipy/reference", None), |
| 23 | + "matplotlib": ("https://matplotlib.org", None), |
| 24 | + "pygsp": ("https://pygsp.readthedocs.io/en/stable", None), |
27 | 25 | } |
28 | 26 |
|
29 | | -extensions.append('numpydoc') |
| 27 | +extensions.append("numpydoc") |
30 | 28 | numpydoc_show_class_members = False |
31 | 29 |
|
32 | | -extensions.append('matplotlib.sphinxext.plot_directive') |
| 30 | +extensions.append("matplotlib.sphinxext.plot_directive") |
33 | 31 | plot_include_source = True |
34 | 32 | plot_html_show_source_link = False |
35 | 33 | plot_html_show_formats = False |
36 | | -plot_working_directory = '.' |
| 34 | +plot_working_directory = "." |
37 | 35 |
|
38 | | -extensions.append('sphinx_copybutton') |
| 36 | +extensions.append("sphinx_copybutton") |
39 | 37 | copybutton_prompt_text = ">>> " |
40 | 38 |
|
41 | | -extensions.append('sphinxcontrib.bibtex') |
42 | | -bibtex_bibfiles = ['references.bib'] |
| 39 | +extensions.append("sphinxcontrib.bibtex") |
| 40 | +bibtex_bibfiles = ["references.bib"] |
43 | 41 |
|
44 | | -exclude_patterns = ['_build'] |
45 | | -source_suffix = '.rst' |
46 | | -master_doc = 'index' |
| 42 | +exclude_patterns = ["_build"] |
| 43 | +source_suffix = ".rst" |
| 44 | +master_doc = "index" |
47 | 45 |
|
48 | | -project = 'PyUNLocBoX' |
| 46 | +project = "PyUNLocBoX" |
49 | 47 | version = pyunlocbox.__version__ |
50 | 48 | release = pyunlocbox.__version__ |
51 | | -copyright = 'EPFL LTS2' |
| 49 | +copyright = "EPFL LTS2" |
52 | 50 |
|
53 | | -pygments_style = 'sphinx' |
54 | | -html_theme = 'sphinx_rtd_theme' |
| 51 | +pygments_style = "sphinx" |
| 52 | +html_theme = "sphinx_rtd_theme" |
55 | 53 | html_theme_options = { |
56 | | - 'navigation_depth': 2, |
| 54 | + "navigation_depth": 2, |
57 | 55 | } |
58 | 56 | latex_elements = { |
59 | | - 'papersize': 'a4paper', |
60 | | - 'pointsize': '10pt', |
| 57 | + "papersize": "a4paper", |
| 58 | + "pointsize": "10pt", |
61 | 59 | } |
62 | 60 | latex_documents = [ |
63 | | - ('index', 'pyunlocbox.tex', 'PyUNLocBoX documentation', |
64 | | - 'EPFL LTS2', 'manual'), |
| 61 | + ("index", "pyunlocbox.tex", "PyUNLocBoX documentation", "EPFL LTS2", "manual"), |
65 | 62 | ] |
0 commit comments