A repo focusing on comments integrated with code management providers like GitLab or GitHub.
MIT License
A project focusing on comments integrated with code management providers like GitLab or GitHub.
Add the following plugins to your book.json
and run the command gitbook install
{
"plugins": ["comments-footer"]
}
To use this plugin in a GitBook project deployed on GitHub, the first step is to install the GitHub app in your repository for accessing.
And then, the configuration option can be set as an object like the following snippet:
{
"plugins": [
"comments-footer"
],
"pluginsConfig": {
"comments-footer": {
"type": "github",
"repo": "aleen42/PersonalWiki",
"copyright": "Copyright aleen42"
}
}
}
What if using it in GitLab? You may need to create an application yourself with API
scope accessing.
api
And then, the configuration option can be set as an object like the following snippet:
{
"plugins": [
"comments-footer"
],
"pluginsConfig": {
"comments-footer": {
"type": "gitlab",
"repo": "fe-components/fe-documents",
"copyright": "Copyright aleen42",
"redirect": "xxx",
"clientId": "xxx",
"host": "http://git.xxx.cn/"
}
}
}
Why does requests towards GitLab API fails the policy of CORS? #4
I have tested under CE 11.7.5 and GitLab has already set
Access-Control-Allow-Origin: *
for all requests ofapi/*
under aGET
way by default. If not for your environment, try to find a way to configure it.
Have an idea? Found a bug? See how to contribute.
MIT aleen42
Note: if you like this project, feel free to buy me a swimming chance: