|
18 | 18 | # for sphinx
|
19 | 19 | import os
|
20 | 20 | import sys
|
| 21 | +from datetime import datetime |
21 | 22 |
|
22 | 23 | currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
|
23 | 24 | parentdir = os.path.dirname(currentdir)
|
|
31 | 32 | # -- Project information -----------------------------------------------------
|
32 | 33 |
|
33 | 34 | project = "piso"
|
34 |
| -copyright = "2021, Riley Clement" |
| 35 | +copyright = f"2021-{datetime.now().year}, Riley Clement" |
35 | 36 | author = "Riley Clement"
|
36 | 37 | version = piso.__version__
|
37 | 38 | if "untagged" in version:
|
|
64 | 65 | # "sphinx.ext.linkcode",
|
65 | 66 | "numpydoc", # handle NumPy documentation formatted docstrings]
|
66 | 67 | "nbsphinx",
|
67 |
| - "sphinx_panels", |
| 68 | + "sphinx_design", |
68 | 69 | ]
|
69 | 70 |
|
70 |
| -source_suffix = [".rst", ".ipynb"] |
| 71 | +source_suffix = [".rst"] |
71 | 72 |
|
72 | 73 | # Add any paths that contain templates here, relative to this directory.
|
73 | 74 | templates_path = ["_templates"]
|
|
90 | 91 |
|
91 | 92 | # sphinx-panels shouldn't add bootstrap css since the pydata-sphinx-theme
|
92 | 93 | # already loads it
|
93 |
| -panels_add_bootstrap_css = False |
| 94 | +# panels_add_bootstrap_css = False |
94 | 95 |
|
95 | 96 | # The name of the Pygments (syntax highlighting) style to use.
|
96 | 97 | pygments_style = "sphinx"
|
|
121 | 122 | html_theme = "pydata_sphinx_theme"
|
122 | 123 |
|
123 | 124 | html_theme_options = {
|
124 |
| - "google_analytics_id": "UA-65430466-3", |
125 | 125 | "github_url": "https://github.com/staircase-dev/piso",
|
| 126 | + "navbar_end": ["navbar-icon-links"], |
126 | 127 | }
|
127 | 128 |
|
| 129 | +html_theme_options["analytics"] = { |
| 130 | + "google_analytics_id": "UA-65430466-3", |
| 131 | +} |
| 132 | + |
| 133 | +html_show_sourcelink = False |
| 134 | + |
128 | 135 |
|
129 | 136 | html_logo = "img/piso_white.svg"
|
130 | 137 | html_favicon = "img/favicon.ico"
|
|
134 | 141 | # so a file named "default.css" will overwrite the builtin "default.css".
|
135 | 142 | html_static_path = ["_static"]
|
136 | 143 |
|
| 144 | +html_css_files = [ |
| 145 | + "custom.css", |
| 146 | +] |
| 147 | + |
| 148 | +html_context = { |
| 149 | + # ... |
| 150 | + "default_mode": "light" |
| 151 | +} |
| 152 | + |
137 | 153 |
|
138 | 154 | def setup(app):
|
139 |
| - app.add_css_file("custom.css") |
| 155 | + ... |
| 156 | + # app.add_css_file("custom.css") |
0 commit comments