You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**1–bis.** Or with a script tag (at the end of the `body`):
51
+
#### Get started
52
+
53
+
To get started, you need a [`container`](https://docsearch.algolia.com/docs/api#container) for your DocSearch component to go in. If you don’t have one already, you can insert one into your markup:
Then, insert DocSearch into it by calling the [`docsearch`](https://docsearch.algolia.com/docs/api) function and providing the container. It can be a [CSS selector](https://developer.mozilla.org/en-us/docs/web/css/css_selectors) or an [Element](https://developer.mozilla.org/en-us/docs/web/api/htmlelement).
60
+
61
+
Make sure to provide a [`container`](https://docsearch.algolia.com/docs/api#container) (for example, a `div`), not an `input`. DocSearch generates a fully accessible search box for you.
62
+
63
+
```js app.js
64
+
importdocsearchfrom'@docsearch/js';
65
+
66
+
import'@docsearch/css';
54
67
55
-
```js
56
68
docsearch({
57
69
container:'#docsearch',
70
+
appId:'YOUR_APP_ID',
58
71
indexName:'YOUR_INDEX_NAME',
59
-
apiKey:'YOUR_API_KEY',
72
+
apiKey:'YOUR_SEARCH_API_KEY',
60
73
});
61
74
```
62
75
63
-
**3.**[Customize the color scheme](https://docsearch.algolia.com/docs/styling/).
76
+
### React
77
+
78
+
#### Installation
79
+
80
+
```bash
81
+
yarn add @docsearch/react@alpha
82
+
# or
83
+
npm install @docsearch/react@alpha
84
+
```
85
+
86
+
If you don’t want to use a package manager, you can use a standalone endpoint:
-**[algolia/docsearch-website](https://github.com/algolia/docsearch-website)**: DocSearch website and documentation.
123
+
-**[algolia/docsearch/packages/website](https://github.com/algolia/docsearch/tree/next/packages/website)**: DocSearch website and documentation.
71
124
-**[algolia/docsearch-configs](https://github.com/algolia/docsearch-configs)**: DocSearch websites configurations that DocSearch powers.
72
125
-**[algolia/docsearch-scraper](https://github.com/algolia/docsearch-scraper)**: DocSearch crawler that extracts data from your documentation.
To get started, you need a [`container`](https://docsearch.algolia.com/docs/api#container) for your DocSearch component to go in. If you don’t have one already, you can insert one into your markup:
22
+
23
+
```html
24
+
<divid="docsearch"></div>
25
+
```
26
+
27
+
Then, insert DocSearch into it by calling the [`docsearch`](https://docsearch.algolia.com/docs/api) function and providing the container. It can be a [CSS selector](https://developer.mozilla.org/en-us/docs/web/css/css_selectors) or an [Element](https://developer.mozilla.org/en-us/docs/web/api/htmlelement).
28
+
29
+
Make sure to provide a [`container`](https://docsearch.algolia.com/docs/api#container) (for example, a `div`), not an `input`. DocSearch generates a fully accessible search box for you.
0 commit comments