2015-05-02 59 views

回答

0

.. only:: not html應該將其指定爲每Sphinx documentation的正確方法。以下作品使用sphinx-build 1.2.2:

.. only:: html 

    This should be HTML format only. 

.. only:: text 

    This should be text format only. 

.. only:: not html 

    .. include:: nohtml.rst 

    This should be in everything except HTML. 

.. only:: not text 

    .. include:: notext.rst 

    This should be in everything except Text. 
+0

你的'no.text.rst'和'nohtml.rst'的內容是什麼? – xuhdev