Git Product home page Git Product logo

issues-api's Introduction

issues-api

一个通过解析 issues 中第一段 JSON 代码块并生成 API 加速访问的工具。解决了直接调用 GitHub API 频率有限制以及速度过慢的问题。

测试地址: https://issues-api.vercel.app/v1/xaoxuu

使用方法

  1. 复制 或者 fork 本仓库
  2. 修改 _config.yml 中的配置。

测试是否配置成功

  1. 新建 issue 并按照模板要求填写提交。
  2. 等待 Action 运行完毕,检查 generator/output/v1/data.json 文件内容是否正确,如果正确则表示已经配置成功。

前端使用方法

{% friends repo:xaoxuu/friends %}
{% sites repo:xaoxuu/hexo-theme-stellar-examples %}

目前已经适配的博客有:

如果您的博客主题(不仅限于 Hexo 主题)也适配了,欢迎提 PR 修改此 README 文件。博客主题适配思路:通过调用 API 得到数据,解析并生成 HTML 代码,参考:

如果需要自己部署 Vercel API

Deploy to Vercel

然后访问 https://issues-api.vercel.app/v1/yourname

如果仓库为其他名称,例如 examples,那么需要指定仓库名:

https://issues-api.vercel.app/v1/yourname/examples

如果仓库默认分支不是 main,那么需要指定分支:

https://issues-api.vercel.app/v1/yourname/examples/master

前端使用方法示例:

{% friends repo:yourname/examples api:https://issues-api.vercel.app/v1/yourname/examples %}

感谢

非常感谢 @Zfour 的 python 代码和耐心指导! 文章链接:《教程:github/gitee issues的友链信息自动生成json及api调用》

issues-api's People

Contributors

colsrch avatar xaoxuu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

issues-api's Issues

ceshi

{
    "title": "tst",
    "url": "tst",
    "avatar": "tst",
    "screenshot": "tst",
    "description": "tst",
    "keywords": "tst"
}

我的友链页: https://

测试

{
    "title": "",
    "url": "",
    "avatar": "",
    "screenshot": "",
    "description": "",
    "keywords": ""
}

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.