参考:
(41条消息) Typora+PicGo-core插入图片自动上传,gitee,gitgub,sm.ms三种免费图床_jaymier的博客-CSDN博客
(41条消息) Node.js下载安装及环境配置教程【超详细】_nodejs下载安装教程_WHF__的博客-CSDN博客
1、安装Node.js
傻瓜式,直接下一步,可以不用配置环境
安装完成后验证:
node -v
npm -v
2、安装PicGo,打开Typora,点击文件----->偏好设置----->图像
(安装有点慢,有的时候可能会断网,可以打开资源监视器观看,当么有网络占用时,可以重新下载)
3、cmd到picgo安装位置(通常是:C:\Users\用户名\AppData\Roaming\Typora\picgo\win64)
安装gitee插件:.\picgo.exe install gitee-uploader
4、创建gitee仓库
打开创建的仓库,点击管理
将仓库改成开源
5、创建私人令牌
点击设置,下拉左侧有私人令牌,创建,
复制自己的令牌号码
6、生成配置文件:
{
"picBed": {
"current": "gitee",
"uploader": "gitee",
"githubPlus": {
"branch": "master",
"customUrl": "仓库地址(例如:https://gitee.com/JinLinProvince/images)",
"path": "仓库名字/",
"repo": "用户名/仓库名(例:JinLinProvince/images)",
"token": "令牌号码"
},
"gitee": {
"branch": "master",
"customPath": "yearMonth",
"customUrl": "",
"path": "仓库名字/",
"repo": "用户名/仓库名",
"token": "令牌号码"
},
"smms-user": {
"Authorization": "令牌号码"
},
"transformer": "path"
},
"picgoPlugins": {
"picgo-plugin-gitee-uploader": true,
"picgo-plugin-smms-user": true,
"picgo-plugin-github-plus": true,
"picgo-plugin-super-prefix": true
},
"picgo-plugin-gitee-uploader": {
"lastSync": "2023-06-26 09:14:04"
},
"picgo-plugin-github-plus": {
"lastSync": "2020-04-07 11:09:08"
}
}
标签:Core,令牌,plugin,仓库,Typora,gitee,picgo
From: https://www.cnblogs.com/Ms-wang/p/17506755.html