File: 0008-Do-not-fail-documentation-build-on-example-errors.patch

package info (click to toggle)
scikit-learn 1.7.2%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,752 kB
  • sloc: python: 219,120; cpp: 5,790; ansic: 846; makefile: 191; javascript: 110
file content (20 lines) | stat: -rw-r--r-- 640 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Sun, 12 Oct 2025 12:28:11 +0200
Subject: Do not fail documentation build on example errors

---
 doc/conf.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/doc/conf.py b/doc/conf.py
index 13b6886..5ba8926 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -730,6 +730,7 @@ sphinx_gallery_conf = {
     "plot_gallery": "True",
     "recommender": {"enable": True, "n_examples": 4, "min_df": 12},
     "reset_modules": ("matplotlib", "seaborn", reset_sklearn_config),
+    "only_warn_on_example_error": True,
 }
 if with_jupyterlite:
     sphinx_gallery_conf["jupyterlite"] = {