UNPKG

gitbook-plugin-mygitalk

Version:
124 lines (123 loc) 3.77 kB
{ "name": "gitbook-plugin-mygitalk", "main": "index.js", "version": "0.2.6", "description": "mygitalk is a gitbook comment plugin based on gitalk", "engines": { "gitbook": ">=2.4.3" }, "gitbook": { "properties": { "clientID": { "type": "string", "required": true, "description": "GitHub Application Client ID." }, "clientSecret": { "type": "string", "required": true, "description": "GitHub Application Client Secret." }, "repo": { "type": "string", "required": true, "description": "GitHub repository." }, "owner": { "type": "string", "required": true, "description": "GitHub repository owner. Can be personal user or organization." }, "admin": { "type": "array", "required": true, "description": "GitHub repository owner and collaborators. (Users who having write access to this repository)." }, "number": { "type": "number", "default": -1, "description": "The issue ID of the page, if the number attribute is not defined, issue will be located using id." }, "labels": { "type": "array", "default": [ "Gitalk" ], "description": "GitHub issue labels." }, "title": { "type": "string", "description": "GitHub issue title." }, "body": { "type": "string", "description": "GitHub issue body." }, "language": { "type": "string", "description": "Localization language key, en, zh-CN and zh-TW are currently available." }, "perPage": { "type": "number", "default": 10, "description": "Pagination size, with maximum 100." }, "distractionFreeMode": { "type": "boolean", "default": false, "description": "Facebook-like distraction free mode." }, "pagerDirection": { "type": "string", "default": "last", "description": "Comment sorting direction, available values are last and first." }, "createIssueManually": { "type": "boolean", "default": false, "description": "By default, Gitalk will create a corresponding github issue for your every single page automatically when the logined user is belong to the admin users. You can create it manually by setting this option to true." }, "proxy": { "type": "string", "default": "https://cors-anywhere.herokuapp.com/https://github.com/login/oauth/access_token", "description": "GitHub oauth request reverse proxy for CORS. Why need this?" }, "flipMoveOptions": { "type": "object", "description": "Comment list animation. Reference" }, "enableHotKey": { "type": "boolean", "default": true, "description": "Enable hot key (cmd|ctrl + enter) submit comment." } } }, "repository": { "type": "git", "url": "git+https://github.com/snowdreams1006/gitbook-plugin-mygitalk.git" }, "keywords": [ "gitbook-plugin-mygitalk", "mygitalk", "gitalk", "gitment", "discuss", "comment", "issues", "github", "gitbook" ], "author": { "name": "snowdreams1006", "email": "snowdreams1006@163.com" }, "license": "Apache-2.0", "bugs": { "url": "https://github.com/snowdreams1006/gitbook-plugin-myGitalk/issues" }, "homepage": "https://snowdreams1006.github.io/gitbook-plugin-mygitalk/", "dependencies": { "gitalk": "^1.5.0" } }