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

no table of contents marker on sections with more than 110 lines #805

Open
v-au opened this issue Jan 5, 2024 · 4 comments
Open

no table of contents marker on sections with more than 110 lines #805

v-au opened this issue Jan 5, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@v-au
Copy link

v-au commented Jan 5, 2024

Describe the bug

context
When a section contains more than 110 lines the table of contents marker is not displayed

expectation
I expected the marker to jump to the corresponding section in the ToC as I move up and down the page.

bug
But instead the marker disappears, and reappears when I reach a section with less than 110 lines.
See the attached screen recording.

problem
This is a problem for people using larger sections.

Screenshare.-.2024-01-04.5_52_05.PM.mp4

Reproduce the bug

  • index.rst
Test
####

S1
==

S1.1
----

line 1

line 2

line 3

line 4

line 5

line 6

line 7

line 8

line 9

line 10

line 11

line 12

line 13

line 14

line 15

line 16

line 17

line 18

line 19

line 20

line 21

line 22

line 23

line 24

line 25

line 26

line 27

line 28

line 29

line 30

line 31

line 32

line 33

line 34

line 35

line 36

line 37

line 38

line 39

line 40

line 41

line 42

line 43

line 44

line 45

line 46

line 47

line 48

line 49

line 50

line 51

line 52

line 53

S1.2
----

line 1

line 2

line 3

line 4

line 5

line 6

line 7

line 8

line 9

line 10

line 11

line 12

line 13

line 14

line 15

line 16

line 17

line 18

line 19

line 20

line 21

line 22

line 23

line 24

line 25

line 26

line 27

line 28

line 29

line 30

line 31

line 32

line 33

line 34

line 35

line 36

line 37

line 38

line 39

line 40

line 41

line 42

line 43

line 44

line 45

line 46

line 47

line 48

line 49

line 50

line 51

line 52

line 53

S2
==

S2.1
----

line 1

line 2

line 3

line 4

line 5

line 6

line 7

line 8

line 9

line 10

line 11

line 12

line 13

line 14

line 15

line 16

line 17

line 18

line 19

line 20

line 21

line 22

line 23

line 24

line 25

line 26

line 27

line 28

line 29

line 30

line 31

line 32

line 33

line 34

line 35

line 36

line 37

line 38

line 39

line 40

line 41

line 42

line 43

line 44

line 45

line 46

line 47

line 48

line 49

line 50

line 51

line 52

line 53

S2.2
----

line 1

line 2

line 3

line 4

line 5

line 6

line 7

line 8

line 9

line 10

line 11

line 12

line 13

line 14

line 15

line 16

line 17

line 18

line 19

line 20

line 21

line 22

line 23

line 24

line 25

line 26

line 27

line 28

line 29

line 30

line 31

line 32

line 33

line 34

line 35

line 36

line 37

line 38

line 39

line 40

line 41

line 42

line 43

line 44

line 45

line 46

line 47

line 48

line 49

line 50

line 51

line 52

line 53
  • conf.py
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = 'test'
copyright = '2024, t'
author = 't'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = []

templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '.sphinx-virtualenv']



# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = 'sphinx_book_theme'
html_static_path = ['_static']

List your environment

environment

$ type pip
pip is hashed (/tmp/ebp/.sphinx-virtualenv/bin/pip)
$ pip freeze --all
accessible-pygments==0.0.4
alabaster==0.7.13
Babel==2.14.0
beautifulsoup4==4.12.2
certifi==2023.11.17
charset-normalizer==3.3.2
docutils==0.20.1
idna==3.6
imagesize==1.4.1
Jinja2==3.1.2
MarkupSafe==2.1.3
packaging==23.2
pip==22.0.2
pydata-sphinx-theme==0.15.1
Pygments==2.17.2
requests==2.31.0
setuptools==59.6.0
snowballstemmer==2.2.0
soupsieve==2.5
Sphinx==7.2.6
sphinx-book-theme==1.1.0
sphinxcontrib-applehelp==1.0.7
sphinxcontrib-devhelp==1.0.5
sphinxcontrib-htmlhelp==2.0.4
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.6
sphinxcontrib-serializinghtml==1.1.9
typing_extensions==4.9.0
urllib3==2.1.0
wheel==0.37.1
$ 
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.6 LTS
Release:        20.04
Codename:       focal
@v-au v-au added the bug Something isn't working label Jan 5, 2024
Copy link

welcome bot commented Jan 5, 2024

Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.

If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).

Welcome to the EBP community! 🎉

@ngulden
Copy link

ngulden commented Feb 13, 2024

I see the same behavior at https://docs.software-univention.de/manual/latest/en/ip-config/radius.html#mac-authentication-bypass-with-computer-objects

I use SBT and customize the CSS to build the document. When you open the link in Firefox, the right sidebar should have 11.2.6.4 highlighted. In some cases it is, it some not. Scrolling up and down, marks the toc entry active or not.

I use SBT 1.1.0.

You can find the sources for the linked page above at https://raw.githubusercontent.com/univention/univention-corporate-server/5.0-6/doc/manual/ip-config/radius.rst

@chen19901225
Copy link

does it fixed?

@stevepiercy
Copy link
Contributor

This may be an upstream issue with PyData Sphinx Theme (PST) or Bootstrap. I suggest switching to PST and attempt to repeat the issue there. You could also create a Bootstrap mockup from one of its examples and try to repeat the issue there.

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

No branches or pull requests

4 participants