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

Improve docs of pagination types #483

Merged
merged 2 commits into from
Jul 31, 2024
Merged

Conversation

c4710n
Copy link
Contributor

@c4710n c4710n commented Jul 30, 2024

This PR aims to improve the docs of pagination types.

These two commits are self-explanatory. Feedback is welcome.

The commit includes 2 main changes.

+ The old one mixes pagination types and paramaters. At first glance,
  it can be very confusing. So, I change the doc to not mention related
  parameters at all. And, the parameters will be mentioned in the doc
  of `t:Flop.pagination_type/0`.
+ Note that the `nil` is the default value. This tells developers that
  they don't need to do anything if they want to support all pagination
  types.
@c4710n c4710n requested a review from woylie as a code owner July 30, 2024 09:35
Copy link

codecov bot commented Jul 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.43%. Comparing base (96d7b9d) to head (77dbd70).
Report is 54 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #483      +/-   ##
==========================================
- Coverage   87.53%   87.43%   -0.11%     
==========================================
  Files          15       15              
  Lines         987      931      -56     
==========================================
- Hits          864      814      -50     
+ Misses        123      117       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@woylie
Copy link
Owner

woylie commented Jul 31, 2024

Thank you!

@woylie woylie merged commit 586591c into woylie:main Jul 31, 2024
17 checks passed
@c4710n c4710n deleted the zd/improve-docs branch July 31, 2024 15:08
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.

2 participants