1.1.0 • Published 1 year ago

@stackql/docusaurus-plugin-hubspot v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

docusaurus-plugin-hubspot

Plugin to enable Hubspot with Docusaurus

Installation

npm i docusaurus-plugin-hubspot
yarn add docusaurus-plugin-hubspot

Setup

Add to plugins in docusaurus.config.js:

{
  plugins: [
    'docusaurus-plugin-hubspot',
    ...
  ]
}

Add your Hubspot configuration to themeConfig in the docusaurus.config.js file:

{
  themeConfig: {
    hubspot: {
      accountId: HUBSPOT_ACCOUNT_ID,
      async: boolean, // OPTIONAL: sets the async attribute on the script tag, defaults to false
      defer: boolean, // OPTIONAL: sets the defer attribute on the script tag, defaults to false     
    },
    ...
  }
}