Skip to content

Commit

Permalink
Synopsys > Synopsis
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnexus committed Nov 20, 2018
1 parent 1b8a080 commit 8368a99
Show file tree
Hide file tree
Showing 18 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion docs/api/backend.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ For overriding convenience, the `pagy` method calls two sub-methods that you may

Check also the [array extra](../extras/array.md) and [searchkick extra](../extras/searchkick.md) for specific backend customizations.

## Synopsys
## Synopsis

```ruby
# in some controller
Expand Down
2 changes: 1 addition & 1 deletion docs/api/frontend.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This module provides a few methods to deal with the navigation aspect of the pag

You can extend this module with a few more `nav_*` helpers _(see the [extras](../extras.md) doc for more details)_

## Synopsys
## Synopsis

```ruby
# typically in some helper
Expand Down
2 changes: 1 addition & 1 deletion docs/api/pagy.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Pagy

The scope of the `Pagy` class is keeping track of the all integers and variables involved in the pagination. It basically takes a few integers (such as the count of the collection, the page number, the items per page, ...), does some simple aritmetic and creates a very small object that allocates less than 3k of memory. _([source](https://github.com/ddnexus/pagy/blob/master/lib/pagy.rb))_

## Synopsys
## Synopsis

```ruby
# set global defaults and extra variables typically in the pagy.rb initializer
Expand Down
2 changes: 1 addition & 1 deletion docs/extras.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Pagy comes with a few optional extensions/extras:
| `semantic` | Nav helpers for the Semantic UI CSS [pagination component](https://semantic-ui.com/collections/menu.html) | [semantic.rb](https://github.com/ddnexus/pagy/blob/master/lib/pagy/extras/semantic.rb), [documentation](extras/semantic.md) |
| `trim` | Remove the `page=1` param from links | [trim.rb](https://github.com/ddnexus/pagy/blob/master/lib/pagy/extras/trim.rb), [documentation](extras/trim.md) |

## Synopsys
## Synopsis

Extras are not loaded by default, so you should require them explicitly in your `pagy.rb` initializer _(see [Configuration](how-to.md#global-configuration))_:

Expand Down
2 changes: 1 addition & 1 deletion docs/extras/array.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This extra adds a specialized pagination for arrays without the need to override

That means that you can paginate the array independently from any other kind of collections you may need to paginate even in the same action.

## Synopsys
## Synopsis

See [extras](../extras.md) for general usage info.

Expand Down
2 changes: 1 addition & 1 deletion docs/extras/bootstrap.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Bootstrap

This extra adds nav helpers and templates for the Bootstrap [pagination component](https://getbootstrap.com/docs/4.1/components/pagination).

## Synopsys
## Synopsis

See [extras](../extras.md) for general usage info.

Expand Down
2 changes: 1 addition & 1 deletion docs/extras/bulma.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Bulma

This extra adds nav helper and templates for the Bulma CSS [pagination component](https://bulma.io/documentation/components/pagination).

## Synopsys
## Synopsis

See [extras](../extras.md) for general usage info.

Expand Down
2 changes: 1 addition & 1 deletion docs/extras/countless.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Its usage is practically the same as the regular `Pagy::Backend` module (see the

The pagination resulting from this extra has some limitation as documented in the [Pagy::Countless Caveats doc](../api/countless.md#caveats).

## Synopsys
## Synopsis

See [extras](../extras.md) for general usage info.

Expand Down
2 changes: 1 addition & 1 deletion docs/extras/elasticsearch_rails.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Elasticsearch Rails

Paginate `ElasticsearchRails::Results` objects efficiently avoiding expensive object-wrapping and without overriding.

## Synopsys
## Synopsis

See [extras](../extras.md) for general usage info.

Expand Down
2 changes: 1 addition & 1 deletion docs/extras/foundation.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Foundation

This extra adds nav helper and templates for the Foundation [pagination component](https://foundation.zurb.com/sites/docs/pagination.html).

## Synopsys
## Synopsis

See [extras](../extras.md) for general usage info.

Expand Down
2 changes: 1 addition & 1 deletion docs/extras/i18n.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The `i18n` extra overrides the `pagy_t` method so it uses `I18n.t`. Use this ext

See also [I18n](../api/frontend.md#i18n).

## Synopsys
## Synopsis

See [extras](../extras.md) for general usage info.

Expand Down
2 changes: 1 addition & 1 deletion docs/extras/items.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Allow the client to request a custom number of items per page with an optional s

It works also with the [countless extra](countless.md).

## Synopsys
## Synopsis

See [extras](../extras.md) for general usage info.

Expand Down
2 changes: 1 addition & 1 deletion docs/extras/materialize.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Materialize

This extra adds nav helpers for the Materialize CSS [pagination component](https://materializecss.com/pagination.html).

## Synopsys
## Synopsis

See [extras](../extras.md) for general usage info.

Expand Down
6 changes: 3 additions & 3 deletions docs/extras/navs.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This extra adds a couple of nav helpers to the `Pagy::Frontend` module: `pagy_na

Other extras (e.g. [bootstrap](bootstrap.md), [bulma](bulma.md), [foundation](foundation.md), [materialize](materialize.md)) provide framework-styled versions of the same `responsive` and `compact` helpers, so you may not need this extra if you use one of those.

## Synopsys
## Synopsis

See [extras](../extras.md) for general usage info.

Expand All @@ -29,7 +29,7 @@ The `compact` navs (implemented by this extra or by other frontend extras) add a

It is especially useful for small size screens, but it is used also with wide layouts since it is __even faster__ than the classic nav of links, because it needs to render just a minimal HTML string.

## Synopsys
## Synopsis

Use the responsive helper(s) in any view:

Expand Down Expand Up @@ -63,7 +63,7 @@ Here is a screenshot (from the `bootstrap`extra) of how the same pagination nav

![pagy-responsive](../assets/images/pagy-responsive-g.png)

## Synopsys
## Synopsis

```ruby
# set your default custom breakpoints (width/size pairs) globally (it can be overridden per Pagy instance)
Expand Down
2 changes: 1 addition & 1 deletion docs/extras/overflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Overflow

This extra allows for easy handling of overflowing pages. It internally rescues from the `Pagy::OverflowError` offering a few different ready to use modes, quite useful for UIs and/or APIs. It works with `Pagy` or `Pagy::Countless` instances.

## Synopsys
## Synopsis

See [extras](../extras.md) for general usage info.

Expand Down
2 changes: 1 addition & 1 deletion docs/extras/searchkick.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Paginate `Searchkick::Results` objects efficiently avoiding expensive oject-wrap

The `Searchkick::Results` object has already done pagination calculations, we just need to tell Pagy how to read page and total values. It is expected that you let Searchkick handle the `page` and `per_page` variables instead of providing those values as options to Pagy.

## Synopsys
## Synopsis

See [extras](../extras.md) for general usage info.

Expand Down
2 changes: 1 addition & 1 deletion docs/extras/semantic.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Semantic UI

This extra adds nav helper and templates for Semantic UI CSS [pagination component](https://semantic-ui.com/collections/menu.html#pagination).

## Synopsys
## Synopsis

See [extras](../extras.md) for general usage info.

Expand Down
2 changes: 1 addition & 1 deletion docs/extras/trim.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This extra removes the `page=1` param from the link of the first page. You need

This extra is needed only for very specific scenarios, for example if you need to avoid frontend cache duplicates.

## Synopsys
## Synopsis

See [extras](../extras.md) for general usage info.

Expand Down

0 comments on commit 8368a99

Please sign in to comment.