Skip to content

Commit

Permalink
small improvements and fixes for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnexus committed Jun 28, 2018
1 parent 228109e commit 1de470b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Expand Up @@ -4,13 +4,13 @@

### Breaking Changes

- The `pagy_nav_bootstrap_compact` and `pagy_nav_boostrap_responsive` helpers have been renamed as `pagy_nav_compact_bootstrap` and `pagy_nav_responsive_bootstrap` to keep the consistency with the extras structure (and support the consistency of future framework additions). Please, rename them accordingy.
- The `pagy_nav_bootstrap_compact` and `pagy_nav_boostrap_responsive` helpers have been renamed as `pagy_nav_compact_bootstrap` and `pagy_nav_responsive_bootstrap` to keep the consistency with the extras structure (and support the consistency of future framework additions). Please, rename them accordingly.
- The `Pagy::Frontend::I18N.load_file` has been renamed as `Pagy::Frontend::I18N.load` and expects a hash as the argument. See the [I18n doc](https://ddnexus.github.io/pagy/api/frontend#i18n).
- The seldom used `Pagy::Frontend::I18N[plurals]` has been renamed as `Pagy::Frontend::I18N[plural]`. See the [I18n doc](https://ddnexus.github.io/pagy/api/frontend#i18n).

### Commits

- [826798b](https://github.com/ddnexus/pagy/commit/826798b): refactoring of I18N constant: added supportv for multiple static languages and plural rules
- [826798b](https://github.com/ddnexus/pagy/commit/826798b): refactoring of I18N constant: added support for multiple static languages and plural rules
- [b78b71e](https://github.com/ddnexus/pagy/commit/b78b71e): better naming of json classes
- [ea7c22b](https://github.com/ddnexus/pagy/commit/ea7c22b): breaking change for compact and responsive extras: renaming of pagy_nav_bootstrap_* helpers to pagy_nav_*_bootstrap, consistent with extras structure
- [7d1a573](https://github.com/ddnexus/pagy/commit/7d1a573): internal consistency renaming of local/test variables; minor fixes and improvements
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/css/style.scss
Expand Up @@ -15,7 +15,7 @@ a:hover, a:focus {

code {
font-size: .8rem;
padding: 2px 5px;
padding: 4px 5px 2px;
background-color: #FFF;
border-radius: 3px;
border: 1px solid #e5e5e5;
Expand Down
2 changes: 2 additions & 0 deletions docs/how-to.md
Expand Up @@ -99,6 +99,8 @@ You can also pass it as an instance variable to the `Pagy.new` method or to the
@pagy, @records = pagy(Product.some_scope, items: 30)
```

If you want to allow the client to request a custom number of items per page - useful with APIs or higly user-customizable apps - take a look at the [items extra](extras/items.md). It manages the number of items per page requested with the params, and offers a ready to use selector UI.

## Controlling the page links

You can control the number and position of the page links in the navigation through the `:size` variable. It is an array of 4 integers that specify which and how many page links to show.
Expand Down

0 comments on commit 1de470b

Please sign in to comment.