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
[**Apply for DocSearch**](https://docsearch.algolia.com/apply). You'll get an email with your Algolia credentials.
8
+
[**Apply for DocSearch**](https://docsearch.algolia.com/apply).
9
+
You'll get an email with your Algolia credentials.
9
10
10
11
This extension supports Python versions 3.8, 3.9, 3.10, and 3.11 and Sphinx versions 5 and later.
11
12
12
13
## Install
13
14
14
-
Install the `sphinx-docsearch`extension from PyPI:
15
+
Install the `sphinx-docsearch`package:
15
16
16
17
```sh
17
18
pip install sphinx-docsearch
18
19
```
19
20
20
21
## Configure
21
22
22
-
1. Add `sphinx-docsearch` to your Sphinx configuration file `conf.py`:
23
+
1. Add `sphinx-docsearch` to your Sphinx configuration:
23
24
24
25
```python
26
+
# conf.py
25
27
extensions += ["sphinx_docsearch"]
26
28
```
27
29
28
30
1. Add your Algolia credentials to your Sphinx configuration:
29
31
30
32
```python
33
+
# conf.py
31
34
docsearch_app_id ="<DOCSEARCH_APP_ID>"
32
35
docsearch_api_key ="<DOCSEARCH_SEARCH_API_KEY>"
33
36
docsearch_index_name ="<DOCSEARCH_INDEX_NAME>"
34
37
```
35
38
36
-
1. Optional: change configuration settings
39
+
See also: [Configure DocSearch](https://sphinx-docsearch.readthedocs.io/en/latest/configuration.html).
37
40
38
41
## Customize
39
42
40
-
- Customize crawling (link to DocSearch or Crawler doc)
41
-
- Add custom templates
42
-
- Add custom CSS
43
+
To change what the crawler should extract from your pages, see [Record Extractor](https://docsearch.algolia.com/docs/record-extractor).
44
+
45
+
You can add [custom templates](https://sphinx-docsearch.readthedocs.io/en/latest/customization.html#add-custom-templates),
46
+
if your Sphinx HTML theme uses templates [not provided](https://sphinx-docsearch.readthedocs.io/en/latest/themes.html)
47
+
by this extension.
48
+
49
+
You can customize the look of the DocSearch UI by [adding your own CSS](https://sphinx-docsearch.readthedocs.io/en/latest/customization.html#add-custom-css).
0 commit comments