From 9ff33d0ab77fc2e6364f95c6d141d80ba83a6456 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Fri, 24 Jan 2025 15:36:48 +0100
Subject: [PATCH] Manual: another compatibility fix for Sphinx 8

See commit 2983aafa96a9dce202178b6006900ac2fd150a77 for the rationale.

(cherry picked from commit 2b2376c90e44dc86f1125477f6e024fcaf662d58)
---
 doc/manual/utils/dynare_dom.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/manual/utils/dynare_dom.py b/doc/manual/utils/dynare_dom.py
index 101bb7345e..98233a4b46 100644
--- a/doc/manual/utils/dynare_dom.py
+++ b/doc/manual/utils/dynare_dom.py
@@ -242,7 +242,7 @@ class DynSimpleObject(ObjectDescription):
                 self.state_machine.reporter.warning(
                     'duplicate object description of %s, ' % fullname +
                     'other instance in ' +
-                    self.env.doc2path(objects[fullname][0]), line=self.lineno)
+                    str(self.env.doc2path(objects[fullname][0])), line=self.lineno)
             objects[fullname] = self.env.docname, self.objtype
 
         indextext = self.get_index_text(fullname,name_obj)
-- 
GitLab