Show More
@@ -9,4 +9,4 b' matplotlib' | |||
|
9 | 9 | docrepr |
|
10 | 10 | prompt_toolkit |
|
11 | 11 | ipykernel |
|
12 | stack_data | |
|
12 | intersphinx_registry |
@@ -92,12 +92,36 b' exec(' | |||
|
92 | 92 | |
|
93 | 93 | locals().update(config["sphinx"]) |
|
94 | 94 | |
|
95 | try: | |
|
96 | from intersphinx_registry import get_intersphinx_mapping | |
|
97 | ||
|
98 | intersphinx_mapping = get_intersphinx_mapping( | |
|
99 | packages={ | |
|
100 | "python", | |
|
101 | "rpy2", | |
|
102 | "jupyterclient", | |
|
103 | "jupyter", | |
|
104 | "jedi", | |
|
105 | "traitlets", | |
|
106 | "ipykernel", | |
|
107 | "prompt_toolkit", | |
|
108 | "ipywidgets", | |
|
109 | "ipyparallel", | |
|
110 | "pip", | |
|
111 | } | |
|
112 | ) | |
|
113 | ||
|
114 | except ModuleNotFoundError: | |
|
115 | # In case intersphinx_registry is not yet packages on current plaform | |
|
116 | # as it is quite recent. | |
|
117 | print("/!\\ intersphinx_registry not installed, relying on local mapping.") | |
|
95 | 118 | intersphinx_mapping = config["intersphinx_mapping"] |
|
96 | 119 | for k, v in intersphinx_mapping.items(): |
|
97 | 120 | intersphinx_mapping[k] = tuple( |
|
98 | 121 | [intersphinx_mapping[k]["url"], intersphinx_mapping[k]["fallback"]] |
|
99 | 122 | ) |
|
100 | 123 | |
|
124 | ||
|
101 | 125 | # numpydoc config |
|
102 | 126 | numpydoc_show_class_members = config["numpydoc"][ |
|
103 | 127 | "numpydoc_show_class_members" |
@@ -63,6 +63,7 b' black = [' | |||
|
63 | 63 | doc = [ |
|
64 | 64 | "docrepr", |
|
65 | 65 | "exceptiongroup", |
|
66 | "intersphinx_registry", | |
|
66 | 67 | "ipykernel", |
|
67 | 68 | "ipython[test]", |
|
68 | 69 | "matplotlib", |
@@ -70,7 +71,6 b' doc = [' | |||
|
70 | 71 | "sphinx-rtd-theme", |
|
71 | 72 | "sphinx>=1.3", |
|
72 | 73 | "sphinxcontrib-jquery", |
|
73 | "stack_data", | |
|
74 | 74 | "tomli ; python_version<'3.11'", |
|
75 | 75 | "typing_extensions", |
|
76 | 76 | ] |
General Comments 0
You need to be logged in to leave comments.
Login now