* feat: add CACHE_SECONDS environment variable
This commit adds the CACHE_SECONDS environment variable. This variable
can be used to circumvent our cache clamping values for self hosted
Vercel instances.
* refactor: apply formatter
* 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 f2516d60a4
---------
Co-authored-by: rickstaa <rick.staa@outlook.com>
* 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>
* GRS-1955: Using ES6 import/export in src files
* GRS-1955: Using ES6 import/export in test files
* GRS-1955: Using ES6 import/export in themes index.js
* GRS-1955: Readding blank line at end of top-languages-card.js
* feat: fix test es6 import errors
This commit makes sure jest is set-up to support es6. It also fixes
several test errors and sorts the imports.
* test: update test node version
This commit makes sure node 16 is used in the github actions.
* refactor: run prettier
Co-authored-by: rickstaa <rick.staa@outlook.com>
This commit removes the `hide` argument from the `fetchTopLanguages` call
found in the `top-lang.js` file. This was done since this was leftover
from 465faa7c32.
* added a dark theme like the github dark theme
* fixed hide in top_languages interfering with number of languages displayed
* fixed hide in top_languages interfering with number of languages displayed
* fixed hide in top_languages interfering with number of languages displayed
* fixed misplaced function argument
* style(themes): Add GitHub dark theme (#758)
This styling falls in line with the recently released GitHub dark mode
Co-authored-by: Anurag Hazra <hazru.anurag@gmail.com>
* docs: add covid fund link (#1019)
* docs: add `npm install` step to CONTRIBUTING.md (#1015)
* fix: apply parseBoolean to hide_border in pin.js (#1014)
* feat: limit langs shown on wakatime card (#988)
* fix: fixed javascript oof moment
Co-authored-by: Issy <48881813+issy@users.noreply.github.com>
Co-authored-by: Anurag Hazra <hazru.anurag@gmail.com>
Co-authored-by: Mike Beaton <mjsbeaton@gmail.com>
Co-authored-by: Florian Bussmann <hallo@florian-bussmann.de>
* Custom stats title (anuraghazra#229)
* Add custom title test
* remove unused code
* Update readme.md to include the `custom_title` option
* Update readme_es.md to include `custom_title` option
Co-Authored-By: José Javier Rodríguez Zas <jjavierdguezas@gmail.com>
* Merge branch 'master' of https://github.com/anuraghazra/github-readme-stats.git into custom-title
* feat: added customTitle option in Card
Co-authored-by: José Javier Rodríguez Zas <jjavierdguezas@gmail.com>
Co-authored-by: Anurag <hazru.anurag@gmail.com>
* feat: num_langs param for top langs
* fix: top-langs card bottom padding with num_langs param
* fix: clamp toplangs num_langs rather than throwing error
* feat: changed param name & fixed minor issues, added tests
Co-authored-by: anuraghazra <hazru.anurag@gmail.com>
* add new query param to hide specific languages in top languages card
* [top-langs] add function to clean out the provided lang name
* [top-langs] rename 'hide_lang' => 'hide', refactor logic for parsing the list of provided languages to hide
* [top-langs] take list of languages to hide, as a json array
* chore: minor changes
* docs: added docs for hide lang
Co-authored-by: anuraghazra <hazru.anurag@gmail.com>