f80fe213bd
### 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](https://docsearch.algolia.com/) is entirely free and automated. This PR will use it to provides search function. The screenshots show below: ![overview](https://user-images.githubusercontent.com/8486025/98756802-30d82a80-23c3-11eb-9ca2-73bb20fb54c4.png) ### 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. Closes #30292 from beliefer/SPARK-33166. Lead-authored-by: gengjiaan <gengjiaan@360.cn> Co-authored-by: beliefer <beliefer@163.com> Signed-off-by: Gengliang Wang <gengliang.wang@databricks.com>
37 lines
833 B
CSS
37 lines
833 B
CSS
/* Main dropdown wrapper */
|
|
.algolia-autocomplete .ds-dropdown-menu {
|
|
width: 500px;
|
|
}
|
|
|
|
/* Main category (eg. Getting Started) */
|
|
.algolia-autocomplete .algolia-docsearch-suggestion--category-header {
|
|
color: darkgray;
|
|
border: 1px underline gray;
|
|
}
|
|
|
|
/* Category (eg. Downloads) */
|
|
.algolia-autocomplete .algolia-docsearch-suggestion--subcategory-column {
|
|
color: gray;
|
|
}
|
|
|
|
/* Title (eg. Bootstrap CDN) */
|
|
.algolia-autocomplete .algolia-docsearch-suggestion--title {
|
|
font-weight: bold;
|
|
color: black;
|
|
}
|
|
|
|
/* Description description (eg. Bootstrap currently works...) */
|
|
.algolia-autocomplete .algolia-docsearch-suggestion--text {
|
|
font-size: 0.8rem;
|
|
color: gray;
|
|
}
|
|
|
|
/* Highlighted text */
|
|
.algolia-autocomplete .algolia-docsearch-suggestion--highlight {
|
|
color: blue;
|
|
}
|
|
|
|
.searchbox {
|
|
margin-top: 2%;
|
|
}
|