JSPM

@stackql/docusaurus-plugin-hubspot

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 769
  • Score
    100M100P100Q116588F
  • License MIT

A plugin which adds your Hubspot tracking code to your docusaurus docs or blog site.

Package Exports

  • @stackql/docusaurus-plugin-hubspot
  • @stackql/docusaurus-plugin-hubspot/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@stackql/docusaurus-plugin-hubspot) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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