|
2 | 2 | from urllib.request import urlopen |
3 | 3 |
|
4 | 4 |
|
5 | | -_conf_url = "https://raw.githubusercontent.com/inducer/sphinxconfig/main/sphinxconfig.py" # noqa |
| 5 | +_conf_url = "https://raw.githubusercontent.com/inducer/sphinxconfig/main/sphinxconfig.py" |
6 | 6 | with urlopen(_conf_url) as _inf: |
7 | 7 | exec(compile(_inf.read(), _conf_url, "exec"), globals()) |
8 | 8 |
|
|
35 | 35 | "pyrsistent": ("https://pyrsistent.readthedocs.io/en/latest/", None), |
36 | 36 | } |
37 | 37 |
|
38 | | -# Some modules need to import things just so that sphinx can resolve symbols in |
39 | | -# type annotations. Often, we do not want these imports (e.g. of PyOpenCL) when |
40 | | -# in normal use (because they would introduce unintended side effects or hard |
41 | | -# dependencies). This flag exists so that these imports only occur during doc |
42 | | -# build. Since sphinx appears to resolve type hints lexically (as it should), |
43 | | -# this needs to be cross-module (since, e.g. an inherited arraycontext |
44 | | -# docstring can be read by sphinx when building meshmode, a dependent package), |
45 | | -# this needs a setting of the same name across all packages involved, that's |
46 | | -# why this name is as global-sounding as it is. |
47 | | -import sys |
48 | | - |
49 | | - |
50 | | -sys._BUILDING_SPHINX_DOCS = True |
51 | | - |
52 | 38 | nitpicky = True |
53 | 39 |
|
54 | 40 | nitpick_ignore_regex = [ |
|
62 | 48 | ["py:class", r"immutables\.(.+)"], |
63 | 49 |
|
64 | 50 | # Reference not found from "<unknown>"? I'm not even sure where to look. |
65 | | - ["py:class", r"Expression"], |
| 51 | + ["py:class", r"ExpressionNode"], |
| 52 | + |
| 53 | + # Type aliases |
| 54 | + ["py:class", r"InameStr"], |
| 55 | + ["py:class", r"ConcreteCallablesTable"], |
| 56 | + ["py:class", r"LoopNestTree"], |
| 57 | + ["py:class", r"LoopTree"], |
| 58 | + ["py:class", r"ToLoopyTypeConvertible"], |
| 59 | + ["py:class", r"ToStackMatchConvertible"], |
66 | 60 | ] |
67 | | - |
68 | | -autodoc_type_aliases = { |
69 | | - "ToLoopyTypeConvertible": "ToLoopyTypeConvertible", |
70 | | - "ExpressionT": "ExpressionT", |
71 | | - "InameStr": "InameStr", |
72 | | - "ShapeType": "ShapeType", |
73 | | - "StridesType": "StridesType", |
74 | | -} |
0 commit comments