Typora云图片

安装Node.js

必须安装Node.js之后才能安装PicGo的插件,因为PicGo要使用npm来安装插件。

  1. 下载: https://nodejs.org/zh-cn/download/
  2. 配置环境变量Path。

安装PicGo

https://github.com/Molunerfinn/PicGo/releases/tag/v2.2.2

配置server信息

image-20210113175029631 image-20210113175108787

安装插件

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

  1. customPath选择年,则实际的path值为blog/2019
  2. customPath选择年季,则实际的path值为blog/2019/summer
  3. customPath选择年月,则实际的path值为blog/2019/01

$customPath为占位符。

配置Typora

image-20210113174927219

参考:

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/

猜你喜欢

转载自blog.csdn.net/demon7552003/article/details/112587311