Skip to content

Commit 2b07dd0

Browse files
authored
Fixed #262 - Convert path-like object to str. (#263)
1 parent 8b5e683 commit 2b07dd0

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

CHANGES.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
sphinxcontrib-matlabdomain-0.22.1 (2024-08-17)
2+
==============================================
3+
4+
* Fixed `Isssue 262`_. The API for
5+
``sphinx.environment.BuildEnvironment.doc2path`` was changed to return a
6+
path-like object in Sphinx 8.0.2.
7+
8+
.. _Issue 262: https://github.com/sphinx-contrib/matlabdomain/issues/243
9+
10+
111
sphinxcontrib-matlabdomain-0.22.0 (2024-07-17)
212
==============================================
313

@@ -16,7 +26,7 @@ sphinxcontrib-matlabdomain-0.22.0 (2024-07-17)
1626
.. image:: docs/render_property_specs_0.22.0.png
1727
:alt: Rendering property specs in 0.22.0
1828

19-
.. _Issue 243: https://github.com/sphinx-contrib/matlabdomain/issues/249
29+
.. _Issue 243: https://github.com/sphinx-contrib/matlabdomain/issues/243
2030
.. _Issue 249: https://github.com/sphinx-contrib/matlabdomain/issues/249
2131
.. _Issue 250: https://github.com/sphinx-contrib/matlabdomain/issues/250
2232
.. _Issue 252: https://github.com/sphinx-contrib/matlabdomain/issues/252

sphinxcontrib/matlab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def add_target_and_index(self, name_cls, sig, signode):
286286
self.state_machine.reporter.warning(
287287
"duplicate object description of %s, " % fullname_out
288288
+ "other instance in "
289-
+ self.env.doc2path(objects[fullname_out][0])
289+
+ str(self.env.doc2path(objects[fullname_out][0]))
290290
+ ", use :noindex: for one of them",
291291
line=self.lineno,
292292
)

0 commit comments

Comments
 (0)