Typora圖片自動上傳(PicGo + Gitee)

Typora圖片自動上傳(PicGo + Gitee)

創建碼雲的私人訪問令牌

image-20200430140142817

先保存着私人令牌,後面會用到

配置PicGo

image-20200430133800210

  1. 選擇PicGo-Core(command line)

  2. 點擊下載或更新

  3. 打開配置文件

    編輯內容

    {
      "picBed": {
        "current": "gitee",
        "uploader": "gitee",
        "gitee": {
          "branch": "master",
          "customPath": "yearMonth",
          "customUrl": "",
          "path": "填寫倉庫中的文件夾/",
          "repo": "用戶名/倉庫",
          "token": "自己倉庫的私人Access Token"
        },
        "transformer": "path"
      },
      "picgoPlugins": {
        "picgo-plugin-gitee-uploader": true,
        "picgo-plugin-github-plus": true
      },
      "picgo-plugin-gitee-uploader": {
        "lastSync": "2020-04-30 01:41:13"
      },
      "picgo-plugin-github-plus": {
        "lastSync": "2020-04-07 11:09:08"
      }
    }
    

    image-20200430140530780

  4. 驗證上傳

    先安裝gitee-uploader上傳插件(需安裝node.js)

    進入到C:\Users\AlanLee\AppData\Roaming\Typora\picgo\win64

    執行

    .\picgo.exe install gitee-uploader
    

    image-20200430135713400

    最後點擊驗證圖片上傳

使用

image-20200430140754570

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章