Giter Site home page Giter Site logo

docusaurus-plugin's Introduction

@papercups-io/docusaurus-plugin

NPM

This plugins enable usage of the Papercups chat widget on Docusaurus powered websites.

Install

npm install --save @papercups-io/docusaurus

Usage

  1. Sign up at https://app.papercups.io/register to get your account token. Your account token is what you will use to pass in as the accountId prop below.

  2. Configure the plugin in docusaurus.config.js:

// docusaurus.config.js
module.exports = {
  plugins: [
    [
      "@papercups-io/docusaurus-plugin",
      {
        /* REQUIRED */
        // Pass in your Papercups account token here after signing up
        accountId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx',

        /* OPTIONAL */
        title: 'Welcome to Papercups!',
        subtitle: 'Ask us anything in the chat window below ๐Ÿ˜Š',
        newMessagePlaceholder: 'Start typing...',
        primaryColor: '#13c2c2',

        // Initial message that new users will see.
        greeting: 'Hi there! How can I help you?',

        // Used only when self-hosting Papercups. Otherwise leave it empty.
        baseUrl: 'https://app.papercups.io',

        // Add this if you want to require the customer to enter
        // their email before being able to send you a message
        requireEmailUpfront: true,

        // Add this if you want to indicate when you/your agents
        // are online or offline to your customers
        showAgentAvailability: true,
      },
    ],
  ],
};
  1. If you are hot reloading the code you might need to refresh the page for the widget to show up.

See our demo or our main repo

docusaurus-plugin's People

Contributors

cheeseblubber avatar reichert621 avatar rhonsby avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

wooodhead

docusaurus-plugin's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.