Commit graph

166 commits

Author SHA1 Message Date
kitswas
5577bbf07f
New top language algorithm implementation (#1732)
* Reduced vercel maxDuration

* Implemented new algorithm for Top Langs

* Revert "Reduced vercel maxDuration"

This reverts commit b0bc626efe12c738cf5005e7f11c7d2a07b6387a.

* 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 f2516d60a442dfdbb9e24ddda8743664bcb8064d

---------

Co-authored-by: rickstaa <rick.staa@outlook.com>
2023-04-25 08:19:05 +02:00
Fabiano Couto
879937c11d
feat(RankIcon): add rank_icon option (#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 <rick.staa@outlook.com>

---------

Co-authored-by: Rick Staa <rick.staa@outlook.com>
2023-04-24 13:56:14 +00:00
Caeden Perelli-Harris
d8244a7fe5
Add format stats option (#2155)
* feat: added `format_stats` option (#2128)

* refactor: change `format_stats` to `short_values` (#2128)

* test: create shorten values test (#2128)

* Update readme.md

Co-authored-by: Rick Staa <rick.staa@outlook.com>

* refactor: rename ``short_values`` to ``number_format``

* Update readme.md

Co-authored-by: Rick Staa <rick.staa@outlook.com>

* Update src/cards/stats-card.js

Co-authored-by: Rick Staa <rick.staa@outlook.com>

* refactor: format codebase

---------

Co-authored-by: Rick Staa <rick.staa@outlook.com>
2023-04-01 10:17:56 +05:30
Zohan Subhash
1d528da1dc
Add option to deploy using other services (#2525)
* Create express.js

* Update readme.md

* Update readme.md
2023-02-25 19:34:00 +05:30
Raphael Gonçalves
8898d013b6
Update readme.md (#2414)
fix: missing "&" in show_icons=true in Showing icons section
2023-02-25 17:32:42 +05:30
Amir
ba7c2f8b55
Support hide_progress for top-langs feature (#2514)
* Add support for hide_progress in top languages feature

* Fix mistake

* Add documents for all languages

* Remove unnecessary value check

* Update top-languages-card.js

* Revert document for all languages except English

* Update documentation

* Update documentation

---------

Co-authored-by: Zohan Subhash <zohan.subhash@gmail.com>
2023-02-16 06:53:11 +05:30
Rick Staa
60fae292a3
feat: enable multi page star fetching for private vercel instances (#2159)
* feat: enable multi-page stars' fetching for private vercel instances

This commit enables multi-page stars' support from fetching on private Vercel
instances. This feature can be disabled on the public Vercel instance by adding
the `FETCH_SINGLE_PAGE_STARS=true` as an env variable in the public Vercel
instance. This variable will not be present when people deploy their own Vercel
instance, causing the code to fetch multiple star pages.

* fix: improve stats multi-page fetching behavoir

This commit makes sure that the GraphQL api is only called one time per
100 repositories. The old method added one unnecesairy GraphQL call.

* docs: update documentation

* style: improve code syntax

Co-authored-by: Matteo Pierro <pierromatteo@gmail.com>

* lol happy new year

* docs: remove rate limit documentation for now

Remove the `FETCH_SINGLE_PAGE_STARS` from documentation for now since it
might confuse people.

* fix: fix error in automatic merge

* feat: make sure  env variable is read

Co-authored-by: Matteo Pierro <pierromatteo@gmail.com>
Co-authored-by: Anurag <hazru.anurag@gmail.com>
2023-01-21 18:32:37 +01:00
Zohan Subhash
8bc69e761f
Update readme.md (#2442) 2023-01-19 09:30:46 +01:00
Rick Staa
06a2a78cfc
Revert "Revert "Add loading Animation to Most used Language card (#2197)" (#2396)" (#2419)
This reverts commit 4b8198fa21.
2023-01-16 12:30:39 +01:00
Rick Staa
4b8198fa21
Revert "Add loading Animation to Most used Language card (#2197)" (#2396)
This reverts commit 77dcdab42c.
2023-01-12 22:52:34 +01:00
Huzaifa Khilawala
77dcdab42c
Add loading Animation to Most used Language card (#2197)
* add: text animation

* compact progress done

* cleaned code

* non compact animation done

* tests fixed + prettier

* revert: vercel.json

* remove: unnecessary import

* added parameter in docs

* style: improve syntax

Co-authored-by: rickstaa <rick.staa@outlook.com>
2023-01-10 12:21:35 +00:00
Pranav Joglekar
9aa39dfe81
feat: allow users to pass ring_color param (#2075)
* fix: prevent crash if undefined color is passed to func fallbackColor

* feat: allow users to pass ring_color param

Before this commit, the ring color was always equal to the title color.
This commit allows the user to pass a ring_color property to allow him
to style the ring color the way he pleases to. If no ring_color is
passed we default to the title color.

* docs: improves ring color documentation

* fix: improve code style

Co-authored-by: rickstaa <rick.staa@outlook.com>
2022-11-19 20:18:42 +01:00
Rick Staa
f993f21379
Update readme.md 2022-10-28 10:03:11 +02:00
Falguni Sarkar
45f434f083
docs: document auto theme change #2074 (#2229)
* Document auto theme change in README #2074

* Document auto theme change in README

Document auto theme change in README #2074 (update-1)

* Document auto theme change updates

#2074

* docs: improve dynamic theme documentation

Co-authored-by: rickstaa <rick.staa@outlook.com>
2022-10-28 09:43:17 +02:00
Frieder Bluemle
199870aa9f
refactor: fix GitHub capitalization (#2232) 2022-10-26 16:41:59 +02:00
rickstaa
166972d7e4
docs: improve syntax 2022-10-10 13:49:48 +02:00
rickstaa
c4bfacb9e0
docs: add fork update guide 2022-10-10 13:48:35 +02:00
rickstaa
d7451d8288
docs: improve caching documentation 2022-10-07 14:53:51 +02:00
rickstaa
5c514dbda0
docs: improve admonition boxes 2022-10-07 14:43:16 +02:00
rickstaa
15533596e6
docs: add admonition boxes 2022-10-07 14:40:19 +02:00
rickstaa
df243efdd5
docs: update readme 2022-10-07 14:32:01 +02:00
Rick Staa
94d0978d2b
docs: fix readme logo alignment (#2112) 2022-10-04 14:19:30 +02:00
Akshat Goel
388ba06a8f
Update the Vercel deployement guide (#2102)
* Update the Vercel deployement guide

Updated Readme.md - The guide on deploying your own Vercel instance

* docs: fix some small grammer errors

Co-authored-by: rickstaa <rick.staa@outlook.com>
2022-10-04 09:32:40 +02:00
Rick Staa
e6a6384eff
docs: improve readme syntax (#2106) 2022-10-04 09:19:37 +02:00
Aditya Shelke
7accd1a8d7
feat: default values for wakatime and language (#2103)
* default values for wakatime and language

* docs: update formatting

Co-authored-by: rickstaa <rick.staa@outlook.com>
2022-10-04 08:58:18 +02:00
Ayushi Vishwakarma
9e1fc0b7da
update default values in readme (#2094)
* update default values in readme

* docs: improve formatting

* docs: improve readme punctation

Co-authored-by: rickstaa <rick.staa@outlook.com>
2022-10-03 09:14:37 +02:00
Manan1612
aa084f31c4
Added Contributors Badge (#2096) 2022-10-03 08:42:32 +02:00
rickstaa
c5bea57638
docs: fix india care logo 2022-10-02 18:07:43 +02:00
rickstaa
c2c984a872
docs: format readme 2022-10-02 17:58:34 +02:00
ianbromwichuos
2faf9c54ff
docs: fix link to go India logo svg (#2085) 2022-10-02 17:47:14 +02:00
Jagruti Tiwari
f0daab11c8
feat: added default options to readme (#2051)
* feat: added default options to readme

* Update readme.md

Co-authored-by: Rick Staa <rick.staa@outlook.com>

* fix: added default values for stats card

* style: some small readme changes

Co-authored-by: Rick Staa <rick.staa@outlook.com>
2022-10-02 14:03:22 +02:00
Rick Staa
f9b9015ec2
feat(stats): add 'not_bold' option to stats card (#1468) 2022-09-17 13:32:40 +02:00
Rick Staa
c1324b31bf
feat: add 'exclude_repo' option to stats card (#1450)
This commit allows users to exclude repositories for the stats card
using the `exclude_repo` option.
2022-09-16 13:09:19 +02:00
Artem Kostiuk
b0bb994ad3
Fix #1170: Allow customizable width for GitHub Stats Card (#1334)
* Change default stats card width with hide rank

* Add tests for stats card with card_width

* Add card_width Stats Card description to readme

* fix: add icon width to stats-card min width calculation

* fix: fixes rank circle padding problem

This commit fixes a padding problem that was introduced in
f9c0e0bff64f325235ccbf936c9d5f7a918ac790. In the new code, the padding
around the rank circle will be 50 when the stats card is bigger than
450. When it is smaller than 450 the left and right padding will shrink
equally.

* style: run prettier

* tests: add extra stats 'card_width' tests

This commit makes sure we also test the stats card width for the case that the 'show_icons'
option is enabled.

* style: run prettier

Co-authored-by: rickstaa <rick.staa@outlook.com>
2022-09-16 12:50:30 +02:00
John Sweeney
d5c94b6f57
Remove unneeded underscore from Readme (#2003) 2022-09-06 08:50:39 +02:00
tmt
678fa11416
docs: note for temporary cache inc (#1890) 2022-07-27 07:48:20 +02:00
tmt
cffb0843b1
docs: incorrect cache documentation (#1889) 2022-07-27 07:47:55 +02:00
PyBaker
33874275b2
docs: update readme.md (#1836) 2022-07-06 13:00:20 +02:00
Rick Staa
bdaaba2021
docs: add wakatime public profile note (#1794)
Add a small note to make users aware that the wakatime card currently only works with public profiles.
2022-06-23 11:43:02 +02:00
Rick Staa
758ed96dce
docs: add discussion button to readme (#1776)
This commit adds a link to the discussion page to make sure people ask questions there instead of opening issues.
2022-05-19 12:40:35 +02:00
Nico Ismaili
9734a998cc
docs: linked "hide" URL param values to its description (#1766) 2022-05-18 16:36:22 +02:00
Subramani
bde609f246
Update readme.md (#1399)
Co-authored-by: Rick Staa <rick.staa@outlook.com>
2022-05-03 10:26:21 +02:00
0xLogN
877ac89e84
spelling & grammar in README (#1350) 2022-05-03 10:12:49 +02:00
Robin Millette
202bcd4451
Fix readme typo (#1171)
Langauges
2022-05-03 10:04:45 +02:00
Chinmay Chhajed
f7ddcbe757
docs: update readme (#1721)
This pull request fixes several syntax errors in the readme that might confuse people.
2022-05-01 21:20:51 +02:00
Ansgar Grunseid
20ace75271
fix grammar: add missing period (#1025) 2022-02-16 23:12:32 +01:00
SiddharthMehra
c3d9197912
fix grammatical error in readme.md (#975)
* update readme.md

* docs: apply one small grammar style change

Co-authored-by: rickstaa <rick.staa@outlook.com>
2022-02-16 08:24:56 +01:00
James Tufarelli
3f0ca9d967
docs: fixed Vercel PAT setup instructions (#1508)
Updated the Vercel PAT setup instructions.

The original instructions don't say to enable `repo` permissions on the Personal Access Token. Without these permissions, the widget was not able to count the `total commits` on my private repos. I updated the instructions to specifically mention enabling the `repo` permission on the PAT.

I tested this using my own Vercel instance and can confirm the `repo` permission is needed.

This fix has been mentioned here: https://github.com/anuraghazra/github-readme-stats/issues/1275#issuecomment-929887319
2021-12-29 21:17:31 +05:30
Anurag Hazra
bc6c22ea17
docs: add fork instructions (#1418)
* docs: add fork instructions

* chore: revert toc
2021-10-25 23:29:04 +05:30
Moe Bachrouch
c7fd3ed8f2
docs: replace '?theme' with '&theme' (#1307) 2021-09-12 21:42:07 +05:30