Closed hcording closed 3 weeks ago
If I load https://impart.readthedocs.io/en/stable/ and view the browser devtools console, I see
Uncaught (in promise) TypeError: document.querySelector(...) is null
T pydata-sphinx-theme.js:569
r mixin.js:11
937 pydata-sphinx-theme.js:584
I see your site was built with version 0.15.2 of the theme. I think this problem was fixed as a side-effect of #1780
Can you see if it still happens when building the docs with the current version of the theme (0.15.3)?
I've gone ahead and updated to 0.15.3, which fixed the issue! :partying_face: The switcher now shows the correct version in the preview.
As a side note, the vertical cyan bar to indicate the currently selected version when the switcher is expanded seems to work only sometimes. For me, it will often disappear after reloading the page. But that's another issue.
Anyways, thanks for the update! Closing as resolved.
Related to: #1681, #1500, #1512
When opening any built page on RTD with this theme, the switcher menu shows "Choose version" instead of the selected version. I largely followed the
conf.py
for this repo, especially after reading #1512. From what I can see, my tags and settings are fairly standard, the only difference is that I dynamically load name, author, copyright, release and version from.pyproject.toml
and.bump_my_version.toml
. But I added print statements and the build log shows these values are initialized correctly (version == release == 0.0.7 on stable, for example).My versioning scheme follows semver, and works as follows: x.y.z-alphaN, x.y.z-betaN, x.y.z-rcN, x.y.z
conf.py
And this is my
switcher.json
, located indocs/_static/
:I see the following when opening the stable page the first time after building:
After reloading the page, or clicking on 0.0.7 (stable), it looks like this (and remains like this for consecutive page visits):
Any help is appreciated!