SuffolkLITLab / docassemble-AssemblyLine-documentation

Legal form development and deployment process
https://assemblyline.suffolklitlab.org
9 stars 8 forks source link

Use algolia search #364

Open nonprofittechy opened 1 year ago

nonprofittechy commented 1 year ago

Terms of use have changed, it's easier to get it now. Maybe we can then integrate search with legal-tech-class too.

BryceStevenWilley commented 1 year ago

We were officially approved!

We need to add this bit to the <head> tag:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3"/>

And this bit in the <body> tag:

<script src="https://cdn.jsdelivr.net/npm/@docsearch/js@3"></script>
<script type="text/javascript">
docsearch({
appId: REDACTED, IN LAB EMAIL,
apiKey: REDACTED, IN LAB EMAIL,
indexName: suffolklitlab,
insights: true, // Optional, automatically send insights when user interacts with search results
container: '### REPLACE ME WITH A CONTAINER (e.g. div) ###'
debug: false // Set debug to true if you want to inspect the modal
});
</script>