spress/github-metadata-plugin

存储库的GitHub元数据

安装: 37

依赖项: 0

建议者: 0

安全性: 0

星级: 1

关注者: 3

分支: 0

类型:spress-plugin

v2.0.0 2016-01-02 12:14 UTC

This package is auto-updated.

Last update: 2024-09-13 04:14:11 UTC


README

Spress 2 ready

访问 site.github 以获取存储库的元数据。

要求:

  • Spress >=2.0.0
  • PHP cURL 扩展。

如果您正在使用 Spress 1.x,请访问插件的 1.0.0 版本。

如何安装?

转到您的网站文件夹,并输入以下命令

spress add:plugin spress/github-metadata-plugin

如何使用?

将以下内容添加到您的 config.yml

#Your repository name:
repository: "spress/spress"

#### 访问存储库的元数据

  • 星级数量: site.github.stargazers_count
  • 关注者数量: site.gihub.watchers_count
  • 分支数量: site.github.forks_count

Github repos API

其他元数据键

  • name
  • full_name
  • description
  • fork
  • html_url
  • clone_url
  • git_url
  • ssh_url
  • mirror_url
  • homepage
  • size
  • default_branch
  • open_issues_count
  • has_issues
  • has_pages
  • has_downloads
  • pushed_at
  • created_at
  • updated_at
贡献者元数据

访问 site.github.contributors 以获取包含贡献者元数据的数组。

Github repos API

  • login
  • avatar_url
  • html_url
  • type
  • contributions
所有者元数据

访问 site.github.owner 以获取所有者元数据。

  • login
  • avatar_url
  • gravatar_id
  • html_url
组织元数据

访问 site.github.organization 以获取组织元数据。

  • login
  • avatar_url
  • html_url
源元数据

访问 site.github.source 以获取源元数据。

  • name
  • full_name
  • description
  • html_url
  • clone_url
  • git_url
  • ssh_url
  • svn_url
  • mirror_url
  • homepage
  • forks_count
  • stargazers_count
  • watchers_count
  • size
  • default_branch
  • open_issues_count
  • has_issues
  • has_wiki
  • has_pages
  • has_downloads
  • pushed_at
  • created_at
  • updated_at

许可证

此插件作为开源软件,根据MIT 许可证的条款提供。