Skip to content

Commit

Permalink
chore: update readme (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuciNyan committed May 2, 2024
1 parent b794e29 commit e595400
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ The `dithering=true` configuration is a standalone setting that can be applied t

![Journey](./packages/pixel-profile/test/__image_snapshots__/theme-test-ts-packages-pixel-profile-test-theme-test-ts-theme-render-card-with-journey-theme-and-dithering-1-snap.png)
```html
https://pixel-profile.vercel.app/api/github-stats?username=<username>&theme=journey&pixelate_avatar=false&dithering=true
https://pixel-profile.vercel.app/api/github-stats?username=<username>&theme=journey&dithering=true&hide=avatar
```

#### 2. Road trip without pixelated avatar.
Expand Down Expand Up @@ -109,6 +109,7 @@ https://pixel-profile.vercel.app/api/github-stats?username=<username>&theme=lax
| `screen_effect` | Enable curved screen effect | `false` |
| `username` | GitHub username | '' |
| `theme` | Check out the built-in themes below | '' |
| `dithering` | Rendered the image using a 256-color palette with dithering | `false` |


### Hiding individual stats
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/pixel-profile/test/theme.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe('Theme', () => {
it('Render card with journey theme and dithering', async () => {
const png = await renderStats(
{ ...stats, avatarUrl: DARK_GREEN_AVATAR },
{ theme: 'journey', pixelateAvatar: false, dithering: true }
{ theme: 'journey', pixelateAvatar: false, dithering: true, hiddenStatsKeys: ['avatar'] }
)
expect(png).toMatchImageSnapshot()
})
Expand Down

0 comments on commit e595400

Please sign in to comment.