Skip to content

TOC Generation broken #120

@kreuzberger

Description

@kreuzberger

The generation of the toc seems not be only broken with newer sphinx versions (see #112).
Also with earlier versions the links in the toc point to invalid pages cause they are refering a span element BEFORE <h2> and then have the link on the page before.

To improve this handling i tried to implement a test framework for it with some basic tests, that fail on documents using a TOC.

Feel free to discuss it, i will spend a little time on it the next weeks before christmas.
Maybe we get a stable solution here for the project.

sphinx-simplepdf is besides sphinx-needs one of the most important repos in the useblocks universe, cause most of the generated documents are delivered as PDF generated from HTML, cause i need to have BOTH output formats in my productive builds.

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