@stackql/docusaurus-plugin-hubspot
v1.1.0
Published
A plugin which adds your Hubspot tracking code to your docusaurus docs or blog site.
Readme
docusaurus-plugin-hubspot
Plugin to enable Hubspot with Docusaurus
Installation
npm i docusaurus-plugin-hubspotyarn add docusaurus-plugin-hubspotSetup
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
},
...
}
}