当前位置:   article > 正文

Typora+picgo-core+gitee配置图床_typora picgo-core gitee

typora picgo-core gitee

Typora+picgo-core+gitee配置图床

网上Typora+picgo-core+github的教程很多,本博客假设typora已经设置好基于github的配置

首先安装nodejs,在官网上下载安装

安装好后进入picgo目录(windows下一般在\c\User\<your_user_name>\AppData\Roaming\Typora\picgo\win64)

输入安装picgo-gitee的插件

./picgo install gitee-uploader
  • 1

用如下指令设置gitee

./picgo set uploader
  • 1

注意gitee仓库要设置成公开的,输入的token一定要保证正确

修改完成后进入picgo配置json查看,把picBed中的current设置成gitee,总体应该如下所示

{
  "picBed": {
    "current": "gitee",
    "github": {
      "repo": "your repo",
      "branch": "main",
      "token": "your token",
      "path": "img/",
      "customUrl": "https://cdn.jsdelivr.net/gh/<your repo>"
    },
    "gitee": {
      "repo": "your repo",
      "branch": "master",
      "token": "your token",
      "path": "",
      "customPath": "default",
      "customUrl": ""
    }
  },
  "picgoPlugins": {
    "picgo-plugin-gitee-uploader": true
  },
  "picgo-plugin-gitee-uploader": {
    "lastSync": "2023-09-18 12:55:51"
  }
}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号