우선 두 개의 디렉토리 트리, 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 $
참고로 API는 "포함"하지 않으며 일반적인 HTML 링크로 참조합니다.
스핑크스는 automodule이라는 아주 멋진 애드온을 가지고 있습니다.이 모듈은 문서 문자열을 파이썬 모듈에서 선택합니다.
업데이트 스핑크스 1.0부터 C 및 C++가 지원됩니다. http://sphinx.pocoo.org/
C + + 프로젝트에 Sphinx를 사용하게 되었습니까? 그렇다면 귀하의 경험은 어땠습니까? – AndyL