You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In summary, my desire: is to use breathe to fetch Doxygen XML output and dump them into markdown file.
I am preparing a project documentation using Sphinx where to fetch Doxygen XML output I have used breathe. I am using the breathe directive in .rst files.
I am using:
Sphinx version : 4.2.0
Doxygen version: 1.8.17
Breathe version: 4.31.0
After building the project I can see a detailed documentation of class A. For some reason, I have the intention to use the markdown file instead of .rst.
I have gone through several posts but could not find any fruitful answer. The best one I have got this StackOverflow answer.
WARNING: unknown directive or role name: doxygenclass::A
/net/users/Linux_Home/user_name/project_name/doc/md_files/sample_mark.md:5: WARNING: Unknown directive type "doxygenclass::A".
Also tried
# sample_md
```{doxygenclass}
A
:members:
:protected-members:
:private-members:
```
Failed too and the error message
Exception occurred:
File "/net/users/Linux_Home/user_name/.local/lib/python3.8/site-packages/myst_parser/docutils_renderer.py", line 973, in run_directive
if issubclass(directive_class, Include):
TypeError: issubclass() arg 1 must be a class
The full traceback has been saved in /tmp/sphinx-err-guubfd6h.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
make[2]: *** [doc/CMakeFiles/Sphinx.dir/build.make:63: doc/sphinx/index.html] Error 2
make[1]: *** [CMakeFiles/Makefile2:215: doc/CMakeFiles/Sphinx.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
No idea what to do at this stage.
Some of my observance:
myST is only for collecting Sphinx directive in markdown file
breathe is a tool to fetch Doxygen XML output and to write in reST style using Sphinx
Now my desire is to know, is it possible to add breathe Doxygen directive in the .md file? If Yes, where am I am making the syntax wrong?
The text was updated successfully, but these errors were encountered:
Breathe is not generating reST but directly constructs the doctree.
However, that seem to be unrelated to your problem, and to Breathe it self.
The error WARNING: unknown directive or role name: doxygenclass::A indicates that myST does not run the correct directive, which should just be doxygenclass.
The second error is a bit unclear without the full traceback, but it looks like the problem is in how myST interacts with docutils.
Breathe is not generating reST but directly constructs the doctree. However, that seem to be unrelated to your problem, and to Breathe it self. The error WARNING: unknown directive or role name: doxygenclass::A indicates that myST does not run the correct directive, which should just be doxygenclass. The second error is a bit unclear without the full traceback, but it looks like the problem is in how myST interacts with docutils.
Yes, you are right. It's a myST syntax need to be adapted. Got the answer here
In summary, my desire: is to use
breathe
to fetchDoxygen XML output
and dump them intomarkdown
file.I am preparing a project documentation using
Sphinx
where to fetchDoxygen XML output
I have used breathe. I am using the breathe directive in.rst
files.I am using:
Sphinx version : 4.2.0
Doxygen version: 1.8.17
Breathe version: 4.31.0
sample.cpp
in my
rst
file I just addedAfter building the project I can see a detailed documentation of
class A
. For some reason, I have the intention to use themarkdown
file instead of.rst
.I have gone through several posts but could not find any fruitful answer. The best one I have got this StackOverflow answer.
conf.py
by addingextensions = ["myst_parser",]
Written a
.md
file as like as follows:But failed while the error message is
Also tried
Failed too and the error message
No idea what to do at this stage.
Some of my observance:
Sphinx directive
in markdown fileDoxygen XML output
and to write inreST
style usingSphinx
Now my desire is to know, is it possible to add
breathe Doxygen directive
in the.md
file? If Yes, where am I am making the syntax wrong?The text was updated successfully, but these errors were encountered: