安装Node.js
必须安装Node.js之后才能安装PicGo的插件,因为PicGo要使用
npm
来安装插件。
- 下载: https://nodejs.org/zh-cn/download/
- 配置环境变量Path。
安装PicGo
https://github.com/Molunerfinn/PicGo/releases/tag/v2.2.2
配置server信息


安装插件
1、进入目录:
C:\Users\lXXX\AppData\Roaming\picgo
2、执行
npm install picgo-plugin-gitee-uploader
3、重启
配置gitee
1、登录gitee。https://gitee.com/
2、创建公有仓库(任何人都可以访问)
3、设置私人令牌,只有projects权限。
配置gitee uploadder插件
repo:demon75520/images ##相对路径
branch:master
token:个人令牌
path:csdn/$customPath
custompath:年月
customUrl;
Config
- repo: repo name, split by ‘/’, eg:
owner/repoName
- branch: default
master
- token: gitee
personal access token
- path: file path
- customPath: auto config path
- customUrl: used to insead of
https://gitee.com/:owner/:repo/raw/:path/:filename
, eg:${customUrl}/path/filename.jpg
makesure the customUrl
can access your repo
customPath
自动配置path路径 示例:path:blog/$customPath
- customPath选择年,则实际的path值为blog/2019
- customPath选择年季,则实际的path值为blog/2019/summer
- customPath选择年月,则实际的path值为blog/2019/01
$customPath
为占位符。
配置Typora

参考:
PicGo文档:https://picgo.github.io/PicGo-Doc/zh/guide/config.html#%E5%AE%89%E8%A3%85
PicGo git:https://github.com/Molunerfinn/PicGo
PicGo 插件:https://github.com/PicGo/Awesome-PicGo
typora markdown:https://support.typora.io/Markdown-Reference/