Typora+picgo-core+gitee配置图床

Typora+picgo-core+gitee配置图床

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

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

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

输入安装picgo-gitee的插件

./picgo install gitee-uploader

用如下指令设置gitee

./picgo set uploader

注意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/"
    },
    "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"
  }
}

你可能感兴趣的:(gitee)