diff options
author | Ralf Gommers <ralf.gommers@gmail.com> | 2018-09-22 05:45:19 -0400 |
---|---|---|
committer | Ralf Gommers <ralf.gommers@gmail.com> | 2018-09-22 05:46:45 -0400 |
commit | f5791cfb98db4d181956b8ccaa4e5bc9e1b07919 (patch) | |
tree | 69f202cc20e6429c3ab9fa033a91a4861c3b8094 /doc/neps | |
parent | 3b4772157dea90f79bc41a96efd5f7ee7ef527a0 (diff) | |
download | numpy-f5791cfb98db4d181956b8ccaa4e5bc9e1b07919.tar.gz |
DOC: BLD: remove graphviz dependency of neps doc build. Closes gh-11617
Diffstat (limited to 'doc/neps')
-rw-r--r-- | doc/neps/_static/nep0013_image1.png | bin | 0 -> 18653 bytes | |||
-rw-r--r-- | doc/neps/_static/nep0013_image2.png | bin | 0 -> 6313 bytes | |||
-rw-r--r-- | doc/neps/_static/nep0013_image3.png | bin | 0 -> 11704 bytes | |||
-rw-r--r-- | doc/neps/conf.py | 3 | ||||
-rw-r--r-- | doc/neps/nep-0013-ufunc-overrides.rst | 30 |
5 files changed, 4 insertions, 29 deletions
diff --git a/doc/neps/_static/nep0013_image1.png b/doc/neps/_static/nep0013_image1.png Binary files differnew file mode 100644 index 000000000..e1b35b738 --- /dev/null +++ b/doc/neps/_static/nep0013_image1.png diff --git a/doc/neps/_static/nep0013_image2.png b/doc/neps/_static/nep0013_image2.png Binary files differnew file mode 100644 index 000000000..99f51b2fa --- /dev/null +++ b/doc/neps/_static/nep0013_image2.png diff --git a/doc/neps/_static/nep0013_image3.png b/doc/neps/_static/nep0013_image3.png Binary files differnew file mode 100644 index 000000000..87a354ad1 --- /dev/null +++ b/doc/neps/_static/nep0013_image3.png diff --git a/doc/neps/conf.py b/doc/neps/conf.py index 8cfb2b570..bd7503781 100644 --- a/doc/neps/conf.py +++ b/doc/neps/conf.py @@ -30,8 +30,7 @@ import os # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = ['sphinx.ext.imgmath', - 'sphinx.ext.graphviz'] +extensions = ['sphinx.ext.imgmath',] # Add any paths that contain templates here, relative to this directory. templates_path = ['../source/_templates/'] diff --git a/doc/neps/nep-0013-ufunc-overrides.rst b/doc/neps/nep-0013-ufunc-overrides.rst index a51ce3927..0888c7559 100644 --- a/doc/neps/nep-0013-ufunc-overrides.rst +++ b/doc/neps/nep-0013-ufunc-overrides.rst @@ -261,16 +261,7 @@ consider carefully if any surprising behavior results. Type casting hierarchy. - .. graphviz:: - - digraph array_ufuncs { - rankdir=BT; - A -> C [label="C"]; - B -> C [label="C"]; - D -> B [label="B"]; - ndarray -> C [label="A"]; - ndarray -> B [label="B"]; - } + .. image:: _static/nep0013_image1.png The ``__array_ufunc__`` of type A can handle ndarrays returning C, B can handle ndarray and D returning B, and C can handle A and B returning C, @@ -286,14 +277,7 @@ consider carefully if any surprising behavior results. One-cycle in the ``__array_ufunc__`` graph. - .. graphviz:: - - digraph array_ufuncs { - rankdir=BT; - A -> B [label="B"]; - B -> A [label="A"]; - } - + .. image:: _static/nep0013_image2.png In this case, the ``__array_ufunc__`` relations have a cycle of length 1, and a type casting hierarchy does not exist. Binary operations are not @@ -303,15 +287,7 @@ consider carefully if any surprising behavior results. Longer cycle in the ``__array_ufunc__`` graph. - .. graphviz:: - - digraph array_ufuncs { - rankdir=BT; - A -> B [label="B"]; - B -> C [label="C"]; - C -> A [label="A"]; - } - + .. image:: _static/nep0013_image3.png In this case, the ``__array_ufunc__`` relations have a longer cycle, and a type casting hierarchy does not exist. Binary operations are still |