前期准备:

  1. 安装Typora

    安装链接:https://typora.io/

  2. 安装PicGo

    安装链接:https://github.com/Molunerfinn/PicGo/releases

  3. gitee账号一个

    注册链接:https://gitee.com/

搭建环境:

  1. PicGO配置
  2. gitee创建仓库(公共仓库)
  3. 获取gitee token

PicGO配置:

  1. Gitee图床安装:

Typora+PicGo+码云Gitee搭建本地博客环境

  1. Gitee图床设置:

Typora+PicGo+码云Gitee搭建本地博客环境

gitee创建仓库:

  1. 创建仓库:

    Typora+PicGo+码云Gitee搭建本地博客环境

    Typora+PicGo+码云Gitee搭建本地博客环境

获取gitee token:

PicG上传图片需要通过gitee的API,因此要获取token授权,获取方式如下:

顶部右上角,选择设置:

Typora+PicGo+码云Gitee搭建本地博客环境

Typora+PicGo+码云Gitee搭建本地博客环境

勾选相关权限:

Typora+PicGo+码云Gitee搭建本地博客环境

最后生成令牌,需要马上复制保存,因为之后就不会再出现这个token了。

Typora+PicGo+码云Gitee搭建本地博客环境

Typora+PicGo+码云Gitee搭建本地博客环境

将保存的token填写到2.图床设置中。

Typora配置PicGo:

  1. Ctrl+, /文件->偏好设置;打开Typora偏好设置,配置picgo相关项即可

    Typora+PicGo+码云Gitee搭建本地博客环境

  2. 可点击“图片验证”,进行上传测试如下:

    Typora+PicGo+码云Gitee搭建本地博客环境

  3. 上传完后,图片已经是gitee的图片地址,下选自《MARK_MMXX》作者。

    Typora+PicGo+码云Gitee搭建本地博客环境

相关文章:

  • 2021-05-26
  • 2021-05-01
  • 2021-12-02
  • 2021-12-01
  • 2021-04-15
  • 2021-12-30
  • 2021-04-16
  • 2022-01-09
猜你喜欢
  • 2021-11-30
  • 2021-09-25
  • 2021-04-10
  • 2022-03-01
  • 2021-08-22
  • 2021-07-25
  • 2021-11-18
相关资源
相似解决方案