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

IBX-4064: Search page #1860

Open
wants to merge 57 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
7529976
IBX-4064: Add docs/instantsearch.html
adriendupuis Jan 16, 2023
1df2915
instantsearch.html: Add initialUiState; Improve rendering
adriendupuis Jan 16, 2023
1edf043
custom.js: Add link to instantsearch.html page in search autocomplete
adriendupuis Jan 16, 2023
6166642
custom.js: Add link to instantsearch.html page if 10 or more result
adriendupuis Jan 16, 2023
549b047
instantsearch.html: Sort Versions facets
adriendupuis Jan 16, 2023
571cca4
instantsearch.html: Layout clean-up
adriendupuis Jan 16, 2023
bb9b379
instantsearch.html: decodeURI
adriendupuis Jan 16, 2023
ef41dab
instantsearch.html: enh. result path
adriendupuis Jan 16, 2023
7b4ecc1
instantsearch.html: Sync URL hash with input text
adriendupuis Jan 17, 2023
7ace614
instantsearch.html: (minor) Code format
adriendupuis Jan 17, 2023
9343c2f
instantsearch.html: (minor) Code format
adriendupuis Jan 17, 2023
36242a8
custom.js: compute "see all results" href only when needed
adriendupuis Jan 19, 2023
8de6d2e
(minor) instantsearch.html: decrease result font sizes
adriendupuis Jan 19, 2023
dd60a44
instantsearch.html: Add page to URI
adriendupuis Jan 30, 2023
194f825
instantsearch.html: Use as an MkDocs template
adriendupuis Jan 30, 2023
60f44e5
custom.js: Fix "See all results" link position
adriendupuis Jan 30, 2023
d00aba8
instantsearch.html: Fix some internal CSS VS Algolia CSS conflicts
adriendupuis Jan 30, 2023
281ae63
instantsearch.html: Use `extrahead` block; Format
adriendupuis Jan 30, 2023
5980b7f
instantsearch.html: Adjust hit list's relative font sizes
adriendupuis Jan 31, 2023
5c1108b
instantsearch.html: Hide version refinementList
adriendupuis Jan 31, 2023
851bc4a
instantsearch.html: Add content; Display results in a list
adriendupuis Jan 31, 2023
04a15b1
instantsearch.html: Pagination style
adriendupuis Jan 31, 2023
fcca2a1
instantsearch.html: Add lvl0
adriendupuis Jan 31, 2023
8108976
instantsearch.html: Add stats; decrease hitsPerPage to 10
adriendupuis Jan 31, 2023
823fc42
custom.js: See all results on "Enter" key
adriendupuis Feb 2, 2023
c635662
hits styled; slightly cleaned JS
GrabowskiM Feb 7, 2023
b0a8db3
links to entries
GrabowskiM Feb 7, 2023
8663483
main layout
GrabowskiM Feb 8, 2023
c5dbbe8
temp fixed links
GrabowskiM Feb 8, 2023
b733b01
change name
GrabowskiM Feb 8, 2023
2725604
see results
GrabowskiM Feb 8, 2023
48f9698
use vars
GrabowskiM Feb 9, 2023
7ce3b19
cleanup
GrabowskiM Feb 9, 2023
9df9c05
instantsearch.*: Add refinementList to have only the current version
adriendupuis Feb 17, 2023
d07e973
instantsearch.js: Use last breadcrumb item as entry name
adriendupuis Feb 20, 2023
91f9890
instantsearch.js: Fix groups
adriendupuis Feb 20, 2023
f49b389
instantsearch.css: Fix highlight VS hover
adriendupuis Feb 20, 2023
12bed64
instantsearch.js: Avoid group slicing
adriendupuis Feb 20, 2023
1c78eff
instantsearch.js: Avoid error when hash is absent
adriendupuis Feb 20, 2023
558509e
instantsearch.js: Switch params from hash (`#`) to search (`?`)
adriendupuis Feb 20, 2023
a7286bd
Merge remote-tracking branch 'origin/master' into search-page
adriendupuis Jun 28, 2023
ee5af5f
custom.js: deduplicate suggestions
adriendupuis Jun 29, 2023
d24b27f
instantsearch.js: Hide the group child count
adriendupuis Jun 29, 2023
74c15a4
custom.js: Rm buggy "autocompleteOptions: { debug: false },"
adriendupuis Jun 29, 2023
740f657
instantsearch.html: Use relat base_url instead of abs site_url
adriendupuis Jun 29, 2023
69389a7
instantsearch.js: version must be a M.m number, "latest" or "master"
adriendupuis Jun 29, 2023
7040436
search_results.md: Add meta description
adriendupuis Jun 30, 2023
7c9faa4
Merge branch 'master' into search-page
adriendupuis Nov 5, 2024
d7764f6
instantsearch.js: Remove grouping
adriendupuis Nov 6, 2024
e8ea216
instantsearch.js: Avoid sample only repeating searched term; unescape…
adriendupuis Nov 6, 2024
0a015cb
instantsearch.js: Remove unused getClearedItem
adriendupuis Nov 6, 2024
04b3de0
instantsearch.js: Fix double URL encoding
adriendupuis Nov 6, 2024
f273257
instantsearch.js: Avoid sample only repeating single searched term; F…
adriendupuis Nov 6, 2024
7662a3f
instantsearch.js: Fix history navigation
adriendupuis Nov 6, 2024
202f3a6
Search result page: change result item layout
adriendupuis Nov 8, 2024
7aae0e1
Search result page: change result item layout
adriendupuis Nov 8, 2024
e9062ea
Search result page: Do not add `external` CSS to result links
adriendupuis Nov 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions docs/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,3 @@ div.path {
.path p.description {
color: var(--ibexa-dusk-black);
}



165 changes: 165 additions & 0 deletions docs/css/instantsearch.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
.md-content {
margin: 0 auto;
}

footer.md-footer {
left: 0;
}

.md-content .ais-InstantSearch {
letter-spacing: 0.12px;
}

.md-content .ais-InstantSearch h1 {
font-size: 32px;
line-height: 36px;
letter-spacing: 0.17px;
margin: 8px 0 40px;
}

.md-content .ais-InstantSearch .ais-SearchBox .ais-SearchBox-submit {
left: 16px;
}

.md-content .ais-InstantSearch .ais-SearchBox .ais-SearchBox-submitIcon {
width: 16px;
}

.md-content .ais-InstantSearch .ais-SearchBox .ais-SearchBox-input {
font-size: 14px;
line-height: 21px;
height: 48px;
padding-left: 48px;
border-color: #A0A4A8;
}

.md-content .ais-InstantSearch .ais-Hits-list {
margin-left: 0;
}

.md-content .ais-InstantSearch .ais-Hits-item {
padding: 5px 0 10px;
width: initial;
margin: 0;
border: 0;
box-shadow: none;
}

.md-content .ais-InstantSearch .ais-Highlight-highlighted {
background-color: #ECF4FF;
color: #4191FF;
font-size: 14px;
line-height: 21px;
}

.md-content .ais-InstantSearch .instantsearch__group-header {
display: flex;
align-items: center;
font-size: 14px;
line-height: 21px;
letter-spacing: 0.12px;
height: 40px;
margin: 0;
padding: 0 16px;
background-color: #F2F2F5;
}

.md-content .ais-InstantSearch .instantsearch__group-header .ais-Highlight-highlighted {
font-size: 14px;
line-height: 21px;
}

.md-content .ais-InstantSearch .instantsearch__entry {
display: block;
color: var(--ibexa-dusk-black);
}

.md-content .ais-InstantSearch .instantsearch__entry:hover {
color: var(--ibexa-jazzberry);
}

.md-content .ais-InstantSearch .instantsearch__entry:hover .instantsearch__entry-header,
.md-content .ais-InstantSearch .instantsearch__entry:hover .instantsearch__entry-content {
color: var(--ibexa-jazzberry)
}

.md-content .ais-InstantSearch .instantsearch__entry + .instantsearch__entry {
border-top: 1px solid #E0E0E8;
margin-top: 16px;
}

.md-content .ais-InstantSearch .instantsearch__entry-header {
font-size: 18px;
line-height: 20px;
letter-spacing: 0.12px;
margin: 24px 0 4px;
}

.md-content .ais-InstantSearch .instantsearch__entry-header .ais-Highlight-highlighted {
font-size: 18px;
line-height: 20px;
}

.md-content .ais-InstantSearch .instantsearch__entry-content {
color: #3B424A;
font-size: 14px;
line-height: 21px;
letter-spacing: 0.12px;
}

.md-content .ais-InstantSearch .instantsearch__entry-content .ais-Highlight-highlighted {
font-size: 14px;
line-height: 21px;
}

.md-content .ais-InstantSearch .instantsearch__entry-breadcrumbs {
font-size: 12px;
line-height: 21px;
letter-spacing: 0.12px;
margin-top: 16px;
}

.md-content .ais-InstantSearch .instantsearch__entry-breadcrumbs-item + .instantsearch__entry-breadcrumbs-item {
margin-left: 12px;
}

.md-content .ais-InstantSearch .instantsearch__entry-breadcrumbs-item + .instantsearch__entry-breadcrumbs-item:before {
content: '>';
display: inline-block;
padding-right: 12px;
}

.md-content .ais-InstantSearch .ais-Pagination .ais-Pagination-list:not([hidden]) {
display: flex;
list-style: none;
margin: 15px 0 0;
display: flex;
justify-content: flex-end;
}

.md-content .ais-InstantSearch .ais-Pagination .ais-Pagination-list .ais-Pagination-item {
margin: 0;
}

.md-content .ais-InstantSearch .ais-Pagination .ais-Pagination-link {
border: none;
font-size: 14px;
line-height: 21px;
letter-spacing: 0.12px;
color: var(--ibexa-dusk-black);
height: 40px;
min-width: 40px;
display: flex;
justify-content: center;
align-items: center;
}

.md-content .ais-InstantSearch .ais-Pagination .ais-Pagination-item--selected .ais-Pagination-link,
.md-content .ais-InstantSearch .ais-Pagination .ais-Pagination-link:hover {
background-color: #F3F3F6;
border-radius: 5px;
}

#version {
display: none;
}
120 changes: 120 additions & 0 deletions docs/css/search.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
.md-header .md-search .algolia-autocomplete .ds-dataset-1 {
padding: 0;
}

.md-header .md-search .algolia-autocomplete .algolia-docsearch-suggestion {
padding: 0;
}

.md-header .md-search .algolia-autocomplete .ds-dropdown-menu .ds-suggestion.ds-cursor .algolia-docsearch-suggestion:not(.suggestion-layout-simple) .algolia-docsearch-suggestion--content {
background-color: transparent;
color: var(--ibexa-jazzberry);
}

.md-header .md-search .algolia-autocomplete .ds-dropdown-menu .ds-suggestion.ds-cursor .algolia-docsearch-suggestion:not(.suggestion-layout-simple) .algolia-docsearch-suggestion--wrapper * {
color: var(--ibexa-jazzberry);
}

.md-header .md-search .algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--highlight {
background-color: #ECF4FF;
color: #4191FF !important;
box-shadow: none;
padding: 0;
}

.md-header .md-search .algolia-autocomplete .algolia-docsearch-suggestion.algolia-docsearch-suggestion__main .algolia-docsearch-suggestion--category-header {
display: flex;
align-items: center;
font-size: 14px;
line-height: 21px;
letter-spacing: 0.12px;
height: 40px;
margin: 16px 0 0 0;
padding: 0 40px;
border: 0;
background-color: #F2F2F5;
color: var(--ibexa-dusk-black);
font-weight: 600;
}

.md-header .md-search .algolia-autocomplete .ds-suggestions > .ds-suggestion:first-child .algolia-docsearch-suggestion.algolia-docsearch-suggestion__main .algolia-docsearch-suggestion--category-header {
margin-top: 0;
}

.md-header .md-search .algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--wrapper {
padding: 0;
}

.md-header .md-search .algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--subcategory-column {
float: none;
width: 100%;
text-align: left;
font-size: 18px;
line-height: 20px;
letter-spacing: 0.12px;
margin: 24px 40px 4px;
padding: 0;
color: var(--ibexa-dusk-black);
font-weight: 600;
}

.md-header .md-search .algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--content {
float: none;
width: 100%;
text-align: left;
color: #3B424A;
font-size: 14px;
line-height: 21px;
letter-spacing: 0.12px;
padding: 0;
margin: 0 40px;
display: flex;
flex-direction: column-reverse;
}

.md-header .md-search .algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--content::before {
display: none;
}

.md-header .md-search .algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--title {
font-size: 12px;
line-height: 21px;
letter-spacing: 0.12px;
margin-top: 16px;
font-weight: 500;
}

.md-header .md-search .algolia-autocomplete .algolia-docsearch-suggestion .aa-suggestion-title-separator {
margin: 0 12px;
font-weight: 500;
}

.md-header .md-search .algolia-autocomplete .ds-dataset-1 {
z-index: 1;
padding-bottom: 70px;
}

.md-header .md-search .algolia-autocomplete .search-page-link-wrapper {
position: absolute;
z-index: 2;
bottom: 0;
left: 0;
right: 0;
background-color: #F2F2F5;
width: 100%;
height: 60px;
padding: 0 40px;
display: flex;
align-items: center;
justify-content: center;
}

.md-header .md-search .algolia-autocomplete .search-page-link {
color: var(--link);
transition: color 125ms;
}

.md-header .md-search .algolia-autocomplete .search-page-link:hover {
color: var(--ibexa-jazzberry);
transition: color 125ms;
}
4 changes: 4 additions & 0 deletions docs/images/caret-back.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions docs/images/caret-double-back.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions docs/images/caret-double-next.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/images/caret-next.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions docs/images/ez-icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading