Nic*_*ick 44 python documentation python-sphinx
Sphinx是Python的新文档工具.它看起来非常好.我想知道的是:
das*_*och 22
[编辑插入下方]:
我在由10个不同模块/域组成的多个10k C++库中测试了doxygen + breathe + sphinx工具链.我的底线是:
让我详细说明以下几点:
我有问题:
从更一般的意义上讲,要注意它是通往Doxygen的xml输出的桥梁.这不应该以这样的方式理解,即只要具有上述限制,它将准确地输出doxygen所做的事情.相反,它为您提供准确,而不是更多,而不是更少的可能性
在我看来,一个功能齐全的呼吸将填补一个主要的差距,并开辟一条很酷的道路.因此潜在的收益值得关注.
可悲的是,通过创作者的维护将来会严重下降.因此,如果你在一家公司工作并且可以说服你的老板呼吸适合他,或者有空闲时间并且正在寻找一个非常有价值的项目,那么考虑给它一个分叉!
作为最终指针,还要注意sphinx 的doxylink contrib项目,它可以提供一个中间解决方案:构建一个类似于教程的结构,引用(css样式匹配的)旧的doxygen文档(我想你甚至可以注入相同的标题进入狮身人面像,并在doxygen文档的顶部看起来'n'感觉).这样,你的项目与狮身人面像保持着亲密关系,当呼吸完全在那里时,你就准备好继续前进.但是又一次:如果适合你的议程,考虑表现出一些爱.
S.L*_*ott 11
首先,保留两个目录树,source和build.把source版本控制之下.不要置于build版本控制之下,在安装过程中重建它.
其次,请阅读http://sphinx.pocoo.org/intro.html#setting-up-the-documentation-sources.
使用它sphinx-quickstart来构建练习文档树.玩这几天了解它是如何工作的.然后再次使用它来构建SVN目录中的真实内容.
在精心规划的树中组织您的文档.某些部分需要该部分的"index.rst",有些则不需要.这取决于该部分的"独立"程度.
我们的顶级index.rst看起来像这样.
.. XXX documentation master file, created by sphinx-quickstart on Wed Dec 31 07:27:45 2008.
.. include:: overview.inc
.. _`requirements`:
Requirements
============
.. toctree::
:maxdepth: 1
requirements/requirements
requirements/admin
requirements/forward
requirements/volume
.. _`architecture`:
Architecture
============
.. toctree::
:maxdepth: 1
architecture/architecture
architecture/techstack
architecture/webservice_tech
architecture/webservice_arch
architecture/common_features
architecture/linux_host_architecture
Detailed Designs
================
.. toctree::
:maxdepth: 3
design/index
Installation and Operations
===========================
.. toctree::
:maxdepth: 1
deployment/installation
deployment/operations
deployment/support
deployment/load_test_results
deployment/reference
deployment/licensing
Programming and API's
=====================
.. toctree::
:maxdepth: 2
programming/index
**API Reference**. The `API Reference`_ is generated from the source.
.. _`API Reference`: ../../../apidoc/xxx/index.html
.. note::
The API reference must be built with `Epydoc`_.
.. _`Epydoc`: http://epydoc.sourceforge.net/
Management
==========
.. toctree::
:maxdepth: 2
:glob:
management/*
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
SVN Revision
============
::
$Revision: 319 $
Run Code Online (Sandbox Code Playgroud)
注意,我们不"包含"API,我们只是用普通的HTML链接引用它.
Sphinx有一个非常酷的附加组件,称为自动模块,它从Python模块中选择文档字符串.
更新自Sphinx 1.0起,支持C和C++. http://sphinx.pocoo.org/
| 归档时间: |
|
| 查看次数: |
18450 次 |
| 最近记录: |