You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 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]>
Copy file name to clipboardExpand all lines: docs/readme_de.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,8 @@
54
54
<a href="/docs/readme_nl.md">Nederlands</a>
55
55
.
56
56
<a href="/docs/readme_np.md">नेपाली</a>
57
+
.
58
+
<a href="/docs/readme_tr.md">Türkçe</a>
57
59
</p>
58
60
</p>
59
61
<palign="center">Du magst das Projekt? Wie wäre es mit einer kleinen <ahref="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
128
130
-`bg_color` - Hintergrundfarbe _(hex color)_**oder** ein Farbverlauf in der Form von _winkel,start,ende_
129
131
-`hide_border` - Blendet den Rand der Karte aus _(Boolean)_
130
132
-`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)_
132
134
-`locale` - Stellen Sie die Sprache auf der Karte ein _(z.B. cn, de, es, etc.)_
Copy file name to clipboardExpand all lines: docs/readme_it.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,8 @@
53
53
<a href="/docs/readme_nl.md">Nederlands</a>
54
54
.
55
55
<a href="/docs/readme_np.md">नेपाली</a>
56
+
.
57
+
<a href="/docs/readme_tr.md">Türkçe</a>
56
58
</p>
57
59
</p>
58
60
<palign="center">Se ti piace questo progetto, considera la possibilità di <ahref="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
138
140
-`bg_color` - Colore dello sfondo _(in esadecimale)_**oppure** un gradiente nella forma _angolo,inizio,fine_
139
141
-`hide_border` - Nasconde il bordo della carta _(booleano)_
140
142
-`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)_
142
144
-`locale` - Impostare la lingua nella scheda _(per esempio. cn, de, es, eccetera.)_
Copy file name to clipboardExpand all lines: docs/readme_pt-BR.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -141,7 +141,7 @@ Personalize a aparência do seu `Stats Card` ou `Repo Card` da maneira que desej
141
141
-`bg_color` - Cor de fundo do cartão _(hex color)_
142
142
-`hide_border` - Esconde a borda do cartão _(boleano)_
143
143
-`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)_
145
145
-`locale` - defina o idioma no cartão _(por exemplo. cn, de, es, etc.)_
146
146
147
147
> 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.
Copy file name to clipboardExpand all lines: readme.md
+40-14
Original file line number
Diff line number
Diff line change
@@ -216,10 +216,10 @@ You can use [GitHub's theme context](https://github.blog/changelog/2021-11-24-sp
216
216
##### Use GitHub's new media feature
217
217
218
218
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.
@@ -289,6 +290,7 @@ You can provide multiple comma-separated values in the bg_color option to render
289
290
-`text_bold` - Use bold text _(boolean)_. Default: `true`.
290
291
-`disable_animations` - Disables all animations in the card _(boolean)_. Default: `false`.
291
292
-`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`.
292
294
293
295
> **Note**
294
296
> 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
308
310
-`custom_title` - Sets a custom title for the card _(string)_. Default `Most Used Languages`.
309
311
-`disable_animations` - Disables all animations in the card _(boolean)_. Default: `false`.
310
312
-`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.
311
315
312
316
> **Warning**
313
317
> 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
357
361
The top languages card shows a GitHub user's most frequently used top language.
358
362
359
363
> **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:
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
0 commit comments