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