Skip to content

Commit

Permalink
Merge pull request #39 from D-Sketon/docs_1
Browse files Browse the repository at this point in the history
docs(config): update algolia config
  • Loading branch information
zkz098 authored Feb 25, 2023
2 parents 8f9359e + 2a921f0 commit 982ccdb
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions docs/guide/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,20 @@ algolia:
- photos
- tags
```
自行参考algolia官网填入即可
:::info
如果您对于algolia搜索配置流程有印象,可以编辑此文档
### 配置流程
- 登录 [Algolia](https://www.algolia.com/) 官网,建议使用 Github/Google 账号注册/登录
- 进入 `Dashboard` - `Search` - `Index` 页面,选择上方 `+ Create Index` 创建索引,索引名称建议为 `shokaX`
- 进入 `Dashboard` - `Settings` - `API Keys` 页面,复制如下数据到上方配置中

|页面数据|对应配置|
|-|-|
|`Application ID`|`appId`|
|`Search-Only API Key`|`apiKey`|
|`Admin API Key`|`adminApiKey`|
|创建的索引名|`indexName`|

- 在博客部署前运行 `hexo algolia` 上传索引,可在 `Dashboard` - `Search` - `Index` 页面中查看

:::warning
请勿将 `apiKey` 和 `adminApiKey` 混用,否则索引可能被攻击!
:::

1 comment on commit 982ccdb

@vercel
Copy link

@vercel vercel bot commented on 982ccdb Feb 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.