Skip to content

JoelLefkowitz/paginator

Repository files navigation

Paginator

Extensible paginator class.

Review Version Quality

Installing

paginator is a header only library and is compatible with C++11.

conan search paginator

You can also download the sources.

Documentation

Documentation and more detailed examples are hosted on Github Pages.

Usage

paginator::Paginator<int> paginator({1, 2, 3, 4, 5}, 2);
paginator.page();
> {1, 2}
paginator.next();
paginator.page();
> {3, 4}

Tooling

Dependencies

To install dependencies:

yarn install
pip install .[all]
conan install .

Tests

To run tests:

scons test

Documentation

To generate the documentation locally:

scons docs

Linters

To run linters:

scons lint

Formatters

To run formatters:

scons format

Publishing

The ConanCenter doesn't yet allow users to publish packages independently. Package recipes are submitted to the conan-center-index. A copy of this recipe is kept in this repository in the publish folder. This allows us to test that the recipe is compatible with new versions and makes it easier to submit updates to the conan-center-index.

To test the recipe can build the latest published tag:

conan create publish/all/conanfile.py --version $(yq -r ".versions | keys | .[0]" publish/config.yml)

This will fetch the sources and create a locally cached version of the package. This version can also be published to a local remote for testing:

conan upload <package>/<version> -r <remote>

Toolchains

Scripts are defined in the scripts folder and can be invoked with toolchains:

To generate header guards:

npx toolchains guards

Contributing

Please read this repository's Code of Conduct which outlines our collaboration standards and the Changelog for details on breaking changes that have been made.

This repository adheres to semantic versioning standards. For more information on semantic versioning visit SemVer.

Bump2version is used to version and tag changes. For example:

bump2version patch

Contributors

Remarks

Lots of love to the open source community!

Be kind to your mind Love each other It's ok to have a bad day

About

Extensible paginator class.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published