diff --git a/docs/_templates/docs-sidebar.html b/docs/_templates/docs-sidebar.html deleted file mode 100644 index d3b553e8..00000000 --- a/docs/_templates/docs-sidebar.html +++ /dev/null @@ -1,23 +0,0 @@ - -{% if logo %} - - - -{% else %} - -CONTEXTILY - -

Context geo tiles in Python

-{% endif %} - - - - - diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html deleted file mode 100644 index a9d0f30b..00000000 --- a/docs/_templates/layout.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "pydata_sphinx_theme/layout.html" %} - -{# Silence the navbar #} -{% block docs_navbar %} -{% endblock %} diff --git a/docs/conf.py b/docs/conf.py index 022e4a15..aecb8fec 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -17,8 +17,9 @@ # documentation root, use os.path.abspath to make it absolute, like shown here. # # import os -# import sys -# sys.path.insert(0, os.path.abspath('.')) +import sys +sys.path.insert(0, os.path.abspath("..")) +import contextily # noqa # -- Project information ----------------------------------------------------- @@ -28,7 +29,7 @@ author = "Dani Arribas-Bel & Contexily Contributors" # The full version, including alpha/beta/rc tags -release = "1.1.0" +release = contextily.__version__ # -- General configuration --------------------------------------------------- @@ -60,7 +61,7 @@ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -html_theme = "pydata_sphinx_theme" +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, @@ -71,8 +72,10 @@ "css/custom.css", ] -html_sidebars = { - "**": ["docs-sidebar.html"], +html_theme_options = { + "logo": { + "text": "CONTEXTILY
Context geo tiles in Python", + } } intersphinx_mapping = { diff --git a/docs/environment.yml b/docs/environment.yml index 964c2784..e2a4f45f 100644 --- a/docs/environment.yml +++ b/docs/environment.yml @@ -2,7 +2,7 @@ name: contextily_docs channels: - conda-forge dependencies: -- python=3.7 +- python=3.11 # dependencies - numpy - geopy @@ -20,4 +20,4 @@ dependencies: - nbsphinx - pandoc - ipython -- pydata-sphinx-theme +- sphinx-book-theme diff --git a/docs/index.rst b/docs/index.rst index 4b20d901..829e65f4 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -10,7 +10,7 @@ Contents -------- .. toctree:: - :maxdepth: 2 + :maxdepth: 1 :caption: User Guide intro_guide @@ -22,7 +22,7 @@ Contents friends_cenpy_osmnx .. toctree:: - :maxdepth: 2 + :maxdepth: 1 :caption: Reference Guide reference diff --git a/readthedocs.yml b/readthedocs.yml index 89380bbe..b121b70f 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -1,9 +1,12 @@ version: 2 -formats: [] -conda: - environment: docs/environment.yml +build: + os: ubuntu-22.04 + tools: + python: mambaforge-latest python: - version: 3 - install: - - method: pip - path: . + install: + - method: pip + path: . +conda: + environment: docs/environment.yml +formats: [] \ No newline at end of file