Skip to content

stackql/docusaurus-plugin-hubspot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docusaurus-plugin-hubspot

Plugin to enable Hubspot with Docusaurus

Installation

NPM

npm i docusaurus-plugin-hubspot

YARN

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     
    },
    ...
  }
}