Skip to content

Commit

Permalink
update default values in readme (#2094)
Browse files Browse the repository at this point in the history
* update default values in readme

* docs: improve formatting

* docs: improve readme punctation

Co-authored-by: rickstaa <rick.staa@outlook.com>
  • Loading branch information
Ayushi96 and rickstaa committed Oct 3, 2022
1 parent aa084f3 commit 9e1fc0b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,12 @@ You can provide multiple comma-separated values in the bg_color option to render
#### Repo Card Exclusive Options:

- `show_owner` - Show the repo's owner name _(boolean)_
- `show_owner` - Show the repo's owner name _(boolean)_. Defaults to `false`.

#### Language Card Exclusive Options:

- `hide` - Hide the languages specified from the card _(Comma-separated values)_
- `hide_title` - _(boolean)_
- `hide_title` - _(boolean)_. Defaults to `false`.
- `layout` - Switch between two available layouts `default` & `compact`
- `card_width` - Set the card's width manually _(number)_
- `langs_count` - Show more languages on the card, between 1-10, defaults to 5 _(number)_
Expand All @@ -223,8 +223,8 @@ You can provide multiple comma-separated values in the bg_color option to render
#### Wakatime Card Exclusive Options:

- `hide` - Hide the languages specified from the card _(Comma-separated values)_
- `hide_title` - _(boolean)_
- `line_height` - Sets the line-height between text _(number)_
- `hide_title` - _(boolean)_. Defaults to `false`.
- `line_height` - Sets the line-height between text _(number)_. Default Value: `25`.
- `hide_progress` - Hides the progress bar and percentage _(boolean)_
- `custom_title` - Sets a custom title for the card
- `layout` - Switch between two available layouts `default` & `compact`
Expand Down
2 changes: 1 addition & 1 deletion src/cards/repo-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const renderRepoCard = (repo, options = {}) => {
icon_color,
text_color,
bg_color,
show_owner,
show_owner = false,
theme = "default_repocard",
border_radius,
border_color,
Expand Down
2 changes: 1 addition & 1 deletion src/cards/top-languages-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ const useLanguages = (topLangs, hide, langs_count) => {
*/
const renderTopLanguages = (topLangs, options = {}) => {
const {
hide_title,
hide_title = false,
hide_border,
card_width,
title_color,
Expand Down

1 comment on commit 9e1fc0b

@vercel
Copy link

@vercel vercel bot commented on 9e1fc0b Oct 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.