Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Section indexes should only render headers below the current place #901

Closed
brotkrueml opened this issue Mar 4, 2024 · 1 comment · Fixed by #961
Closed

[Bug]: Section indexes should only render headers below the current place #901

brotkrueml opened this issue Mar 4, 2024 · 1 comment · Fixed by #961
Labels
bug Something isn't working

Comments

@brotkrueml
Copy link
Contributor

Summary

In Sphinx-based rendering section indexes hold only the anchors below the current place, for example:

Bildschirmfoto vom 2024-03-04 10-14-59

https://docs.typo3.org/m/typo3/reference-tsconfig/12.4/en-us/UserTsconfig/Options.html

PHP-based rendering seems to take all headers into account:

Bildschirmfoto vom 2024-03-04 10-15-54

https://docs.typo3.org/m/typo3/reference-tsconfig/main/en-us/UserTsconfig/Options.html

MInd the additional "Properties" anchor in the last example.

Code snippet that reproduces the problem

Properties
==========

..  contents::
    :depth: 2
    :local:

additionalPreviewLanguages
--------------------------

some text

alertPopups
-----------

another text

should not render "Properties"

Expected output

  • additionalPreviewLanguages
  • alertPopups
@linawolf
Copy link
Contributor

linawolf commented Mar 4, 2024

... if :local: is set

@jaapio jaapio removed the triage label Mar 9, 2024
linawolf added a commit that referenced this issue Mar 23, 2024
linawolf added a commit that referenced this issue Mar 23, 2024
linawolf added a commit that referenced this issue Mar 24, 2024
phpdoc-bot pushed a commit that referenced this issue Mar 24, 2024
resolves #901

(cherry picked from commit 4db1f1c)
phpdoc-bot pushed a commit that referenced this issue Mar 24, 2024
resolves #901

(cherry picked from commit 4db1f1c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants