Coder Social home page Coder Social logo

snowdreams1006 / gitbook-plugin-mygitalk Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 5.0 2.25 MB

Mygitalk is a gitbook comment plugin based on gitalk

Home Page: https://snowdreams1006.github.io/gitbook-plugin-mygitalk/

License: Apache License 2.0

JavaScript 82.29% Shell 17.71%
gitbook-plugin-mygitalk mygitalk gitalk gitment comment discuss issue

gitbook-plugin-mygitalk's Introduction

gitbook-plugin-mygitalk

npm version npm-download npm-license github 微信公众号

Mygitalk is a gitbook comment plugin based on gitalk.

If you want to know the story behind mygitalk, please visit gitbook-plugin-mygitalk.

mygitalk-use-preview.png

Homepage

Feature

  • Authentication with github account
  • Serverless, all comments will be stored as github issues
  • Both personal and organization github projects can be used to store comments
  • Localization, support multiple languages [en, zh-CN, zh-TW, es-ES, fr, ru]
  • Facebook-like distraction free mode (Can be enabled via the distractionFreeMode option)
  • Hotkey submit comment (cmd|ctrl + enter)

Usage

  • Install this plugin

Add mygitalk to plugins in book.json configuration file.

{
    "plugins" : ["mygitalk"]
}

Install mygitalk via npm or gitbook .

$ npm install gitbook-plugin-mygitalk

or

$ gitbook install
  • Configure this plugin

Prepare a GitHub application , if you don't have one, Click here to register a new one.

Add it to your book.json with a basic configuration

{
  "pluginsConfig": {
    "mygitalk": {
        "clientID": "GitHub Application Client ID",
        "clientSecret": "GitHub Application Client Secret",
        "repo": "GitHub repo",
        "owner": "GitHub repo owner",
        "admin": ["GitHub repo owner and collaborators, only these guys can initialize github issues"],
        "distractionFreeMode": false
    }
  }
}
  • Run gitbook locally

Run gitbook build or gitbook serve to verify this plugin is in effect and should not have been initialized yet.

  • Release gitbook officially

Publish to the production environment to implement the comment function really.

  • Star this plugin

If you feel this plugin is helpful, feel free to star gitbook-plugin-mygitalk.

Example

The gitbook-plugin-mygitalk project has been integrated with the plugin itself or you can refer to the sample project.

Feedback

I am very happy to help out with your books or any other questions you might have. see snowdreams1006

You can email me or new issue on github.

License

gitbook-plugin-mygitalk is licensed under Apache-2.0 License. See LICENSE for the full license text.

gitbook-plugin-mygitalk's People

Contributors

snowdreams1006 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

gitbook-plugin-mygitalk's Issues

403 Error

不知道大佬有没有发现在登录时会出现 403 错误,你自己的博客主页现在也会出现这种情况。

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.