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

Fixing JS search #205

Merged
merged 27 commits into from
Aug 6, 2024
Merged

Fixing JS search #205

merged 27 commits into from
Aug 6, 2024

Conversation

mmatera
Copy link
Contributor

@mmatera mmatera commented Aug 4, 2024

This PR fixes the issue with the search bar.

@@ -61,7 +60,6 @@ function loadDoc(page) {

function showDoc() {
const docLink = document.getElementById('doclink');
loadDoc('');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem with reloading the documentation page here is that it breaks the search bar.

@@ -98,6 +96,7 @@ function toggleDoc() {
if (document.getElementById('doc').style.display !== 'none') {
hideDoc();
} else {
loadDoc("/");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here do not seem to interfere

@rocky
Copy link
Member

rocky commented Aug 4, 2024

For me this has no effect - broken either way. I think my problem was with JS caching.

This now is better, but we are still missing some sections. I suspect we aren't searching all sections, like subsections or guide sections or something like that.

@rocky
Copy link
Member

rocky commented Aug 6, 2024

LGTM - With recent merge into this branch things work for me.

@rocky rocky merged commit 98bb52f into master Aug 6, 2024
9 checks passed
@rocky rocky deleted the improving_guide_handling branch August 6, 2024 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants