From ea1187f4c8f05a07e89fa941d9cb77b2bed72bbf Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 15 Jun 2024 09:15:30 -0700 Subject: [PATCH] Generate doxyxml in build --- support/python/mkdocstrings_handlers/cxx/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/support/python/mkdocstrings_handlers/cxx/__init__.py b/support/python/mkdocstrings_handlers/cxx/__init__.py index 1aac39ec..b3d91bf8 100644 --- a/support/python/mkdocstrings_handlers/cxx/__init__.py +++ b/support/python/mkdocstrings_handlers/cxx/__init__.py @@ -159,9 +159,10 @@ class CxxHandler(BaseHandler): # Run doxygen. cmd = ['doxygen', '-'] doc_dir = Path(__file__).parents[3] - include_dir = os.path.join(os.path.dirname(doc_dir), 'include', 'fmt') + top_dir = os.path.dirname(doc_dir) + include_dir = os.path.join(top_dir, 'include', 'fmt') self._ns2doxyxml = {} - self._doxyxml_dir = 'doxyxml' + self._doxyxml_dir = os.path.join(top_dir, 'build', 'doxyxml') p = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=STDOUT) out, _ = p.communicate(input=r''' PROJECT_NAME = fmt