|
1 | 1 | # Configuration file for the Sphinx documentation builder. |
2 | | -# |
3 | | -# This file only contains a selection of the most common options. For a full |
4 | | -# list see the documentation: |
5 | | -# https://www.sphinx-doc.org/en/master/usage/configuration.html |
6 | | - |
7 | 2 | # -- Path setup -------------------------------------------------------------- |
8 | | - |
9 | | -# If extensions (or modules to document with autodoc) are in another directory, |
10 | | -# add these directories to sys.path here. If the directory is relative to the |
11 | | -# documentation root, use os.path.abspath to make it absolute, like shown here. |
12 | | -# |
13 | | -# import os |
14 | | -# import sys |
15 | | -# sys.path.insert(0, os.path.abspath('.')) |
16 | | - |
17 | 3 | from datetime import datetime |
18 | 4 | import subprocess |
19 | 5 |
|
20 | 6 | current_year = datetime.now().year |
21 | 7 | organization_name = "pyOpenSci" |
22 | 8 |
|
23 | 9 | # -- Project information ----------------------------------------------------- |
24 | | - |
25 | 10 | project = "pyOpenSci Handbook" |
26 | 11 | copyright = f"{current_year}, {organization_name}" |
27 | 12 | author = "pyOpenSci" |
|
107 | 92 | "navigation_depth": 3, |
108 | 93 | "show_toc_level": 1, |
109 | 94 | # "navbar_align": "left", # [left, content, right] For testing that the navbar items align properly |
110 | | - "github_url": "https://github.com/pyopensci/governance", |
| 95 | + "github_url": "https://github.com/pyopensci/handbook", |
111 | 96 | "footer_start": ["copyright"], |
112 | 97 | "footer_end": [], |
113 | 98 | } |
|
118 | 103 |
|
119 | 104 | html_context = { |
120 | 105 | "github_user": "pyopensci", |
121 | | - "github_repo": "governance", |
| 106 | + "github_repo": "handbook", |
122 | 107 | "github_version": "main", |
123 | 108 | } |
124 | 109 |
|
125 | 110 | # Add any paths that contain templates here, relative to this directory. |
126 | 111 | templates_path = ["_templates"] |
127 | 112 |
|
128 | | -# List of patterns, relative to source directory, that match files and |
| 113 | +# List of patterns relative to source directory that match files and |
129 | 114 | # directories to ignore when looking for source files. |
130 | 115 | # This pattern also affects html_static_path and html_extra_path. |
131 | 116 | exclude_patterns = [ |
|
139 | 124 | ] |
140 | 125 |
|
141 | 126 | # For sitemap generation |
142 | | -html_baseurl = "https://www.pyopensci.org/governance/" |
| 127 | +html_baseurl = "https://www.pyopensci.org/handbook/" |
143 | 128 | sitemap_url_scheme = "{link}" |
144 | 129 |
|
145 | 130 | # -- Options for HTML output ------------------------------------------------- |
|
149 | 134 | html_js_files = ["matomo.js"] |
150 | 135 |
|
151 | 136 |
|
152 | | -# Add any paths that contain custom static files (such as style sheets) here, |
153 | | -# relative to this directory. They are copied after the builtin static files, |
154 | | -# so a file named "default.css" will overwrite the builtin "default.css". |
| 137 | +# Add paths containing custom static files (such as style sheets) here, |
| 138 | +# relative to this directory. They are copied after the built-in static files, |
| 139 | +# so a file named "default.css" will overwrite the built-in "default.css". |
155 | 140 | html_static_path = ["_static"] |
156 | 141 |
|
157 | 142 | # Social cards |
158 | | -ogp_site_url = "https://www.pyopensci.org/governance/" |
| 143 | +ogp_site_url = "https://www.pyopensci.org/handbook/" |
159 | 144 | ogp_social_cards = { |
160 | 145 | "line_color": "#6D597A", |
161 | 146 | "image": "_static/logo-dark-mode.png", |
|
0 commit comments