Code Monkey home page Code Monkey logo

picbed4mweb's Introduction

GitHub PicBed For MWeb

MWeb 是 macOS/iOS 上的一款优秀的 MarkDown 编辑器,其内嵌的图片上传功能方便快捷,目前已经支持许多知名图床和对象存储,但并未适配 GitHub 仓库 + JsDelivr CDN 这种图床方案。

万幸的是,MWeb 提供了自定义图床的功能,通过本项目的接口作为桥接器,MWeb 可以十分优雅地上传图片至 GitHub 仓库,并自动插入至 MarkDown 中。

使用方法

本项目可以快速部署至 Vercel 上。

  1. Fork 本项目
  2. 在 Vercel 中 Import 本项目
  3. 在 Vercel 添加环境变量 REPO:存放图片 GitHub 仓库名(如 hans362/image-hosting) TOKEN:GitHub Personal Access Token(自己找一找在哪里生成,只需要给 Repo 权限即可) SECRET:通信密钥(自己设定一个,后面要用到)
  4. 重新触发一次 Vercel Build
  5. 记录下 Vercel 分配的域名
  6. 在 MWeb 中添加自定义图床,配置如下图:
  7. Enjoy~

关于合规性

目前关于是否允许将 GitHub + JsDelivr 用作图床尚有争议,个人认为作为独立开发者在不滥用的前提下将其用作图床可以接受,但不认可将其用作个人网盘或存储大量大型文件的行为

感谢❤️

  1. gaop-0561/PicBed4MWeb
  2. sinaPicHostingApi
  3. 利用 github 和 python3 以及 MWeb 打造自己的博文图床

picbed4mweb's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar hans362 avatar petter-gao avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.