evidence icon indicating copy to clipboard operation
evidence copied to clipboard

support for algolia docsearch

Open mcrascal opened this issue 2 years ago • 2 comments

adds an algolia option to evidence default layout, which accepts the public info for the algolia docs search bar. Adds some custom styles on the actual search button.

+layout.svelte

<script>
	import '@evidence-dev/tailwind/fonts.css';
	import '../app.css';
	import { EvidenceDefaultLayout } from '@evidence-dev/core-components';
	export let data;
</script>

<EvidenceDefaultLayout
	{data}
	githubRepo="/"
	slackCommunity="/"
	xProfile="/"
	algolia={{
		appId: 'KHH9ANIISC',
		apiKey: 'd2bd44615d8d5f5464e54f06e82edd19',
		indexName: 'docs-evidence'
	}}
>
	<slot slot="content" />
</EvidenceDefaultLayout>

yields

CleanShot 2024-02-26 at 22 31 49@2x

mcrascal avatar Feb 27 '24 03:02 mcrascal

⚠️ No Changeset found

Latest commit: b0aa63ae851a1db056ebac3152d2a531f6a4db71

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar Feb 27 '24 03:02 changeset-bot[bot]

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 29, 2024 5:08pm

vercel[bot] avatar Feb 27 '24 03:02 vercel[bot]

What is the status of this PR? Can it be merged?

Seems like there is a lockfile deps issue in the tests

archiewood avatar Feb 28 '24 16:02 archiewood

@archiewood this needs to go into the sidebar sorting PR, and I'll propose a merge from there w/ a changeset etc.

mcrascal avatar Feb 28 '24 21:02 mcrascal