vuepress-plugin-editable v1.0.11
vuepress-plugin-editable
Let's editing vuepress generate docs so easy!
Safety Warning: Currently, to facilitate functionality, veaba-bot explicitly redirects the Github AccessToken to the url of your launch oAuth page. For the security of your Github account, please always avoid revealing the AccessToken to third parties, including veaba-bot, veaba ](https://github.com/veaba/veaba-bot),
veaba-botwill not keep storing yourAccessTokeninformation. YourAccessTokenis passed toveaba-botvia the Request headeraccess-tokenset in fetch.安全警告:目前为了方便实现功能,
veaba-bot会显式地将 GithubAccessToken重定向到你的发起 oAuth 页面的 url,为了你的 Github 账号安全,请始终避免泄露AccessToken给第三方,包括 veaba-bot,veaba-bot不会保留存储你的AccessToken信息。你的AccessToken是通过 fetch 里设置的 Request headeraccess-token传递给veaba-bot。
Why vuepress-plugin-editable
Based on vuepress + markdown ecosystem simplifies the intermediate process and can be quickly applied to the article creation and revision process.
You don't even need to open vscode, you just find a mistake while reading the documentation and correct it as you go.
This will lower the threshold for developers to participate in open source documentation maintenance.
Install
npm install -D vuepress-plugin-editable
# OR yarn add -D vuepress-plugin-editableUsage
Double-click on the vuepress generated content.
OAuth github account and PR to repo's source file.
Features
vuepress ecosystem
plain text mode: HTML setting
contenteditable:trueredirect pull request.complex text mode: diff origin source file content.
success/error alert ui
Bug
Listed not supported yet!
- custom container
::: warning
*here be dragons*
:::- definition code
: Definition 2
{ some code, part of Definition 2 }
Third paragraph of definition 2.img
table
code
Emphasis
**This is bold text**
__This is bold text__
*This is italic text*
_This is italic text_
~~StrikeThrough~~Positioning is not accurate
H1-H6 auth block position has been mask.
API
options
| name | description | default |
|---|---|---|
| appDomain | https://bot.veaba.me | |
| getContentAPI | /api/content/get | |
| updateAPI | /api/content/update | |
| redirectAPI | /api/redirect/github | |
| clientId | Github APP client id | {clientId} |