Skip to content

Commit d0d9219

Browse files
pull[bot]github-actions[bot]rickstaaCaedenPHfabianocouto
authored
[pull] master from anuraghazra:master (#2)
* refactor: update languages JSON (anuraghazra#2596) Co-authored-by: rickstaa <[email protected]> * Add format stats option (anuraghazra#2155) * feat: added `format_stats` option (anuraghazra#2128) * refactor: change `format_stats` to `short_values` (anuraghazra#2128) * test: create shorten values test (anuraghazra#2128) * Update readme.md Co-authored-by: Rick Staa <[email protected]> * refactor: rename ``short_values`` to ``number_format`` * Update readme.md Co-authored-by: Rick Staa <[email protected]> * Update src/cards/stats-card.js Co-authored-by: Rick Staa <[email protected]> * refactor: format codebase --------- Co-authored-by: Rick Staa <[email protected]> * add github_dark_dimmed theme (anuraghazra#2594) * feat(theme): add github_dark_dimmed theme * feat(theme): change github_dark_dimmed icon color * contrast ratio adjustment contrast ratio adjustment on github_dark_dimmed theme * feat(theme): readme preview * feat(theme): github themes next to each other * github themes next to each other * feat(RankIcon): add rank_icon option (anuraghazra#2628) * feat(theme): add github_dark_dimmed theme * feat(theme): change github_dark_dimmed icon color * contrast ratio adjustment contrast ratio adjustment on github_dark_dimmed theme * feat(theme): readme preview * feat(theme): github themes next to each other * github themes next to each other * feat(RankIcon): add rank icon option * feat(RankIcon): extract rankIcon to icons file * feat(RankIcon): update readme * feat(RankIcon): test coverage * Update readme.md Co-authored-by: Rick Staa <[email protected]> --------- Co-authored-by: Rick Staa <[email protected]> * Updated the custom error there was a Typo. (anuraghazra#2618) "Something went while trying to retrieve the stats data using the GraphQL API." -> "Something went wrong while trying to retrieve the stats data using the GraphQL API." * Fix typos inside wakatime test name (anuraghazra#2617) * removed redundant comparison (anuraghazra#957) * dev (anuraghazra#1782) * fix path to powered by vercel image (anuraghazra#1792) * Synchonize cache seconds min value inside docs translations with main readme (anuraghazra#2616) * New top language algorithm implementation (anuraghazra#1732) * Reduced vercel maxDuration * Implemented new algorithm for Top Langs * Revert "Reduced vercel maxDuration" This reverts commit b0bc626. * Added documentation * Fixed broken implementation * Update fetchTopLanguages.test.js Changed tests * Now uses the general formula The parameters p and q can be set by the user. * Updated tests and added new test * Added new test New test for order by repo count. * Updated documentation Added explanation and examples for new options. * Updated documentation This was overwritten in the merge commit. * docs: improve docs and fix tests * Renamed parameters Renamed `p` and `q` to `size_weight` and `count_weight`, respectively. * Updated the documentation Changes introduced in f2516d6 --------- Co-authored-by: rickstaa <[email protected]> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: rickstaa <[email protected]> Co-authored-by: Caeden Perelli-Harris <[email protected]> Co-authored-by: Rick Staa <[email protected]> Co-authored-by: Fabiano Couto <[email protected]> Co-authored-by: LOKESH SINGH <[email protected]> Co-authored-by: Alexandr Garbuzov <[email protected]> Co-authored-by: kitswas <[email protected]>
1 parent ea38523 commit d0d9219

25 files changed

+232
-53
lines changed

Diff for: api/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ export default async (req, res) => {
3535
locale,
3636
disable_animations,
3737
border_radius,
38+
number_format,
3839
border_color,
40+
rank_icon,
3941
} = req.query;
4042
res.setHeader("Content-Type", "image/svg+xml");
4143

@@ -88,8 +90,10 @@ export default async (req, res) => {
8890
custom_title,
8991
border_radius,
9092
border_color,
93+
number_format,
9194
locale: locale ? locale.toLowerCase() : null,
9295
disable_animations: parseBoolean(disable_animations),
96+
rank_icon,
9397
}),
9498
);
9599
} catch (err) {

Diff for: api/top-langs.js

+4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ export default async (req, res) => {
2525
layout,
2626
langs_count,
2727
exclude_repo,
28+
size_weight,
29+
count_weight,
2830
custom_title,
2931
locale,
3032
border_radius,
@@ -46,6 +48,8 @@ export default async (req, res) => {
4648
const topLangs = await fetchTopLanguages(
4749
username,
4850
parseArray(exclude_repo),
51+
size_weight,
52+
count_weight,
4953
);
5054

5155
const cacheSeconds = clampValue(

Diff for: docs/readme_cn.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
<a href="/docs/readme_nl.md">Nederlands</a>
5454
.
5555
<a href="/docs/readme_np.md">नेपाली</a>
56+
.
57+
<a href="/docs/readme_tr.md">Türkçe</a>
5658
</p>
5759
</p>
5860
<p align="center">喜欢这个项目?请考虑<a href="https://www.paypal.me/anuraghazra">捐赠</a>来帮助它完善!
@@ -138,7 +140,7 @@ dark, radical, merko, gruvbox, tokyonight, onedark, cobalt, synthwave, highcontr
138140
- `bg_color` - 卡片背景颜色 _(十六进制色码)_ **或者**_angle,start,end_ 的形式渐变
139141
- `hide_border` - 隐藏卡的边框 _(布尔值)_
140142
- `theme` - 主题名称,从[所有可用主题](../themes/README.md)中选择
141-
- `cache_seconds` - 手动设置缓存头 _(最小值: 1800,最大值: 86400)_
143+
- `cache_seconds` - 手动设置缓存头 _(最小值: 14400,最大值: 86400)_
142144
- `locale` - 在卡片中设置语言 _(例如 cn, de, es, 等等)_
143145

144146
##### bg_color 渐变

Diff for: docs/readme_de.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@
5454
<a href="/docs/readme_nl.md">Nederlands</a>
5555
.
5656
<a href="/docs/readme_np.md">नेपाली</a>
57+
.
58+
<a href="/docs/readme_tr.md">Türkçe</a>
5759
</p>
5860
</p>
5961
<p align="center">Du magst das Projekt? Wie wäre es mit einer kleinen <a href="https://www.paypal.me/anuraghazra">Spende</a> um es weiterhin am Leben zu erhalten?
@@ -128,7 +130,7 @@ Du kannst das Erscheinungsbild deiner `Stats Card` oder `Repo Card`, mithilfe vo
128130
- `bg_color` - Hintergrundfarbe _(hex color)_ **oder** ein Farbverlauf in der Form von _winkel,start,ende_
129131
- `hide_border` - Blendet den Rand der Karte aus _(Boolean)_
130132
- `theme` - Name des Erscheinungsbildes/Themes [alle verfügbaren Themes](../themes/README.md)
131-
- `cache_seconds` - manuelles festlegen der Cachezeiten _(min: 1800, max: 86400)_
133+
- `cache_seconds` - manuelles festlegen der Cachezeiten _(min: 14400, max: 86400)_
132134
- `locale` - Stellen Sie die Sprache auf der Karte ein _(z.B. cn, de, es, etc.)_
133135

134136
##### Farbverlauf in bg_color

Diff for: docs/readme_es.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Puedes personalizar el aspecto de tu `Tarjeta de Estadísticas` o `Tarjeta de Re
142142
- `bg_color` - Color de fondo _(hex color)_
143143
- `hide_border` - Oculta el borde de la tarjeta _(booleano)_
144144
- `theme` - Nombre del tema, elige uno de [todos los temas disponible ](../themes/README.md)
145-
- `cache_seconds` - Cache _(min: 1800, max: 86400)_
145+
- `cache_seconds` - Cache _(min: 14400, max: 86400)_
146146
- `locale` - configurar el idioma en la tarjeta _(p.ej. cn, de, es, etc.)_
147147

148148
##### Gradiente en `bg_color`

Diff for: docs/readme_fr.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
<a href="/docs/readme_nl.md">Nederlands</a>
5454
.
5555
<a href="/docs/readme_np.md">नेपाली</a>
56+
.
57+
<a href="/docs/readme_tr.md">Türkçe</a>
5658
</p>
5759
</p>
5860
<p align="center">Vous aimez ce projet? Pensez <a href="https://www.paypal.me/anuraghazra">à faire un don</a> pour l'améliorer!
@@ -138,7 +140,7 @@ Vous pouvez personnaliser l'apparence de votre `Carte des stats` ou `Carte de d
138140
- `bg_color` - Couleur du fond de la carte _(hex color)_ **ou** un gradiant de la forme _angle,start,end_
139141
- `hide_border` - Cache la bordure de la carte _(booléen)_
140142
- `theme` - Nom du thème, parmis [tous les thèmes disponibles](../themes/README.md)
141-
- `cache_seconds` - Paramétrer le cache manuellement _(min: 1800, max: 86400)_
143+
- `cache_seconds` - Paramétrer le cache manuellement _(min: 14400, max: 86400)_
142144
- `locale` - définir la langue de la carte _(par exemple. cn, de, es, etc.)_
143145

144146
##### Gradient in bg_color

Diff for: docs/readme_it.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
<a href="/docs/readme_nl.md">Nederlands</a>
5454
.
5555
<a href="/docs/readme_np.md">नेपाली</a>
56+
.
57+
<a href="/docs/readme_tr.md">Türkçe</a>
5658
</p>
5759
</p>
5860
<p align="center">Se ti piace questo progetto, considera la possibilità di <a href="https://www.paypal.me/anuraghazra">donare</a> per aiutare a renderlo migliore!
@@ -138,7 +140,7 @@ Puoi personalizzare l'aspetto delle tue `Stats Card` o delle `Repo Card` in qual
138140
- `bg_color` - Colore dello sfondo _(in esadecimale)_ **oppure** un gradiente nella forma _angolo,inizio,fine_
139141
- `hide_border` - Nasconde il bordo della carta _(booleano)_
140142
- `theme` - Nome del tema, dai un'occhiata a [tutti i temi disponibili](../themes/README.md)
141-
- `cache_seconds` - Specifica manualmente il valore di cache, in secondi _(min: 1800, max: 86400)_
143+
- `cache_seconds` - Specifica manualmente il valore di cache, in secondi _(min: 14400, max: 86400)_
142144
- `locale` - Impostare la lingua nella scheda _(per esempio. cn, de, es, eccetera.)_
143145

144146
##### Gradiente nello sfondo

Diff for: docs/readme_ja.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
<a href="/docs/readme_nl.md">Nederlands</a>
5454
.
5555
<a href="/docs/readme_np.md">नेपाली</a>
56+
.
57+
<a href="/docs/readme_tr.md">Türkçe</a>
5658
</p>
5759
</p>
5860
<p align="center">このプロジェクトを気に入っていただけましたか?<br>もしよろしければ、プロジェクトのさらなる改善のために<a href="https://www.paypal.me/anuraghazra">寄付</a>を検討して頂けると嬉しいです!</p>
@@ -139,7 +141,7 @@ dark, radical, merko, gruvbox, tokyonight, onedark, cobalt, synthwave, highcontr
139141
- `bg_color` - 背景の色 _(16 進数カラーコード)_ **または** _angle,start,end_ の形式でグラデーションを指定することも可
140142
- `hide_border` - カードの境界線を非表示にします _(ブール値)_
141143
- `theme` - [使用可能なテーマ一覧](../themes/README.md) から選んだテーマ名
142-
- `cache_seconds` - キャッシュ時間の秒数 _(最小値: 1800, 最大値: 86400)_
144+
- `cache_seconds` - キャッシュ時間の秒数 _(最小値: 14400, 最大値: 86400)_
143145
- `locale` - カードに言語を設定する _(例えば cn, de, es, 等)_
144146

145147
##### bg_color の グラデーション指定

Diff for: docs/readme_kr.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
<a href="/docs/readme_nl.md">Nederlands</a>
5454
.
5555
<a href="/docs/readme_np.md">नेपाली</a>
56+
.
57+
<a href="/docs/readme_tr.md">Türkçe</a>
5658
</p>
5759
</p>
5860
<p align="center">기능들이 마음에 드시나요? 괜찮으시다면, 서비스 개선을 위해 <a href="https://www.paypal.me/anuraghazra">기부</a>를 고려해주세요!
@@ -149,7 +151,7 @@ dark, radical, merko, gruvbox, tokyonight, onedark, cobalt, synthwave, highcontr
149151
- `bg_color` - 카드의 배경 색상 _(hex color)_ **혹은** 다음 양식으로 그라데이션 주기 _angle,start,end_
150152
- `hide_border` - 카드의 테두리 표시 여부 _(boolean)_
151153
- `theme` - 테마의 이름, [사용 가능한 모든 테마](../themes/README.md) 에서 선택
152-
- `cache_seconds` - 수동으로 캐시 헤더 설정 _(min: 1800, max: 86400)_
154+
- `cache_seconds` - 수동으로 캐시 헤더 설정 _(min: 14400, max: 86400)_
153155
- `locale` - 카드에 표시할 언어 _(e.g. kr, cn, de, es, etc.)_
154156

155157
##### 배경에 그라데이션 주기

Diff for: docs/readme_nl.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
<a href="/docs/readme_nl.md">Nederlands</a>
5454
.
5555
<a href="/docs/readme_np.md">नेपाली</a>
56+
.
57+
<a href="/docs/readme_tr.md">Türkçe</a>
5658
</p>
5759
</p>
5860
<p align="center">Bevalt het project? <a href="https://www.paypal.me/anuraghazra">Doneer</a> om het te verbeteren!
@@ -142,7 +144,7 @@ Je kan het uiterlijk van je `Statistieken kaart` of `Repo kaart` aanpassen hoe j
142144
- `bg_color` - Achtergrond kleur van de kaart _(hex kleur)_ **of** een verloop van kleuren in het formaat van _graden,start,einde_
143145
- `hide_border` - Verbergt de rand van de kaart _(boolean)_
144146
- `theme` - Naam van het thema, kies uit [alle beschikbare thema\'s](../themes/README.md)
145-
- `cache_seconds` - Stel de cache header handmatig in _(min: 1800, max: 86400)_
147+
- `cache_seconds` - Stel de cache header handmatig in _(min: 14400, max: 86400)_
146148
- `locale` - Stel taal van de kaart in _(e.g. cn, de, es, etc.)_
147149

148150
##### Kleurenverloop in bg_color (achtergrond kleur):

Diff for: docs/readme_np.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,12 @@
4949
<a href="/docs/readme_it.md">Italiano</a>
5050
·
5151
<a href="/docs/readme_kr.md">한국어</a>
52+
.
53+
<a href="/docs/readme_nl.md">Nederlands</a>
5254
·
5355
<a href="/docs/readme_np.md">नेपाली</a>
56+
.
57+
<a href="/docs/readme_tr.md">Türkçe</a>
5458
</p>
5559
</p>
5660
<p align="center">परियोजना मनपर्‍यो? तपाईं मद्दत गर्न सक्नुहुन्छ <a href="https://www.paypal.me/anuraghazra">यो परियोजना</a> बढ्न
@@ -138,7 +142,7 @@ dark, radical, merko, gruvbox, tokyonight, onedark, cobalt, synthwave, highcontr
138142
- `bg_color` - Card's background color _(hex color)_ **or** a gradient in the form of _angle,start,end_
139143
- `hide_border` - Hides the card's border _(boolean)_
140144
- `theme` - name of the theme, choose from [all available themes](./themes/README.md)
141-
- `cache_seconds` - set the cache header manually _(min: 1800, max: 86400)_
145+
- `cache_seconds` - set the cache header manually _(min: 14400, max: 86400)_
142146
- `locale` - set the language in the card _(e.g. cn, de, es, etc.)_
143147

144148
##### Gradient in bg_color

Diff for: docs/readme_pt-BR.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ Personalize a aparência do seu `Stats Card` ou `Repo Card` da maneira que desej
141141
- `bg_color` - Cor de fundo do cartão _(hex color)_
142142
- `hide_border` - Esconde a borda do cartão _(boleano)_
143143
- `theme` - Nome do tema, escolha em [todos os temas disponíveis](../themes/README.md)
144-
- `cache_seconds` - Defina o cabeçalho do cache manualmente _(min: 1800, max: 86400)_
144+
- `cache_seconds` - Defina o cabeçalho do cache manualmente _(min: 14400, max: 86400)_
145145
- `locale` - defina o idioma no cartão _(por exemplo. cn, de, es, etc.)_
146146

147147
> Nota sobre o cache: Cartões de repositório tem um cache padrão de 30 minutos (1800 segundos), se o número a contagem de forks e contagem de estrelas é menor que 1 mil o padrão é 2 horas (7200 segundos). Note também que o cache é limitado a um mínimo de 30 minutos e um máximo de 24 horas.

Diff for: docs/readme_tr.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ dark, radical, merko, gruvbox, tokyonight, onedark, cobalt, synthwave, highcontr
143143
- `bg_color` - Kartın arkaplan rengi _(hex color / hex rengi)_ **ya da** gradient şeklinde _açı,başlangıç,bitiş_
144144
- `hide_border` - Kartın çerçevelerini gizler _(boolean)_
145145
- `theme` - Temanın rengi [tüm temalar](./themes/README.md)
146-
- `cache_seconds` - Manuel olarak cache'i belirleyebilirsiniz _(en az: 1800, en fazla: 86400)_
146+
- `cache_seconds` - Manuel olarak cache'i belirleyebilirsiniz _(en az: 14400, en fazla: 86400)_
147147
- `locale` - Karttaki dili seçebilirsiniz _(örneğin; tr, cn, de, es, vb.)_
148148

149149
##### bg_color'da Gradient
@@ -409,7 +409,7 @@ Teşekkürler! :heart:
409409

410410
---
411411

412-
[![https://vercel.com?utm_source=github_readme_stats_team&utm_campaign=oss](./powered-by-vercel.svg)](https://vercel.com?utm_source=github_readme_stats_team&utm_campaign=oss)
412+
[![https://vercel.com?utm_source=github_readme_stats_team&utm_campaign=oss](../powered-by-vercel.svg)](https://vercel.com?utm_source=github_readme_stats_team&utm_campaign=oss)
413413

414414

415415
Katkılara açığız! <3

Diff for: readme.md

+40-14
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,10 @@ You can use [GitHub's theme context](https://github.blog/changelog/2021-11-24-sp
216216
##### Use GitHub's new media feature
217217

218218
You can use [GitHub's new media feature](https://github.blog/changelog/2022-05-19-specify-theme-context-for-images-in-markdown-beta/) in HTML to specify whether to display images for light or dark themes. This is done using the HTML `<picture>` element in combination with the `prefers-color-scheme` media feature.
219-
219+
220220
```html
221221
<picture>
222-
<source
222+
<source
223223
srcset="https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=dark"
224224
media="(prefers-color-scheme: dark)"
225225
/>
@@ -235,7 +235,7 @@ You can use [GitHub's new media feature](https://github.blog/changelog/2022-05-1
235235
<summary>:eyes: Show example</summary>
236236

237237
<picture>
238-
<source
238+
<source
239239
srcset="https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=dark"
240240
media="(prefers-color-scheme: dark)"
241241
/>
@@ -260,7 +260,7 @@ You can customize the appearance of your `Stats Card` or `Repo Card` however you
260260
- `border_color` - Card's border color _(hex color)_. Default: `e4e2e2` (Does not apply when `hide_border` is enabled).
261261
- `bg_color` - Card's background color _(hex color)_ **or** a gradient in the form of _angle,start,end_. Default: `fffefe`
262262
- `hide_border` - Hides the card's border _(boolean)_. Default: `false`
263-
- `theme` - name of the theme, choose from [all available themes](./themes/README.md). Default: `default` theme.
263+
- `theme` - name of the theme, choose from [all available themes](./themes/README.md). Default: `default` theme.
264264
- `cache_seconds` - set the cache header manually _(min: 14400, max: 86400)_. Default: `14400 seconds (4 hours)`.
265265
- `locale` - set the language in the card _(e.g. cn, de, es, etc.)_. Default: `en`.
266266
- `border_radius` - Corner rounding on the card. Default: `4.5`.
@@ -280,6 +280,7 @@ You can provide multiple comma-separated values in the bg_color option to render
280280
- `hide_title` - _(boolean)_. Default: `false`.
281281
- `card_width` - Set the card's width manually _(number)_. Default: `500px (approx.)`.
282282
- `hide_rank` - _(boolean)_ hides the rank and automatically resizes the card width. Default: `false`.
283+
- `rank_icon` - Shows alternative rank icon (i.e. `github` or `default`). Default: `default`.
283284
- `show_icons` - _(boolean)_. Default: `false`.
284285
- `include_all_commits` - Count total commits instead of just the current year commits _(boolean)_. Default: `false`.
285286
- `count_private` - Count private commits _(boolean)_. Default: `false`.
@@ -289,6 +290,7 @@ You can provide multiple comma-separated values in the bg_color option to render
289290
- `text_bold` - Use bold text _(boolean)_. Default: `true`.
290291
- `disable_animations` - Disables all animations in the card _(boolean)_. Default: `false`.
291292
- `ring_color` - Color of the rank circle _(hex color)_. Defaults to the theme ring color if it exists and otherwise the title color.
293+
- `number_format` - Switch between two available formats for displaying the card values `short` (i.e. `6.6k`) and `long` (i.e. `6626`). Default: `short`.
292294

293295
> **Note**
294296
> When hide_rank=`true`, the minimum card width is 270 px + the title length and padding.
@@ -308,6 +310,8 @@ You can provide multiple comma-separated values in the bg_color option to render
308310
- `custom_title` - Sets a custom title for the card _(string)_. Default `Most Used Languages`.
309311
- `disable_animations` - Disables all animations in the card _(boolean)_. Default: `false`.
310312
- `hide_progress` - It uses the compact layout option, hides percentages, and removes the bars. Default: `false`.
313+
- `size_weight` - Configures language stats algorithm _(number)_ (see [Language stats algorithm](#Language-stats-algorithm)), defaults to 1.
314+
- `count_weight` - Configures language stats algorithm _(number)_ (see [Language stats algorithm](#Language-stats-algorithm)), defaults to 0.
311315

312316
> **Warning**
313317
> Language names should be URI-escaped, as specified in [Percent Encoding](https://en.wikipedia.org/wiki/Percent-encoding)
@@ -357,7 +361,25 @@ Use [show_owner](#customization) variable to include the repo's owner username
357361
The top languages card shows a GitHub user's most frequently used top language.
358362

359363
> **Note**
360-
> Top Languages does not indicate my skill level or anything like that; it's a GitHub metric to determine which languages have the most code on GitHub. It is a new feature of github-readme-stats.
364+
> Top Languages does not indicate the user's skill level or anything like that; it's a GitHub metric to determine which languages have the most code on GitHub. It is a new feature of github-readme-stats.
365+
366+
### Language stats algorithm
367+
368+
We use the following algorithm to calculate the languages percentages on the language card:
369+
370+
```js
371+
ranking_index = (byte_count ^ size_weight) * (repo_count ^ count_weight)
372+
```
373+
374+
By default, only the byte count is used for determining the languages percentages shown on the language card (i.e. `size_weight=1` and `count_weight=0`). You can, however, use the `&size_weight=` and `&count_weight=` options to weight the language usage calculation. The values must be positive real numbers. [More details about the algorithm can be found here](https://github.com/anuraghazra/github-readme-stats/issues/1600#issuecomment-1046056305).
375+
376+
- `&size_weight=1&count_weight=0` - _(default)_ Orders by byte count.
377+
- `&size_weight=0.5&count_weight=0.5` - _(recommended)_ Uses both byte and repo count for ranking
378+
- `&size_weight=0&count_weight=1` - Orders by repo count
379+
380+
```md
381+
[![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&size_weight=0.5&count_weight=0.5)](https://github.com/anuraghazra/github-readme-stats)
382+
```
361383

362384
### Usage
363385

@@ -417,7 +439,7 @@ You can use the `&hide_progress=true` option to hide the percentages and the pro
417439

418440
[![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=compact)](https://github.com/anuraghazra/github-readme-stats)
419441

420-
- Hidden progress bars
442+
- Hidden progress bars
421443

422444
[![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&hide_progress=true)](https://github.com/anuraghazra/github-readme-stats)
423445

@@ -458,6 +480,10 @@ Change the `?username=` value to your [Wakatime](https://wakatime.com) username.
458480

459481
![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=issues&show_icons=true)
460482

483+
- Shows Github logo instead rank level
484+
485+
![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&rank_icon=github)
486+
461487
- Customize Border Color
462488

463489
![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&border_color=2e4058)
@@ -558,14 +584,14 @@ Since the GitHub API only allows 5k requests per hour, my `https://github-readme
558584
<details>
559585
<summary><b>:hammer_and_wrench: Step-by-step guide for deploying on other platforms</b></summary>
560586

561-
1. Fork or clone this repo as per your needs
562-
2. Add `express` to the dependencies section of `package.json`
563-
https://github.com/anuraghazra/github-readme-stats/blob/ba7c2f8b55eac8452e479c8bd38b044d204d0424/package.json#L54-L61
564-
3. Run `npm i` if needed (initial setup)
565-
4. Run `node express.js` to start the server, or set the entry point to `express.js` in `package.json` if you're deploying on a managed service
566-
https://github.com/anuraghazra/github-readme-stats/blob/ba7c2f8b55eac8452e479c8bd38b044d204d0424/package.json#L11
567-
5. You're done 🎉
568-
</details>
587+
1. Fork or clone this repo as per your needs
588+
2. Add `express` to the dependencies section of `package.json`
589+
<https://github.com/anuraghazra/github-readme-stats/blob/ba7c2f8b55eac8452e479c8bd38b044d204d0424/package.json#L54-L61>
590+
3. Run `npm i` if needed (initial setup)
591+
4. Run `node express.js` to start the server, or set the entry point to `express.js` in `package.json` if you're deploying on a managed service
592+
<https://github.com/anuraghazra/github-readme-stats/blob/ba7c2f8b55eac8452e479c8bd38b044d204d0424/package.json#L11>
593+
5. You're done 🎉
594+
</details>
569595

570596
### Keep your fork up to date
571597

0 commit comments

Comments
 (0)