|
1 | 1 | from importlib import metadata |
2 | 2 | from urllib.request import urlopen |
3 | 3 |
|
| 4 | + |
4 | 5 | _conf_url = \ |
5 | 6 | "https://raw.githubusercontent.com/inducer/sphinxconfig/main/sphinxconfig.py" |
6 | 7 | with urlopen(_conf_url) as _inf: |
|
39 | 40 | ["py:class", r"TypeAliasForwardRef"], |
40 | 41 | ["py:class", r"arraycontext.typing._UserDefinedArrayContainer"], |
41 | 42 | ["py:class", r"arraycontext.typing._UserDefinedArithArrayContainer"], |
| 43 | + ["py:class", r"T"], |
42 | 44 | ] |
| 45 | + |
| 46 | + |
| 47 | +sphinxconfig_missing_reference_aliases = { |
| 48 | + # numpy |
| 49 | + "NDArray": "obj:numpy.typing.NDArray", |
| 50 | + # pytools |
| 51 | + "ObjectArrayND": "obj:pytools.obj_array.ObjectArrayND", |
| 52 | + # pyopencl |
| 53 | + "WaitList": "obj:pyopencl.WaitList", |
| 54 | + # pymbolic |
| 55 | + "Variable": "class:pymbolic.primitives.Variable", |
| 56 | + "Expression": "obj:pymbolic.typing.Expression", |
| 57 | + "ArithmeticExpression": "obj:pymbolic.ArithmeticExpression", |
| 58 | + "MultiVector": "obj:pymbolic.geometric_algebra.MultiVector", |
| 59 | + # arraycontext |
| 60 | + "ScalarLike": "obj:arraycontext.ScalarLike", |
| 61 | + "ArrayOrContainerOrScalar": "obj:arraycontext.ArrayOrContainerOrScalar", |
| 62 | + "PyOpenCLArrayContext": "class:arraycontext.PyOpenCLArrayContext", |
| 63 | + # modepy |
| 64 | + "mp.Shape": "class:modepy.Shape", |
| 65 | + # meshmode |
| 66 | + "Discretization": "class:meshmode.discretization.Discretization", |
| 67 | + "DOFArray": "class:meshmode.dof_array.DOFArray", |
| 68 | + # sumpy |
| 69 | + "Kernel": "class:sumpy.kernel.Kernel", |
| 70 | + "P2PBase": "class:sumpy.p2p.P2PBase", |
| 71 | + "ExpansionFactoryBase": "class:sumpy.expansion.ExpansionFactoryBase", |
| 72 | + # pytential |
| 73 | + "sym.IntG": "class:pytential.symbolic.primitives.IntG", |
| 74 | + "sym.DOFDescriptor": "class:pytential.symbolic.dof_desc.DOFDescriptor", |
| 75 | + "Operand": "obj:pytential.symbolic.primitives.Operand", |
| 76 | + "QBXForcedLimit": "obj:pytential.symbolic.primitives.QBXForcedLimit", |
| 77 | + "TargetOrDiscretization": "obj:pytential.target.TargetOrDiscretization", |
| 78 | +} |
| 79 | + |
| 80 | + |
| 81 | +def setup(app): |
| 82 | + app.connect("missing-reference", process_autodoc_missing_reference) # noqa: F821 |
0 commit comments