Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(barchart): add documentation to BarChart #449

Merged
merged 1 commit into from
Sep 2, 2023

Conversation

Valentin271
Copy link
Member

@Valentin271 Valentin271 commented Aug 28, 2023

Add documentation to the BarChart widgets and its sub-modules.

Relates to #386.

Screenshots

image
image

@codecov
Copy link

codecov bot commented Aug 28, 2023

Codecov Report

Merging #449 (09c974b) into main (3f781ca) will decrease coverage by 0.42%.
Report is 7 commits behind head on main.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #449      +/-   ##
==========================================
- Coverage   90.42%   90.00%   -0.42%     
==========================================
  Files          40       40              
  Lines       11079    11156      +77     
==========================================
+ Hits        10018    10041      +23     
- Misses       1061     1115      +54     
Files Changed Coverage Δ
src/widgets/barchart/bar.rs 98.86% <ø> (ø)
src/widgets/barchart/bar_group.rs 100.00% <ø> (ø)
src/widgets/barchart/mod.rs 92.68% <ø> (ø)

... and 9 files with indirect coverage changes

Copy link
Member

@joshka joshka left a comment

Choose a reason for hiding this comment

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

Generally looking good (none of my feedback is blocking - purely gold plating).

Would you consider adding examples even for the simple methods? My rationale for this is that examples help newer users discover things like how to write styles, do things idiomatically (e.g. Style::new().red() or "foo".into()), and discover other Ratatui modules (like the symbols module

src/widgets/barchart/bar.rs Show resolved Hide resolved
src/widgets/barchart/bar.rs Outdated Show resolved Hide resolved
src/widgets/barchart/bar.rs Outdated Show resolved Hide resolved
src/widgets/barchart/bar.rs Outdated Show resolved Hide resolved
src/widgets/barchart/bar_group.rs Outdated Show resolved Hide resolved
src/widgets/barchart/bar_group.rs Outdated Show resolved Hide resolved
src/widgets/barchart/mod.rs Outdated Show resolved Hide resolved
src/widgets/barchart/mod.rs Show resolved Hide resolved
@Valentin271
Copy link
Member Author

Most of it should be fixed. Here's an updated screenshot of the BarChart type documentation:

image

Copy link
Contributor

@karthago1 karthago1 left a comment

Choose a reason for hiding this comment

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

Hey I like the new documentation, I could never write such a nice one.

src/widgets/barchart/mod.rs Show resolved Hide resolved
Add documentation to the `BarChart` widgets and its sub-modules.
Copy link
Contributor

@karthago1 karthago1 left a comment

Choose a reason for hiding this comment

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

Nice work. (approved, but I am not good at reviewing docs 😁 )

@joshka joshka merged commit e098731 into ratatui:main Sep 2, 2023
@Valentin271 Valentin271 deleted the docs/barchart branch September 2, 2023 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants