An open API service indexing awesome lists of open source software.

https://github.com/davidcralph/docsify-ethicalads

EthicalAds support for Docsify
https://github.com/davidcralph/docsify-ethicalads

docsify docsify-js docsify-plugin ethicalads

Last synced: 9 months ago
JSON representation

EthicalAds support for Docsify

Awesome Lists containing this project

README

          

# docsify-ethicalads
EthicalAds support for Docsify

## Usage
```html

```

```js
window.$docsify = {
name: 'Test',
loadSidebar: true,
plugins: [
DocsifyEthicalAds.create('ethicalads-publisher-id', {
type: 'image'
})
]
}
```

## Options
``type`` - Either "image" or "text" (default: image)

``horizontal`` - Boolean, allows the ad to be horizontal instead of vertical (default: false)

``dark`` - Boolean, whether or not dark theme is on the advert or not (default: false)

``theme`` - One of the themes [here](https://ethical-ad-client.readthedocs.io/en/latest/#themes) (default: see EthicalAds documentation)

``keywords`` - "data-ea-keywords" (default: see EthicalAds documentation)

``campaignTypes`` - "data-ea-campaign-types" (default: see EthicalAds documentation)

``placementID`` - Placement ID for the ad element (default: none)

``forceAd`` - Ad to force show for testing (default: none)

``forceCampaign`` - Campaign to force show for testing (default: none)

``manual`` - Require manual loading of ads at a certain time (default: false)

## Credits
[docsify-plugin-carbon](https://github.com/waruqi/docsify-plugin-carbon) - Reference

[EthicalAds Documentation](https://ethical-ad-client.readthedocs.io/en/latest/#configuration) - Reference