From 57f7a1a09b725b6c06bb70aa9aaa9a0f285027cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20H=C3=B8xbro=20Hansen?= Date: Tue, 21 Jan 2025 09:25:09 +0100 Subject: [PATCH 1/3] docs: Fix build --- doc/conf.py | 2 +- pixi.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/conf.py b/doc/conf.py index 7ae28a82d..6270a26f1 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -87,7 +87,7 @@ def patch_error_location(self, msg, error=True): try: original_error_location(self, msg, error) except ValueError as e: - if "See Also entry ':doc:`xarray-tutorial" in str(e): + if "site-packages/xarray" in str(e): return else: raise e diff --git a/pixi.toml b/pixi.toml index 83a0c0ec4..c53e94f9b 100644 --- a/pixi.toml +++ b/pixi.toml @@ -69,6 +69,7 @@ matplotlib-base = ">=3.3" networkx = "*" panel = ">1.1" pyogrio = "*" +pyproj = "*" python-graphviz = "*" python-snappy = "*" rasterio = "!=1.4.0" # 2024-11: Errors and will not solve to latest on Linux + Python 3.9 From ca6693f310c912b4ada5500fd9acb22a99032ef8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20H=C3=B8xbro=20Hansen?= Date: Tue, 21 Jan 2025 10:16:14 +0100 Subject: [PATCH 2/3] Add source_suffix --- doc/conf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/conf.py b/doc/conf.py index 6270a26f1..71da96d21 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -15,6 +15,8 @@ 'css/custom.css' ] +source_suffix = ['.rst', '.md', '.ipynb'] + html_logo = '_static/logo_horizontal.svg' html_favicon = '_static/favicon.ico' From 6d14fe47b93ba7e73018bc87d5b59393745f2fa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20H=C3=B8xbro=20Hansen?= Date: Tue, 21 Jan 2025 10:46:26 +0100 Subject: [PATCH 3/3] Update doc/conf.py Co-authored-by: Maxime Liquet <35924738+maximlt@users.noreply.github.com> --- doc/conf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/conf.py b/doc/conf.py index 71da96d21..568bbff45 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -15,6 +15,9 @@ 'css/custom.css' ] +# Somehow .ipynb started to take precedence over .rst. +# This broke the landing page `index.rst` as it embeds `index.ipynb` file. +# Adding `.md` to make our life easier in the future. source_suffix = ['.rst', '.md', '.ipynb'] html_logo = '_static/logo_horizontal.svg'