feat: Enable API search (#353)

* enabled search in ref and changed from section -> main so Algolia will index ref content

* fix: algolia apu key
This commit is contained in:
Kasper Fabricius Kristensen
2021-08-25 15:51:00 +02:00
committed by GitHub
parent f76aa816a5
commit 15161bb0e9
6 changed files with 16 additions and 14 deletions
@@ -82,7 +82,7 @@ const Section = ({ data }) => {
}, [isInView])
return (
<section
<main
ref={sectionRef}
id={convertToKebabCase(section.section_name)}
className="DocSearch-content"
@@ -200,7 +200,7 @@ const Section = ({ data }) => {
)}
</Flex>
</Box>
</section>
</main>
)
}