-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docs): update @getcanary/web dependency to version 1.0.0-rc.15
- Loading branch information
Showing
12 changed files
with
191 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,42 @@ | ||
# Astro | ||
|
||
[Astro](https://astro.build) is web framework for content-driven websites. | ||
|
||
## Two steps to integrate | ||
|
||
### Step 1: Install `@getcanary/web` | ||
|
||
```bash | ||
npm install @getcanary/web | ||
``` | ||
|
||
### Step 2: Create search component | ||
|
||
You can customize and place it anywhere you want. | ||
|
||
```html{12} | ||
<script> | ||
import '@getcanary/web/components/canary-root.js' | ||
import '@getcanary/web/components/canary-provider-pagefind.js' | ||
import '@getcanary/web/components/canary-modal.js' | ||
import '@getcanary/web/components/canary-trigger-searchbar.js' | ||
import '@getcanary/web/components/canary-content.js' | ||
import '@getcanary/web/components/canary-input.js' | ||
import '@getcanary/web/components/canary-search.js' | ||
import '@getcanary/web/components/canary-search-results.js' | ||
</script> | ||
<canary-root framework="astro"> | ||
<canary-provider-pagefind> | ||
<canary-modal> | ||
<canary-trigger-searchbar slot="trigger"></canary-trigger-searchbar> | ||
<canary-content slot="content"> | ||
<canary-input slot="input"></canary-input> | ||
<canary-search slot="mode"> | ||
<canary-search-results slot="body"></canary-search-results> | ||
</canary-search> | ||
</canary-content> | ||
</canary-modal> | ||
</canary-provider-pagefind> | ||
</canary-root> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Open | ||
|
||
## NPM Downloads | ||
|
||
## Github | ||
|
||
### Stars |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters