pydata / pydata-sphinx-theme

A clean, three-column Sphinx theme with Bootstrap for the PyData community
https://pydata-sphinx-theme.readthedocs.io
BSD 3-Clause "New" or "Revised" License
565 stars 304 forks source link

Chrome console error regarding fixMoreLinksInMobileSidebar #1696

Closed fedepad closed 5 months ago

fedepad commented 5 months ago

Hi all,

I want to report an error I notice with this theme version 0.15.2 but that seems to affect starting from version 0.15.0 . I build the site in docker and expose a port so I can access from my browser. Built and displayed on a laptop. When I open the built site, which looks fine and works fine from what I can see, I get this in the Chrome console:

Screenshot 2024-01-31 at 21 16 14

which doing a very superficial link-chasing, looks to be connected to this change: https://github.com/pydata/pydata-sphinx-theme/pull/1604/files This doesn't happen with version 0.14.4 for example, which makes sense since that code is not there.

It can be one of my options/configurations or some kind of bug on the theme side, I don't know this.

Main html theme options (partial):

    "show_toc_level": 1,
    "navbar_align": "left",  # [left, content, right] For testing that the navbar items align properly
    "navbar_center": ["version-switcher", "navbar-nav"],
    "show_version_warning_banner": True,

Here my version switcher:

[
  {
    "version": "1.0.0",
    "preferred": true,
    "name": "1.0.0 (latest)",
    "url": "http://localhost:8137/v1.0.0/"
  }
]

Thanks in advance if you have any hint on what might be possible going on.

fedepad commented 5 months ago

I just saw this https://github.com/pydata/pydata-sphinx-theme/commit/11af3fcfdcac4f58dfaee97d0da458cb9bbb6933 that probably fixes the issue I reported. Looking forward then! Thanks for your work, I will close this issue then!