-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add DocSearch v3 Integration #16394
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
Add DocSearch v3 Integration #16394
Conversation
Hi @AdeshGhadage. Thanks for your PR. I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ok-to-test
You're about 10 steps ahead here, @AdeshGhadage!
![]()
|
when i test docsearch implmentation locally it was not showing any results. i didn't get whats the issue i want to test it in Deploy Preview |
Nice! I think we need to implement facets on the results page next. All I see is the same page repeated for every indexed version. Ultimately I want to see (a) only |
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
layouts/_default/baseof.html
Outdated
@@ -183,5 +183,6 @@ | |||
{{ partial "icon.html" "top" }} | |||
</button> | |||
</div> | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed
assets/sass/misc/_header.scss
Outdated
@@ -511,4 +511,4 @@ | |||
} | |||
} | |||
} | |||
} | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
linter may complain about no blank line?
otherwise this is a Unix vs Windows line ending issue, you can see it in a few other files
data/versions.yml
Outdated
main: "1.25" | ||
|
||
# The version of Istio currently documented in preliminary.istio.io | ||
preliminary: "1.26" | ||
preliminary: "1.27" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should probably rebase this PR against the current master. Let me know if you need help doing that.
data/versions.yml
Outdated
supported_versions: | ||
- latest | ||
- v1.25 | ||
- v1.24 | ||
- v1.23 | ||
- v1.22 | ||
- v1.21 | ||
- v1.20 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(a) we shouldn't need to list all these
(b) we only want to search N-5; so for 1.26, that would be 1.21 and up
layouts/_default/search.html
Outdated
function extractVersionAndLangFromPath() { | ||
const pathParts = window.location.pathname.split('/'); | ||
let version = 'latest'; | ||
let lang = 'en'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you write this code, or is it based on something from Algolia?
Should it be tested? Should it be in its own JS/TS file?
layouts/_default/search.html
Outdated
<style> | ||
.search-results { | ||
padding: 1rem; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note, will need to be in its own SCSS file soon enough
9ba5438
to
606099a
Compare
Description
integrated algolia for site search
Reviewers