-
Notifications
You must be signed in to change notification settings - Fork 28.4k
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
[SPARK-33166][DOC] Provide Search Function in Spark docs site #30292
Conversation
Test build #130876 has finished for PR 30292 at commit
|
Kubernetes integration test starting |
Kubernetes integration test status success |
@sarutak I cannot reproduce the two problems you mentioned on my Safari browser. It seems the css style is different. Could you pull and build with Jekyll again? |
@beliefer I found the first issue isn't in the latest change. The second issue seems that we move to the online Spark document rather than local document. Is this intended? |
@sarutak Because this PR not merged and not publish to the online Spark document. |
Yes. But even if this is published, the search results consistently refer to the latest release at the time point. |
If so, we should apply different id from docsearch when we ready release a new spark version. @gatorsmile |
Sounds good if we can do it. |
@beliefer Thanks for the work! |
I just try removing the style from dosearch.css and it looks fine: I don't think we can just copy the style from https://docsearch.algolia.com/docs/styling here |
Yes. This is true. We need to apply different ID for each new version. |
Kubernetes integration test starting |
Kubernetes integration test status failure |
retest this please. |
Test build #131016 has finished for PR 30292 at commit
|
Kubernetes integration test starting |
Kubernetes integration test status failure |
Test build #131005 has finished for PR 30292 at commit
|
@gengliangwang I resolved the issue you said. |
Seems good to me. |
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.
LGTM
Thanks, merging to master |
@gengliangwang @sarutak @gatorsmile @maropu @HyukjinKwon Thanks for your help! |
### What changes were proposed in this pull request? Make the API key of DocSearch configurable and avoid hardcoding in the HTML template ### Why are the changes needed? After #30292, our Spark documentation site supports searching. However, the default API key always points to the latest release doc. We have to set different API keys for different releases. Otherwise, the search results are always based on the latest documentation(https://spark.apache.org/docs/latest/) even when visiting the documentation of previous releases. As per discussion in #30292 (comment), we should make the API key configurable and set different values for different releases. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Manual test Closes #30409 from gengliangwang/apiKey. Authored-by: Gengliang Wang <gengliang.wang@databricks.com> Signed-off-by: Takeshi Yamamuro <yamamuro@apache.org>
…lts by version ### What changes were proposed in this pull request? In the discussion #30292 (comment), we planned to apply a new API key for each Spark release. However, it turns that DocSearch supports crawling multiple URLs from one website and filtering by fact key: https://docsearch.algolia.com/docs/config-file/#using-regular-expressions Thanks to the help from shortcuts, our Spark doc supports multiple version now: algolia/docsearch-configs#2868 This PR is to add the fact key in the search script and update the instruction in the comment. ### Why are the changes needed? To support filtering Spark documentation search results by the current document version. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Manual test Closes #30469 from gengliangwang/apiKeyFollowUp. Authored-by: Gengliang Wang <gengliang.wang@databricks.com> Signed-off-by: Takeshi Yamamuro <yamamuro@apache.org>
What changes were proposed in this pull request?
In the last few releases, our Spark documentation https://spark.apache.org/docs/latest/ becomes richer. It would nice to provide a search function to make our users find contents faster.
DocSearch is entirely free and automated. This PR will use it to provides search function.
The screenshots show below:
Why are the changes needed?
Let the users of Spark documentation could find the needed information effectively.
Does this PR introduce any user-facing change?
Yes
How was this patch tested?
build on my machine and look on brower.