davidcralph / docsify-ethicalads

EthicalAds support for Docsify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docsify-ethicalads

EthicalAds support for Docsify

Usage

<script src='https://unpkg.com/docsify-ethicalads@1.0.4/dist/docsify-ethicalads.js'></script>
<!-- or -->
<script src='https://unpkg.com/docsify-ethicalads@1.0.4/dist/docsify-ethicalads.min.js'></script>
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 (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 - Reference

EthicalAds Documentation - Reference

About

EthicalAds support for Docsify

License:MIT License


Languages

Language:JavaScript 100.0%