Compare commits

...

9 commits
v0.7.4 ... main

6 changed files with 23 additions and 4 deletions

11
.build.yml Normal file
View file

@ -0,0 +1,11 @@
image: alpine/edge
secrets:
- bbfcb6dc-7c4a-42ee-a11a-022f0339a133
environment:
REPO: astro-github-stats
GH_USER: ayoayco
tasks:
- push-mirror: |
cd ~/"${REPO}"
git config --global credential.helper store
git push --mirror "https://github.com/${GH_USER}/${REPO}"

View file

@ -1,3 +1,6 @@
> [!Note]
> Project moved to [SourceHut](https://git.sr.ht/~ayoayco/astro-github-stats)
# Astro GitHub Stats ✨
[![npm](https://img.shields.io/npm/v/astro-github-stats)](https://www.npmjs.com/package/astro-github-stats)

View file

@ -1,4 +1,8 @@
import { defineConfig } from 'astro/config'
// https://astro.build/config
export default defineConfig({})
export default defineConfig({
image: {
// domains: ['github-readme-stats.vercel.app'],
},
})

View file

@ -3,7 +3,7 @@
"description": "Embed GitHub stats in your Astro page ✨",
"repository": "https://github.com/ayoayco/astro-github-stats",
"homepage": "https://ayco.io/showcase/astro-github-stats",
"version": "0.7.4",
"version": "0.8.0",
"author": {
"name": "Ayo Ayco",
"email": "ayo@ayco.io",

View file

@ -9,7 +9,7 @@ importers:
.:
dependencies:
astro:
specifier: ^5
specifier: '>=5.0.0'
version: 5.1.1(@types/node@22.10.2)(jiti@2.4.2)(rollup@4.29.1)(typescript@5.7.2)
devDependencies:
'@eslint/js':

View file

@ -1,4 +1,5 @@
---
import {Image} from 'astro:assets'
export interface Props {
username: string
topLanguages?: boolean
@ -25,4 +26,4 @@ if (topLanguages) {
alt = altText || alt
---
<img src={url} alt={alt} />
<Image inferSize={true} src={url} alt={alt} />