rst2html: TOC with custom links?

Oleksandr Gavenko <[email protected]>
Newsgroups gmane.text.docutils.user
Organization Oleksandr Gavenko <[email protected]>, http://defun.work/
Message-ID <[email protected]>
With text:

  Section level 1
  ===============

  .. _sec-xxx:

  This is a paragraph.

I expect that TOC points to book.html#sec-xxx, but instead it refer to
book.html#section-level-1:

  <a class="reference internal" href="#section-level-1" id="id9">Section level 1</a>
   ...
  <a class="toc-backref" href="#id9">Section level 1</a>
  <p id="sec-xxx">This is a paragraph.</p>

I use Cyrillic RST texts and ``rst2html`` doesn't generate meaningful hashes
as "section-level-1" is.

Also for long running documents I would prefer to assign fixed links that
doesn't depends on changes in section title.

-- 
http://defun.work/


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.