English 中文(简体)
Sphinx:相互参照索引的项目
原标题:Sphinx: cross-reference indexed item

我如何能够在重新印发的Text文件内相互参照一个指数化的项目?

例如,我如何能够相互参照B节:

.. index::
    pair: SectionA; SectionB

SectionB
--------

SectionB description.

我在参考文献中使用指数标签,例如:

:ref:`SectionB`

但这并不可行。

问题回答




相关问题
Sphinx, reStructuredText show/hide code snippets

I ve been documenting a software package using Sphinx and reStructuredText. Within my documents, there are some long code snippets. I want to be able to have them hidden as default, with a little "...

ReStructuredText numbered headers

Is there a way in rst to have automatic header numbering ? That is something like: #. Some Section =============== ... #. Some Subsection ------------------ ... #. Another Subsection -----------------...

What is a simple webpage compiler for restructured text?

Instead of a blog/cms, I d like to have a static html-based site with a few (rarely updated) pages. I figure the simplest way to update them is to keep the sources in a format like ReST, and compile ...

What markup language to store in a DB?

Related: How to store lightweight formatting (Textile, Markdown) in database? I want to store comment formatting in some markup language in our DB. However, we want to allow multiple formatting ...

External documentation for PHP, no DocBook

I need a documentation system for a PHP project and I wanted it to be able to integrate external documentation (use cases, project scope etc.) with the documentation generated from code comments. It ...

热门标签