|
14 | 14 |
|
15 | 15 | import sys |
16 | 16 | import os |
17 | | -import sphinx_rtd_theme |
| 17 | +import time |
18 | 18 | import importlib.metadata |
19 | 19 |
|
20 | 20 |
|
21 | 21 | # -- Project information ----------------------------------------------------- |
22 | 22 | _DISTRIBUTION_METADATA = importlib.metadata.metadata("pina-mathlab") |
23 | 23 | project = _DISTRIBUTION_METADATA["Name"] |
24 | | -copyright = _DISTRIBUTION_METADATA["License-File"] |
| 24 | +copyright = f'2021-{time.strftime("%Y")}' |
25 | 25 | author = "PINA Contributors" |
26 | 26 | version = _DISTRIBUTION_METADATA["Version"] |
27 | 27 |
|
28 | 28 |
|
29 | | -sys.path.insert( |
30 | | - 0, os.path.abspath("../sphinx_extensions") |
31 | | -) |
| 29 | +sys.path.insert(0, os.path.abspath("../sphinx_extensions")) |
32 | 30 |
|
33 | 31 | # -- General configuration ------------------------------------------------ |
34 | 32 |
|
|
54 | 52 | exclude_patterns = ["build", "docstrings", "nextgen", "Thumbs.db", ".DS_Store"] |
55 | 53 |
|
56 | 54 | # The reST default role (used for this markup: `text`) to use for all documents. |
57 | | -# default_role = 'literal' |
| 55 | +default_role = "literal" |
58 | 56 |
|
59 | 57 | # Generate the API documentation when building |
60 | 58 | autosummary_generate = True |
|
71 | 69 | ), |
72 | 70 | } |
73 | 71 |
|
74 | | -# nitpicky = True |
75 | | -# nitpick_ignore = [ |
76 | | -# ("py:meth", "lightning.pytorch.core.module.LightningModule.log"), |
77 | | -# ("py:meth", "lightning.pytorch.core.module.LightningModule.log_dict"), |
78 | | -# ("py:exc", "MisconfigurationException"), |
79 | | -# ("py:func", "torch.inference_mode"), |
80 | | -# ("py:func", "torch.no_grad"), |
81 | | -# ("py:class", "torch.utils.data.DistributedSampler"), |
82 | | -# ("py:class", "pina.model.layers.convolution.BaseContinuousConv"), |
83 | | -# ("py:class", "Module"), |
84 | | -# ("py:class", "torch.nn.modules.loss._Loss"), # TO FIX |
85 | | -# ("py:class", "torch.optim.LRScheduler"), # TO FIX |
86 | | -# ] |
87 | | - |
88 | | - |
89 | 72 | # Add any paths that contain templates here, relative to this directory. |
90 | 73 | templates_path = ["_templates"] |
91 | 74 |
|
|
148 | 131 | # Theme options are theme-specific and customize the look and feel of a theme |
149 | 132 | # further. For a list of options available for each theme, see the |
150 | 133 | # documentation. |
151 | | -# html_theme_options = {} |
152 | | - |
153 | | -# Add any paths that contain custom themes here, relative to this directory. |
154 | | -# html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
155 | | - |
156 | | -# The name of an image file (relative to this directory) to place at the top |
157 | | -# of the sidebar. |
158 | 134 | html_logo = "index_files/PINA_logo.png" |
159 | 135 | html_theme_options = { |
160 | 136 | "icon_links": [ |
|
183 | 159 | "header_links_before_dropdown": 8, |
184 | 160 | } |
185 | 161 |
|
| 162 | +html_context = { |
| 163 | + "default_mode": "light", |
| 164 | +} |
| 165 | + |
186 | 166 | # If not ''i, a 'Last updated on:' timestamp is inserted at every page bottom, |
187 | 167 | # using the given strftime format. |
188 | 168 | html_last_updated_fmt = "%b %d, %Y" |
|
256 | 236 | "PINA Documentation", |
257 | 237 | author, |
258 | 238 | "pina", |
259 | | - "One line description of project.", |
260 | 239 | "Miscellaneous", |
261 | 240 | ), |
262 | 241 | ] |
|
0 commit comments