教程參考html
Typora+PicGo-Core(command line)+Gitee實現圖片上傳到圖牀 主要借鑑 picgo 操做命令
java
Typora + PicGo + Gitee 實現圖片自動上傳到圖牀 主要借鑑 gitee 圖牀的搭建
node
請自行百度解決...linux
// npm 命令執行速度過慢的話,咱們能夠使用一下淘寶的鏡像 npm install -g picgo --registry=https://registry.npm.taobao.org // 安裝完成之後測試一下是否安裝成功 picgo -v
picgo install gitee-uploader
C:\Users\Run\Desktop>picgo set uploader ? Choose a(n) uploader (Use arrow keys) ❯ gitee smms tcyun github qiniu imgur aliyun upyun (Move up and down to reveal more choices) ? Choose a(n) uploader gitee ? repo: xxxx/image ? branch: master ? token: 5a34fa3f348d556... ? path: 2020 ? customPath: 年月 ? customUrl: https://gitee.com/xxxx/image/raw/master/ [PicGo SUCCESS]: Configure config successfully!
重點是 自定義命令
的組成部分: [your node path] [your picgo path] upload
git
鍵 | 值 |
---|---|
上傳服務 | Custom Command |
自定義命令 | D:\nodejs\node.exe D:\nodejs\node_global\node_modules\picgo\bin\picgo upload |
注意:配置完成後能夠點擊 驗證圖片上傳選項
來測試是否配置成功github
如下是參照 PicGo-Core官方文檔 的進行的配置npm
首先咱們須要找到咱們的配置文件,picgo 的默認配置文件在不一樣系統的目錄不太同樣:
linux 和 macOS 均爲 ~/.picgo/config.json
windows 則爲 C:\Users\{你的用戶名}\.picgo\config.json
json
{ "picBed": { "current": "gitee", "gitee": { "repo": "xxxx/image", "branch": "master", "token": "5a34fa3f348d556...", "path": "2020", "customPath": "yearMonth", "customUrl": "https://gitee.com/xxxx/image/raw/master/" }, "uploader": "gitee", "transformer": "path" }, "picgoPlugins": { "picgo-plugin-gitee-uploader": true }, "picgo-plugin-gitee-uploader": { "lastSync": "2020-07-30 10:29:26" } }