我如何能够在重新印发的Text文件内相互参照一个指数化的项目?
例如,我如何能够相互参照B节:
.. index::
pair: SectionA; SectionB
SectionB
--------
SectionB description.
我在参考文献中使用指数标签,例如:
:ref:`SectionB`
但这并不可行。
我如何能够在重新印发的Text文件内相互参照一个指数化的项目?
例如,我如何能够相互参照B节:
.. index::
pair: SectionA; SectionB
SectionB
--------
SectionB description.
我在参考文献中使用指数标签,例如:
:ref:`SectionB`
但这并不可行。
见Cross-referencing arbitrary sites。
页: 1
我认为你可能失踪的是参考标签。
类似:
.. index::
pair: SectionA; SectionB
.. _section-b-label:
SectionB
--------
SectionB description.
之后在其他地方:
:ref:`section-b-label`
This options still does not seem possible without adding in custom labels. There is an issue open at https://github.com/sphinx-doc/sphinx/issues/1671
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 "...
Is there a way in rst to have automatic header numbering ? That is something like: #. Some Section =============== ... #. Some Subsection ------------------ ... #. Another Subsection -----------------...
I prefer to document each parameter (as needed) on the same line where I declare the parameter in order to apply D.R.Y. If I have code like this: def foo( flab_nickers, # a series of under ...
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 ...
Is Sphinx, is there way to automatically link text like #112 or r1023 to the corresponding tickets/changesets in Trac? For eg: #112 -> http://mytracsite/tickets/112 r1023 -> http://mytracsite/...
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 ...
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 ...
I m using Django s markup package to transform restructuredText into html. Is there a way to customize the HTML writer to add a class attribute to each <p> tag? I could use the class directive ...