You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To add a link to your repository, add the following configuration:
26
+
-**GitHub**: For example, `https://github.com/executablebooks/sphinx-book-theme`.
27
+
This includes custom URLs for self-hosted GitHub.
28
+
-**GitLab**: For example, `https://gitlab.com/gitlab-org/gitlab`.
29
+
This includes custom URLs for self-hosted GitLab.
30
+
-**BitBucket**: For example, `https://opensource.ncsa.illinois.edu/bitbucket/scm/u3d/3dutilities`.
31
+
32
+
In each case, we **assume the final two URL items are the `org/repo` pair**.
33
+
34
+
### Manually specify the provider
35
+
36
+
If your provider URL is more complex (e.g., if you're self-hosting your provider), you can manually specify the provider with the following configuration:
f"'{key}' was deprecated from version 0.3.4 onwards. See the CHANGELOG for more information: https://github.com/executablebooks/sphinx-book-theme/blob/master/CHANGELOG.md"# noqa: E501
160
167
f"[{DEFAULT_LOG_TYPE}]",
@@ -181,14 +188,14 @@ def run(self):
181
188
returnnodes
182
189
183
190
184
-
defupdate_general_config(app, config):
191
+
defupdate_general_config(app):
185
192
theme_dir=get_html_theme_path()
186
193
# Update templates for sidebar. Needed for jupyter-book builds as jb
187
194
# uses an instance of Sphinx class from sphinx.application to build the app.
188
195
# The __init__ function of which calls self.config.init_values() just
189
196
# before emitting `config-inited` event. The init_values function overwrites
0 commit comments