|
28 | 28 | # add these directories to sys.path here. |
29 | 29 | import sys |
30 | 30 | import os |
| 31 | +sys.path.insert(0, os.path.abspath('../..')) |
31 | 32 |
|
32 | | -sys.path.insert(0, os.path.abspath("../..")) |
33 | | - |
34 | | -# import pathlib |
35 | | -# sys.path.insert(0, pathlib.Path(__file__).parents[2].resolve().as_posix()) |
| 33 | +#import pathlib |
| 34 | +#sys.path.insert(0, pathlib.Path(__file__).parents[2].resolve().as_posix()) |
36 | 35 |
|
37 | 36 | # -- Project information |
38 | 37 |
|
39 | | -project = "TorchQuantum" |
40 | | -copyright = "2021, Hanrui Wang" |
41 | | -author = "Hanrui Wang" |
| 38 | +project = 'TorchQuantum' |
| 39 | +copyright = '2021, Hanrui Wang' |
| 40 | +author = 'Hanrui Wang' |
42 | 41 |
|
43 | | -release = "0.1" |
44 | | -version = "0.1.0" |
| 42 | +release = '0.1' |
| 43 | +version = '0.1.0' |
45 | 44 |
|
46 | 45 | # -- General configuration |
47 | 46 |
|
48 | 47 | extensions = [ |
49 | | - "sphinx.ext.duration", |
50 | | - "sphinx.ext.doctest", |
51 | | - "sphinx.ext.autodoc", |
52 | | - "sphinx.ext.autosummary", |
53 | | - "sphinx.ext.intersphinx", |
54 | | - "sphinx.ext.napoleon", # google styled docstring |
55 | | - "sphinx.ext.viewcode", # [source] link to view code |
| 48 | + 'sphinx.ext.duration', |
| 49 | + 'sphinx.ext.doctest', |
| 50 | + 'sphinx.ext.autodoc', |
| 51 | + 'sphinx.ext.autosummary', |
| 52 | + 'sphinx.ext.intersphinx', |
| 53 | + 'sphinx.ext.napoleon', # google styled docstring |
| 54 | + 'sphinx.ext.viewcode', # [source] link to view code |
56 | 55 | # 'sphinx.ext.todo', |
57 | 56 | # 'sphinx.ext.coverage', |
58 | 57 | # 'sphinxcontrib.katex', |
|
63 | 62 | # 'sphinx.ext.extlinks', |
64 | 63 | # 'sphinx_autodoc_typehints', |
65 | 64 | # 'jupyter_sphinx', |
66 | | - "nbsphinx", # support for including Jupyter Notebook (*.ipynb) file |
67 | | - "recommonmark", # support for including markdown (*.md) file |
| 65 | + 'nbsphinx', # support for including Jupyter Notebook (*.ipynb) file |
| 66 | + 'recommonmark', # support for including markdown (*.md) file |
68 | 67 | # 'sphinx_design', |
69 | 68 | # 'sphinx_reredirects' |
70 | 69 | ] |
71 | 70 |
|
72 | 71 | intersphinx_mapping = { |
73 | | - "python": ("https://docs.python.org/3/", None), |
74 | | - "sphinx": ("https://www.sphinx-doc.org/en/master/", None), |
| 72 | + 'python': ('https://docs.python.org/3/', None), |
| 73 | + 'sphinx': ('https://www.sphinx-doc.org/en/master/', None), |
75 | 74 | } |
76 | | -intersphinx_disabled_domains = ["std"] |
| 75 | +intersphinx_disabled_domains = ['std'] |
77 | 76 |
|
78 | | -templates_path = ["_templates"] |
| 77 | +templates_path = ['_templates'] |
79 | 78 |
|
80 | 79 | # -- Options for HTML output |
81 | 80 |
|
|
143 | 142 | } |
144 | 143 | """ |
145 | 144 |
|
146 | | -html_theme = "furo" |
| 145 | +html_theme = 'furo' |
147 | 146 | html_theme_options = { |
148 | | - "collapse_navigation": False, |
149 | | - "display_version": True, |
150 | | - "logo_only": False, |
151 | | - "index": "page.html", |
| 147 | + 'collapse_navigation': False, |
| 148 | + 'display_version': True, |
| 149 | + 'logo_only': False, |
| 150 | + "index": "page.html" |
152 | 151 | } |
153 | 152 |
|
154 | 153 | # adjust code block style for readthedocs |
|
160 | 159 | display_gitlab = False |
161 | 160 | show_source = True |
162 | 161 | # -- Options for EPUB output |
163 | | -epub_show_urls = "footnote" |
| 162 | +epub_show_urls = 'footnote' |
0 commit comments