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

Search: default Sphinx search doesn't work on older versions after enabling addons; changes format of flyout #220

Closed
jillnogold opened this issue Dec 14, 2023 · 15 comments
Assignees

Comments

@jillnogold
Copy link

  • The fix for Search with addons enabled works after rebuilding a version. However there are versions that cannot be rebuilt due to updates in readthedocs. How to enable the version warning in older versions?
  • After enabling addons, the flyout moves to the lower-right corner, and lists the versions in the reverse order. How do I keep the previous format?
  • The warning opens on every page. Can it be configured to open only on the first page of a release?
@humitos
Copy link
Member

humitos commented Dec 14, 2023

Hi! 👋🏼 Thanks for opening this issue.

The fix for Search with addons enabled works after rebuilding a version. However there are versions that cannot be rebuilt due to updates in readthedocs. How to enable the version warning in older versions?

The old version warning cannot be enabled on older versions. That feature was deprecated some time ago due to its inconsistencies and UX confusions and because it was re-written into the new addons with a simpler logic for a specific use-case more aligned with Read the Docs' latest and stable versions, that doesn't guess on the versioning schema the project uses.

The "old version warning" is only available for those projects that were already using it at the time of the deprecation. However, if you are using the new beta addons, it's not possible to enable the "old version warning" feature since they are incompatible each other.

Just for reference, the issue about not being able to rebuild an old version due Read the Docs changes is related to #219 too.

After enabling addons, the flyout moves to the lower-right corner, and lists the versions in the reverse order. How do I keep the previous format?
The warning opens on every page. Can it be configured to open only on the first page of a release?

Currently, we don't allow customization of the addons. However, we plan creating a new page under the project's admin for these customization. See readthedocs/ext-theme#211 for more information and feel free to share your feedback there as well.

@humitos
Copy link
Member

humitos commented Dec 14, 2023

The warning opens on every page. Can it be configured to open only on the first page of a release?

We have thought about a similar approach in #46. Can you share your thoughts there? Thanks!

@jillnogold
Copy link
Author

@humitos Seems that I misunderstood the fix #213. I enabled the beta addons, and it broke the search unless I rebuilt the various versions (not all of which can be rebuilt).
Ot did I misunderstand your response?

@humitos humitos closed this as completed Dec 17, 2023
@humitos humitos reopened this Dec 17, 2023
@humitos
Copy link
Member

humitos commented Dec 17, 2023

I enabled the beta addons, and it broke the search unless I rebuilt the various versions (not all of which can be rebuilt).

Yes. It currently requires a rebuild of the version. See #219. I put a fix for this already, but it's under review still. I can probably deploy it next week if everything goes fine.

@humitos
Copy link
Member

humitos commented Dec 18, 2023

@jillnogold Hi 👋🏼 ! Can you share the URL of your project on Read the Docs? I just deployed a fix and I want to test it with your project.

@humitos humitos self-assigned this Dec 18, 2023
@jillnogold
Copy link
Author

@humitos sure - it's https://docs.mlrun.org/en/stable/
I just re-enabled the addons.

@humitos
Copy link
Member

humitos commented Dec 18, 2023

@jillnogold cool, thanks! It seems it works fine now: https://docs.mlrun.org/en/stable/search.html?q=graphserver

@jillnogold
Copy link
Author

@humitos - It's much better. But I am seeing some duplication in search results, though it's only for some hints:
image

@humitos
Copy link
Member

humitos commented Dec 18, 2023

Great! I'm happy it's working.

But I am seeing some duplication in search results, though it's only for some hints

What's the URL for that search? This is probably just Sphinx not being super smart with the search index/query/results.

@humitos humitos closed this as completed Dec 18, 2023
@jillnogold
Copy link
Author

@humitos I had to disable the addons - the Search works in all releases I tested except stable

@humitos
Copy link
Member

humitos commented Dec 19, 2023

@jillnogold I think I'm not following what you are saying. I tested the Sphinx search on stable version at #220 (comment) and it was working fine.

Can you expand on what is/was not working on each version? Thanks.

@jillnogold
Copy link
Author

@humitos On Monday the search worked in stable. But on Tuesday, when I tried searching, the main page was blank. Searching in latest and in earlier versions produced results. I can't leave stable without search results, so had to disable the addons

@humitos
Copy link
Member

humitos commented Dec 20, 2023

OK, thanks! Let me know when you're ready to enable addons on your docs so I can debug that further and fix the issues.

@jillnogold
Copy link
Author

@humitos Can we set a 1-2 hour window for you to debug, to minimize the disruption of stable?
What timezone/hours are good for you?

@humitos
Copy link
Member

humitos commented Jan 2, 2024

@jillnogold can you enable it by yourself and record a video of the issue showing the JS console as well? That may be enough to debug the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants