Skip to content

Commit

Permalink
docs(nxdev): add algolia production configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
bcabanes committed Mar 31, 2022
1 parent 42f1c73 commit 99b2e26
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions nx-dev/feature-search/src/lib/algolia-search.global.css
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,12 @@
}

.DocSearch-Hit-source {
line-height: 1.5rem;
font-weight: bold;
color: theme('colors.gray.600');
font-weight: bold;
line-height: 1.5rem;
margin-top: 1.5rem;
margin-bottom: 1rem;
text-transform: capitalize;
}

.DocSearch-Hit-Container {
Expand Down
12 changes: 6 additions & 6 deletions nx-dev/feature-search/src/lib/algolia-search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,16 @@ export function AlgoliaSearch() {
{isOpen &&
createPortal(
<DocSearchModal
// searchParameters={{
// facetFilters: ['language:en'],
// }}
searchParameters={{
facetFilters: ['language:en'],
}}
initialQuery={initialQuery}
placeholder="Search documentation"
initialScrollY={window.scrollY}
onClose={handleClose}
indexName="nx"
apiKey="0c9c3fb22624056e7475eddcbcbfbe91"
appId="BH4D9OD16A"
indexName="nx-production"
apiKey="f49a1eb671385f0472a7285556168930"
appId="PCTGM1JTQL"
navigator={{
navigate({ itemUrl }) {
setIsOpen(false);
Expand Down

0 comments on commit 99b2e26

Please sign in to comment.