mirror of https://github.com/vuejs/vitepress
parent
7aa3fb261b
commit
6bd6b53c4d
@ -0,0 +1,16 @@
|
|||||||
|
# Theme Config: Algolia Search
|
||||||
|
|
||||||
|
The `themeConfig.algolia` option allows you to use [Algolia DocSearch](https://docsearch.algolia.com/). To enable it, you need to provide at least apiKey and indexName:
|
||||||
|
|
||||||
|
```js
|
||||||
|
module.exports = {
|
||||||
|
themeConfig:{
|
||||||
|
algolia: {
|
||||||
|
apiKey: 'your_api_key',
|
||||||
|
indexName: 'index_name'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
For more options, check out [Algolia DocSearch's documentation](https://github.com/algolia/docsearch#docsearch-options).
|
@ -1,13 +1,15 @@
|
|||||||
# App Config: Carbon Ads
|
# Theme Config: Carbon Ads
|
||||||
|
|
||||||
VitePress has built in native support for [Carbon Ads](https://www.carbonads.net). By defining the Carbon Ads credentials in config, VitePress will display ads on the page.
|
VitePress has built in native support for [Carbon Ads](https://www.carbonads.net). By defining the Carbon Ads credentials in config, VitePress will display ads on the page.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
module.exports = {
|
module.exports = {
|
||||||
carbonAds: {
|
themeConfig: {
|
||||||
carbon: 'your-carbon-key',
|
carbonAds: {
|
||||||
custom: 'your-carbon-custom',
|
carbon: 'your-carbon-key',
|
||||||
placement: 'your-carbon-placement'
|
custom: 'your-carbon-custom',
|
||||||
|
placement: 'your-carbon-placement'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in new issue