Skip to content

Commit 914f060

Browse files
committed
Convert "references" to sphinx redirects
1 parent ce30702 commit 914f060

2 files changed

Lines changed: 9 additions & 39 deletions

File tree

doc/conf.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,20 @@
4545
["py:class", r"arraycontext.typing._UserDefinedArithArrayContainer"],
4646
["py:class", r"np.integer"],
4747
["py:class", r".*\|.*"],
48+
["py:data", r"types.EllipsisType"],
4849
]
4950

5051
sphinxconfig_missing_reference_aliases = {
5152
# pyopencl
5253
"cl.Device": "obj:pyopencl.Device",
54+
"cl.Allocator": "obj:pyopencl.array.Allocator",
55+
"np.ndarray": "obj:numpy.ndarray",
56+
"ToTagSetConvertible": "obj:pytools.tag.ToTagSetConvertible",
57+
"ArrayOrNames": "obj:pytato.ArrayOrNames",
58+
"Integer": "obj:python.int",
59+
"ScalarLike": "obj:arraycontext.ScalarLike",
60+
"ArrayOrContainerOrScalar": "obj:arraycontext.ArrayOrContainerOrScalar",
61+
"arraycontext.typing.ArrayOrContainerT": "obj:arraycontext.ArrayOrContainerT",
5362
}
5463

5564

doc/other.rst

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -19,42 +19,3 @@ Program creation for :mod:`loopy`
1919
---------------------------------
2020

2121
.. automodule:: arraycontext.loopy
22-
23-
References
24-
----------
25-
26-
.. currentmodule:: cl_array
27-
28-
.. class:: Allocator
29-
30-
See :class:`pyopencl.array.Allocator`.
31-
32-
.. currentmodule:: np
33-
34-
.. class:: ndarray
35-
36-
See :class:`numpy.ndarray`.
37-
38-
.. currentmodule:: dummy_refs
39-
40-
.. class:: ToTagSetConvertible
41-
42-
See :mod:`pytools.tag`.
43-
44-
.. class:: ArrayOrNames
45-
46-
A type alias in :mod:`pytato` allowing
47-
:class:`pytato.Array` and
48-
:class:`pytato.AbstractResultWithNamedArrays`.
49-
50-
.. class:: Integer
51-
52-
A type alias allowing integers.
53-
54-
.. class:: ScalarLike
55-
56-
See :class:`arraycontext.ScalarLike`.
57-
58-
.. class:: ArrayOrContainerOrScalar
59-
60-
See :class:`arraycontext.ArrayOrContainerOrScalar`.

0 commit comments

Comments
 (0)