1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
Description: Use sphinx_rtd_theme
Author: Thomas Goirand <zigo@debian.org>
Bug-Debian: https://bugs.debian.org/1091031
Forwarded: no
Last-Update: 2024-12-27
--- python-contextily-1.5.2+dfsg1.orig/docs/conf.py
+++ python-contextily-1.5.2+dfsg1/docs/conf.py
@@ -56,29 +56,13 @@ exclude_patterns = ["_build", "Thumbs.db
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
-html_theme = "sphinx_book_theme"
-
-# Add any paths that contain custom static files (such as style sheets) here,
-# relative to this directory. They are copied after the builtin static files,
-# so a file named "default.css" will overwrite the builtin "default.css".
-html_static_path = ["_static"]
-
-html_css_files = [
- "css/custom.css",
-]
-
-html_theme_options = {
- "logo": {
- "text": "CONTEXTILY <br> Context geo tiles in Python",
- }
-}
-
-intersphinx_mapping = {
- "xyzservices": ("https://xyzservices.readthedocs.io/en/stable/", None),
-}
-
-
-# ---------------------------------------------------------------------------
+try:
+ import sphinx_rtd_theme
+except ImportError:
+ pass
+else:
+ html_theme = 'sphinx_rtd_theme'
+ html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
# convert README to rst
|