npm.io
1.0.7 • Published 3 years ago

intercom-to-docusuarus

Licence
ISC
Version
1.0.7
Deps
1
Size
5 kB
Vulns
0
Weekly
0

Intercom to Docusaurus Docs

This pulls Intercom articles and formats them for md files to use on docusaurus.

How to use

Create an .env file with INTERCOM_ACCESS_TOKEN set to the intercom api access token in the repo you are using this

npm install intercom-to-docusuarus

Add something like this to the project you want to run the command:

const articlesOutput = require("intercom-to-docusaurus");
const folderPath = "../docs";

articlesOutput(folderPath);

The folder path is the folder you want the files to be located at.

Navigate into the location of the file and run node [name_of_file].js