| 1 |
Subject: Don't try to use Sphinx extensions we don't have |
| 2 |
|
| 3 |
sphinx_autosummary_accessors is not packaged; |
| 4 |
jupyter_sphinx is but probably doesn't work. |
| 5 |
|
| 6 |
Author: Andreas Tille <[email protected]>, Rebecca N. Palmer |
| 7 |
Last-Update: 2025-01-05 |
| 8 |
--- |
| 9 |
docs/requirements-docs.txt | 11 ----------- |
| 10 |
docs/source/10-minutes-to-dask.rst | 8 ++++---- |
| 11 |
docs/source/conf.py | 8 ++++---- |
| 12 |
docs/source/scheduling.rst | 2 +- |
| 13 |
4 files changed, 9 insertions(+), 20 deletions(-) |
| 14 |
|
| 15 |
--- dask.orig/docs/requirements-docs.txt |
| 16 |
+++ dask/docs/requirements-docs.txt |
| 17 |
@@ -4,22 +4,11 @@ |
| 18 |
sphinx-click |
| 19 |
sphinx-copybutton |
| 20 |
sphinx-remove-toctrees |
| 21 |
-sphinx_autosummary_accessors |
| 22 |
sphinx-tabs |
| 23 |
sphinx-design |
| 24 |
-jupyter_sphinx |
| 25 |
-# FIXME: `sphinxcontrib-*` pins are a workaround until we have sphinx>=5. |
| 26 |
-# See https://github.com/dask/dask-sphinx-theme/issues/68. |
| 27 |
-sphinxcontrib-applehelp>=1.0.0,<1.0.7 |
| 28 |
-sphinxcontrib-devhelp>=1.0.0,<1.0.6 |
| 29 |
-sphinxcontrib-htmlhelp>=2.0.0,<2.0.5 |
| 30 |
-sphinxcontrib-serializinghtml>=1.1.0,<1.1.10 |
| 31 |
-sphinxcontrib-qthelp>=1.0.0,<1.0.7 |
| 32 |
toolz |
| 33 |
cloudpickle>=1.5.0 |
| 34 |
pandas>=2.0.0 |
| 35 |
-git+https://github.com/dask/distributed |
| 36 |
-git+https://github.com/dask-contrib/dask-expr |
| 37 |
fsspec |
| 38 |
scipy |
| 39 |
pytest |
| 40 |
--- dask.orig/docs/source/10-minutes-to-dask.rst |
| 41 |
+++ dask/docs/source/10-minutes-to-dask.rst |
| 42 |
@@ -91,7 +91,7 @@ |
| 43 |
|
| 44 |
See :doc:`array`. |
| 45 |
|
| 46 |
- .. jupyter-execute:: |
| 47 |
+ .. code-block:: python |
| 48 |
|
| 49 |
import numpy as np |
| 50 |
import dask.array as da |
| 51 |
@@ -105,12 +105,12 @@ |
| 52 |
|
| 53 |
Here are some key properties of a Dask Array: |
| 54 |
|
| 55 |
- .. jupyter-execute:: |
| 56 |
+ .. code-block:: python |
| 57 |
|
| 58 |
# inspect the chunks |
| 59 |
a.chunks |
| 60 |
|
| 61 |
- .. jupyter-execute:: |
| 62 |
+ .. code-block:: python |
| 63 |
|
| 64 |
# access a particular block of data |
| 65 |
a.blocks[1, 3] |
| 66 |
@@ -164,7 +164,7 @@ |
| 67 |
.. tab-item:: Array |
| 68 |
:sync: array |
| 69 |
|
| 70 |
- .. jupyter-execute:: |
| 71 |
+ .. code-block:: python |
| 72 |
|
| 73 |
a[:50, 200] |
| 74 |
|
| 75 |
--- dask.orig/docs/source/conf.py |
| 76 |
+++ dask/docs/source/conf.py |
| 77 |
@@ -22,7 +22,7 @@ |
| 78 |
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones. |
| 79 |
import sys |
| 80 |
|
| 81 |
-import sphinx_autosummary_accessors |
| 82 |
+# import sphinx_autosummary_accessors |
| 83 |
|
| 84 |
# -- General configuration ----------------------------------------------------- |
| 85 |
|
| 86 |
@@ -41,7 +41,7 @@ |
| 87 |
"sphinx.ext.mathjax", |
| 88 |
"sphinx.ext.intersphinx", |
| 89 |
"sphinx.ext.autosummary", |
| 90 |
- "sphinx_autosummary_accessors", |
| 91 |
+# "sphinx_autosummary_accessors", |
| 92 |
"sphinx.ext.extlinks", |
| 93 |
"sphinx.ext.viewcode", |
| 94 |
"numpydoc", |
| 95 |
@@ -51,7 +51,7 @@ |
| 96 |
"sphinx_remove_toctrees", |
| 97 |
"IPython.sphinxext.ipython_console_highlighting", |
| 98 |
"IPython.sphinxext.ipython_directive", |
| 99 |
- "jupyter_sphinx", |
| 100 |
+# "jupyter_sphinx", |
| 101 |
"sphinx_copybutton", |
| 102 |
"sphinx_design", |
| 103 |
] |
| 104 |
@@ -70,7 +70,7 @@ |
| 105 |
mathjax_path = 'file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML' |
| 106 |
|
| 107 |
# Add any paths that contain templates here, relative to this directory. |
| 108 |
-templates_path = ["_templates", sphinx_autosummary_accessors.templates_path] |
| 109 |
+#templates_path = ["_templates", sphinx_autosummary_accessors.templates_path] |
| 110 |
|
| 111 |
# The suffix of source filenames. |
| 112 |
source_suffix = ".rst" |
| 113 |
--- dask.orig/docs/source/scheduling.rst |
| 114 |
+++ dask/docs/source/scheduling.rst |
| 115 |
@@ -244,7 +244,7 @@ |
| 116 |
This import initialization can lead to subprocesses recursively creating other subprocesses |
| 117 |
and eventually an error is raised. |
| 118 |
|
| 119 |
-.. dropdown:: Common error encountered |
| 120 |
+Common error encountered |
| 121 |
|
| 122 |
.. code-block:: python |
| 123 |
|