Skip to content

link bahaviour on subsections #838

Open

Description

@pvgenuchten

I noticed at various locations in docs this convention:

.. index::
   pair: Apache; ReWriteRule

Apache ReWrite rules (using Apache mod_rewrite)
-----------------------------------------------

With current setup this is encoded in html as:

<h3>
<a class="toc-backref" href="#table-of-contents" role="doc-backlink">Apache ReWrite rules (using Apache mod_rewrite)</a>
<a class="headerlink" href="#apache-rewrite-rules-using-apache-mod-rewrite" title="Link to this heading">¶</a>
</h3>

It is a convention i'm not familiar with, even unexpected. In stead I would expect a single link to the current item (to be able copy/paste it) and if desirable an extra to-top link which brings the user back to the TOC.

Activity

  1. jmckenna commented on Jan 16, 2025

    @jmckenna
    Member

    @pvgenuchten I'm not quite understanding. Sphinx's index directive is used to define the terms in the index, nothing to do with a TOC.

  2. geographika commented on Jan 16, 2025

    @geographika
    Member

    From what I remember, previously none of these indexed items could be linked to at all.
    I added in a new option to Sphinx with the help of the developers there at sphinx-doc/sphinx#7087 and then added to the MapServer docs in #324 to get fixed URLs for all indexed items.
    The first link I think is default behaviour in Sphinx when using a TOC.

  3. pvgenuchten commented on Jan 16, 2025

    @pvgenuchten
    Author

    Let me check that Seth, I think it’ll solve this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions