New Feature for RepoCard: Showing Language Bar for multiple languages
RepoCard Feature: Show Language Bar
- Feature related to issue: #3767
This feature enhances the RepoCard component by adding a language bar. Previously, the RepoCard displayed only the primary language, along with the number of forks and stars. In many cases, however, it’s helpful to show a broader view of the languages used in the repository, along with their relative proportions. This feature provides that additional context (see PybindExample below for reference).
How does the feature work?
The feature introduces only one new parameter show_lang_bar and three that work the same as in Top Languages Card
show_lang_barIf set to true, show the language bar (default is false)hide: You can use &hide=language1,language2 parameter to hide individual languages.langs_count: You can use the &langs_count= option to increase or decrease the number of languages shown on the card.hide_progress: You can use the &hide_progress=true option to hide the percentages and the progress bar
Because the default for show_lang_bar is set to false, no existing implementation/use will change
Further Improvements:
- Write more tests for RepoCards
- Add the option of Forks and Stars to the new RepoCard Design (see image below)
Examples
Multiple Language with Bar: show_lang_bar = true and hide_progress = false
Multiple Language without Bar:
show_lang_bar = true and hide_progress = false
Original:
show_lang_bar = false (default)
There is enough room to add the forks and stars (not yet added). Will add later if there enough interest in this feature
Pybind Example:
@SemUijen is attempting to deploy a commit to the github readme stats Team on Vercel.
A member of the Team first needs to authorize it.