Skip to content

Commit 4608b02

Browse files
committed
update it
1 parent 583a5b5 commit 4608b02

File tree

3 files changed

+15
-22
lines changed

3 files changed

+15
-22
lines changed

_doc/conf.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,9 @@
123123
("https://docs.scipy.org/doc/numpy/reference/generated/numpy.{0}.{1}.html", 2),
124124
),
125125
"pandas": (
126-
"https://pandas.pydata.org/pandas-docs/stable/",
127-
("https://pandas.pydata.org/pandas-docs/stable/generated/pandas.{0}.html", 1),
128-
(
129-
"https://pandas.pydata.org/pandas-docs/stable/generated/pandas.{0}.{1}.html",
130-
2,
131-
),
126+
"https://pandas.pydata.org/docs/reference/index.html",
127+
("https://pandas.pydata.org/docs/reference/api/pandas.{0}.html", 1),
128+
("https://pandas.pydata.org/docs/reference/api/pandas.{0}.{1}.html", 2),
132129
),
133130
"pandoc": "https://pandoc.org/",
134131
"Pandoc": "https://pandoc.org/",

_unittests/ut_epkg/test_epkg_extension.py

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def test_epkg_module(self):
3434
if t1 not in html:
3535
raise AssertionError(html)
3636

37-
t1 = "https://pandas.pydata.org/pandas-docs/stable/"
37+
t1 = "https://pandas.pydata.org/docs/"
3838
if t1 not in html:
3939
raise AssertionError(html)
4040

@@ -52,11 +52,8 @@ def test_epkg_module_twice(self):
5252
)
5353
content = content.replace('u"', '"')
5454

55-
html = rst2html(
56-
content,
57-
writer_name="rst",
58-
)
59-
self.assertIn("https://pandas.pydata.org/pandas-docs/stable/", html)
55+
html = rst2html(content, writer_name="rst")
56+
self.assertIn("https://pandas.pydata.org/docs/", html)
6057

6158
@ignore_warnings(PendingDeprecationWarning)
6259
def test_epkg_sub(self):
@@ -117,7 +114,9 @@ def pandas_link(input):
117114
if t1 in html:
118115
raise AssertionError(f"\n**{spl}**\n----\n{html}")
119116

120-
t1 = "https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.to_html.html"
117+
t1 = (
118+
"https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_html.html"
119+
)
121120
if t1 not in html:
122121
raise AssertionError(html)
123122

@@ -143,13 +142,9 @@ def __call__(self, input):
143142

144143
self.assertIn("abeforea", html)
145144
self.assertIn("aftera", html)
146-
147145
self.assertNotIn("`", html)
148-
self.assertIn('https://johnmacfarlane.net/pandoc/"', html)
149-
self.assertIn(
150-
"https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.to_html.html",
151-
html,
152-
)
146+
self.assertIn('https://pandoc.org/"', html)
147+
self.assertIn("https://pandas.pydata.org/docs/reference/api/pandas.", html)
153148

154149
@ignore_warnings(PendingDeprecationWarning)
155150
def test_epkg_function_string(self):
@@ -179,7 +174,9 @@ def test_epkg_function_string(self):
179174
if t1 in html:
180175
raise AssertionError(f"\n**{spl}**\n----\n{html}")
181176

182-
t1 = "https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.to_html.html"
177+
t1 = (
178+
"https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_html.html"
179+
)
183180
if t1 not in html:
184181
raise AssertionError(html)
185182

sphinx_runpython/ext_helper.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,7 @@ def _get_data(url):
144144
Loads file ``objects.inv`` generated by
145145
extension :epkg:`sphinx.ext.intersphinx`.
146146
147-
:param url: url of documentation, example
148-
`https://pandas.pydata.org/docs/ <https://pandas.pydata.org/docs/>`_
147+
:param url: url of documentation, example ``https://pandas.pydata.org/docs/``
149148
:return: instance of `InventoryFile`
150149
"""
151150
url_inv = urljoin(url, "objects.inv")

0 commit comments

Comments
 (0)