chore: fix demo
This commit is contained in:
parent
44a83ff76b
commit
ade0a33dec
3 changed files with 11 additions and 8 deletions
|
|
@ -3,6 +3,6 @@ import { defineConfig } from 'astro/config'
|
|||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
image: {
|
||||
// domains: ['github-readme-stats.vercel.app'],
|
||||
domains: ['github-readme-stats.vercel.app'],
|
||||
},
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "@example/minimal",
|
||||
"name": "demo",
|
||||
"type": "module",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
|
|
@ -11,11 +11,14 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^2.0.6"
|
||||
"astro": "^6",
|
||||
"astro-github-stats": "workspace:*"
|
||||
},
|
||||
"description": "``` npm create astro@latest -- --template minimal ```",
|
||||
"main": "index.js",
|
||||
"devDependencies": {},
|
||||
"devDependencies": {
|
||||
"sharp": "^0.35.1"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/ayoayco/astro-github-stats.git"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
import GithubStats from '../../../'
|
||||
import GithubStats from 'astro-github-stats'
|
||||
---
|
||||
|
||||
<html lang="en">
|
||||
|
|
@ -14,13 +14,13 @@ import GithubStats from '../../../'
|
|||
<h1>Astro Github Stats</h1>
|
||||
|
||||
<h3>Account Stats</h3>
|
||||
<GithubStats username="ayoayco" />
|
||||
<GithubStats username="ayo-run" />
|
||||
|
||||
<h3>Account Stats</h3>
|
||||
<GithubStats username="ayoayco" showIcons={true} />
|
||||
<GithubStats username="ayo-run" showIcons={true} />
|
||||
|
||||
<h3>Account Top Languages</h3>
|
||||
<GithubStats username="ayoayco" topLanguages={true} />
|
||||
<GithubStats username="ayo-run" topLanguages={true} />
|
||||
|
||||
<h3>Repository Card</h3>
|
||||
<GithubStats username="withastro" repo="astro" />
|
||||
|
|
|
|||
Loading…
Reference in a new issue