chore: update readme and package info
This commit is contained in:
parent
f06a593856
commit
88df4ec61e
2 changed files with 27 additions and 10 deletions
35
README.md
35
README.md
|
@ -1,4 +1,5 @@
|
||||||
# Astro GitHub Stats ✨
|
# Astro GitHub Stats ✨
|
||||||
|
|
||||||
[](https://www.npmjs.com/package/astro-github-stats)
|
[](https://www.npmjs.com/package/astro-github-stats)
|
||||||
[](https://www.npmjs.com/package/astro-github-stats)
|
[](https://www.npmjs.com/package/astro-github-stats)
|
||||||
[](https://www.npmjs.com/package/astro-github-stats)
|
[](https://www.npmjs.com/package/astro-github-stats)
|
||||||
|
@ -6,32 +7,48 @@
|
||||||
|
|
||||||
Embed GitHub stats on your [Astro](https://astro.build) page ✨
|
Embed GitHub stats on your [Astro](https://astro.build) page ✨
|
||||||
|
|
||||||

|
Features:
|
||||||
|
|
||||||
**Demo:** [https://ayco.io/showcase/astro-github-stats](https://ayco.io/showcase/astro-github-stats)
|
1. Embed GitHub Account stats
|
||||||
|
1. Embed GitHub Repositories info with stars
|
||||||
|
|
||||||
*Please report issues found or suggestions in the [project issues page](https://github.com/ayoayco/astro-github-stats/issues)*
|
# Insatllation
|
||||||
|
|
||||||
### Usage
|
|
||||||
Install on your Astro project:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
npm i astro-github-stats
|
npm i astro-github-stats
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# Usage
|
||||||
|
|
||||||
Then use on your Astro page:
|
Then use on your Astro page:
|
||||||
|
|
||||||
```astro
|
```astro
|
||||||
---
|
---
|
||||||
import GithubStats from 'astro-github-stats';
|
import GithubStats from 'astro-github-stats';
|
||||||
---
|
---
|
||||||
|
|
||||||
|
<!-- Add your account stats -->
|
||||||
<GithubStats username="ayoayco" />
|
<GithubStats username="ayoayco" />
|
||||||
|
|
||||||
|
<!-- Add a repo card with info and stars -->
|
||||||
|
<GithubStats username="withastro" repo="astro" />
|
||||||
```
|
```
|
||||||
|
|
||||||
### Future plans
|
# Screenshots
|
||||||
|
|
||||||
|
Example Account Card:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Example Repo Card:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
# Future plans
|
||||||
|
|
||||||
Initially this is a wrapper for [github-readme-stats](https://github.com/anuraghazra/github-readme-stats) supporting the basic github account stats card. Other features can be supported later, depending on demand:
|
Initially this is a wrapper for [github-readme-stats](https://github.com/anuraghazra/github-readme-stats) supporting the basic github account stats card. Other features can be supported later, depending on demand:
|
||||||
1. repo cards
|
|
||||||
1. themes
|
1. themes
|
||||||
1. account top languages
|
1. account top languages
|
||||||
|
|
||||||
*Please report issues found or suggestions in the [project issues page](https://github.com/ayoayco/astro-github-stats/issues)*
|
_Please report issues found or suggestions in the [project issues page](https://github.com/ayoayco/astro-github-stats/issues)_
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "astro-github-stats",
|
"name": "astro-github-stats",
|
||||||
"description": "Embed github stats in your Astro page",
|
"description": "Embed GitHub stats in your Astro page ✨",
|
||||||
"repository": "https://github.com/ayoayco/astro-github-stats",
|
"repository": "https://github.com/ayoayco/astro-github-stats",
|
||||||
"homepage": "https://ayco.io/showcase/astro-github-stats",
|
"homepage": "https://ayco.io/showcase/astro-github-stats",
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
|
|
Loading…
Reference in a new issue