Skip to content

Commit

Permalink
Fixed #262 - Convert path-like object to str.
Browse files Browse the repository at this point in the history
  • Loading branch information
joeced committed Aug 17, 2024
1 parent 8b5e683 commit 9cbc953
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
sphinxcontrib-matlabdomain-0.22.1 (2024-08-17)
==============================================

* Fixed `Isssue 262`_. The API for
``sphinx.environment.BuildEnvironment.doc2path`` was changed to return a
path-like object in Sphinx 8.0.2.

.. _Issue 262: https://github.com/sphinx-contrib/matlabdomain/issues/243


sphinxcontrib-matlabdomain-0.22.0 (2024-07-17)
==============================================

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

.. _Issue 243: https://github.com/sphinx-contrib/matlabdomain/issues/249
.. _Issue 243: https://github.com/sphinx-contrib/matlabdomain/issues/243
.. _Issue 249: https://github.com/sphinx-contrib/matlabdomain/issues/249
.. _Issue 250: https://github.com/sphinx-contrib/matlabdomain/issues/250
.. _Issue 252: https://github.com/sphinx-contrib/matlabdomain/issues/252
Expand Down
2 changes: 1 addition & 1 deletion sphinxcontrib/matlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def add_target_and_index(self, name_cls, sig, signode):
self.state_machine.reporter.warning(
"duplicate object description of %s, " % fullname_out
+ "other instance in "
+ self.env.doc2path(objects[fullname_out][0])
+ str(self.env.doc2path(objects[fullname_out][0]))
+ ", use :noindex: for one of them",
line=self.lineno,
)
Expand Down

0 comments on commit 9cbc953

Please sign in to comment.