##// END OF EJS Templates
Use and depend on intersphinx_registry for doc building....
M Bussonnier -
Show More
@@ -9,4 +9,4 b' matplotlib'
9 docrepr
9 docrepr
10 prompt_toolkit
10 prompt_toolkit
11 ipykernel
11 ipykernel
12 stack_data
12 intersphinx_registry
@@ -92,12 +92,36 b' exec('
92
92
93 locals().update(config["sphinx"])
93 locals().update(config["sphinx"])
94
94
95 intersphinx_mapping = config["intersphinx_mapping"]
95 try:
96 for k, v in intersphinx_mapping.items():
96 from intersphinx_registry import get_intersphinx_mapping
97 intersphinx_mapping[k] = tuple(
97
98 [intersphinx_mapping[k]["url"], intersphinx_mapping[k]["fallback"]]
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 }
99 )
112 )
100
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.")
118 intersphinx_mapping = config["intersphinx_mapping"]
119 for k, v in intersphinx_mapping.items():
120 intersphinx_mapping[k] = tuple(
121 [intersphinx_mapping[k]["url"], intersphinx_mapping[k]["fallback"]]
122 )
123
124
101 # numpydoc config
125 # numpydoc config
102 numpydoc_show_class_members = config["numpydoc"][
126 numpydoc_show_class_members = config["numpydoc"][
103 "numpydoc_show_class_members"
127 "numpydoc_show_class_members"
@@ -63,6 +63,7 b' black = ['
63 doc = [
63 doc = [
64 "docrepr",
64 "docrepr",
65 "exceptiongroup",
65 "exceptiongroup",
66 "intersphinx_registry",
66 "ipykernel",
67 "ipykernel",
67 "ipython[test]",
68 "ipython[test]",
68 "matplotlib",
69 "matplotlib",
@@ -70,7 +71,6 b' doc = ['
70 "sphinx-rtd-theme",
71 "sphinx-rtd-theme",
71 "sphinx>=1.3",
72 "sphinx>=1.3",
72 "sphinxcontrib-jquery",
73 "sphinxcontrib-jquery",
73 "stack_data",
74 "tomli ; python_version<'3.11'",
74 "tomli ; python_version<'3.11'",
75 "typing_extensions",
75 "typing_extensions",
76 ]
76 ]
General Comments 0
You need to be logged in to leave comments. Login now