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
 
