docutils 和 Sphinx 之间有什么关系?
Python 似乎有很多文档工具。我遇到的另一个是 epydoc。看起来 Sphinx 是事实上的标准,因为它用于生成官方 Python 文档。有人可以帮我整理一下 Python 文档工具的当前状态吗?
There seems to be a plethora of documentation tools for Python. Another one that I've run across is epydoc. It seems like Sphinx is the de facto standard, because it's used to generate the official Python docs. Can someone please sort out the current state of Python's documentation tools for me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
epydoc 和 Sphinx 是不同类型的工具。
它们的相同之处在于:
他们的重点不同。
因此,这取决于您想要投入多少工作以及您要记录的内容。
epydoc and Sphinx are different types of tools.
They are the same in that they:
They are different in their focus.
So it depends on how much work you want to put into it and what you are documenting.
最近从Python2换成了Python3,发现没有Python3的Epydoc包。因此,Python3 似乎明确关注使用 Sphinx 作为 API 文档。
I recently changed from Python2 to Python3 and found that there was no Epydoc package for Python3. So it seems with Python3 there is a clear focus on using Sphinx as API documentation.
看起来Epydoc即使没有死,至少也对峡湾充满了渴望。
使用 sphinx-apidoc 命令和 autodoc 扩展看起来是目前最流行的 API 文档选项。
很好的例子是:
请参阅:我们应该使用 Epydoc、Sphinx 还是其他东西来记录 Python API? (SO5579198)
Sphinx 鼓励比 javadoc 模式中的工具更具叙事性的风格,但这也许是一件好事?
It seems like Epydoc is, if not dead, at least pining for the fjords.
Sphynx with the sphinx-apidoc command and the autodoc extension looks to be the most popular option for API docs at this time.
Good examples are:
See: Should we use Epydoc, Sphinx or something else for documenting Python APIs? (SO5579198)
Sphinx encourages a more narrative style than tools in the javadoc mold, but maybe this is a good thing?