无法使用 python 运行 doxygen

发布于 2024-12-26 15:26:51 字数 424 浏览 1 评论 0原文

我正在尝试通过运行以下 Python 文件来学习 doxygen。 对 C++ 文件的类似尝试成功了,但是我无法在生成的 main.html 文件中生成任何内容。它只在 html 页面中将“主页”和“文件列表”显示为两个链接。

我做错了什么?

""" sample docstring"""
## @package stuff
#  @author me
#  Description
#
#  Some more description

## A class that does whatever
class whatever:
    ## A method that does stuff
    def dostuff(self):
        print 'here'

def show():
    print 'showing'

show()

I am trying to learn doxygen by running following Python file.
A similar attempt with c++ file was successful, however i am not able to generate any content in main.html file generated. it is only showing "main page" and "file list" as two links in html page.

What am i doing wrong?

""" sample docstring"""
## @package stuff
#  @author me
#  Description
#
#  Some more description

## A class that does whatever
class whatever:
    ## A method that does stuff
    def dostuff(self):
        print 'here'

def show():
    print 'showing'

show()

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

ゝ偶尔ゞ 2025-01-02 15:26:51

Doxygen 在版本 1.4.4 中添加了对 Python 的支持 (http://www.doxygen.nl/ changelog_1.4.html)。您需要更新到更新的版本才能从 Python 代码生成 doxygen 文档。

Doxygen support for Python was added in version 1.4.4 (http://www.doxygen.nl/changelog_1.4.html). You'll need to update to a more recent version in order to generate doxygen documentation from your Python code.

三生殊途 2025-01-02 15:26:51

你应该尝试这个: MyClass.E = variable 也就是说,如果我没有理解你的意思错误的话。

you should try this: MyClass.E = variable that is, if I haven't got your meaning wrong.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文