Kolibri plugin to add a Zim file viewer
Project description
Kolibri Dynamic Collections plugin
This is a Kolibri plugin for dynamic collections, which are a new way to bundle together content across multiple Kolibri channels. The plugin includes database models and utilities to manage dynamic collections, as well as an editor to create collections from a selection of channels and content nodes.
Usage
Install a release from pypi:
pip install kolibri-dynamic-collections-plugin
Enable the plugin in Kolibri:
kolibri plugin enable kolibri_dynamic_collections_plugin
Development
Getting started
Create a pipenv shell and then install additional dependencies using bootstrap.sh
:
pipenv shell
./scripts/bootstrap.sh
Install kolibri-dynamic-collections-plugin in editable mode:
pip install -e .
To build front end code:
yarn build
Refer to the Usage instructions to enable the plugin.
Submitting changes
Before submitting changes, please be sure to run the pre-commit checks:
pre-commit run
If you can configure git to run these checks automatically:
pre-commit install -f --install-hooks
Creating a release
If you are releasing a new version, use bump-version
with with major
, minor
, or patch
. For example:
yarn bump-version patch
This creates a new commit and a git tag. Push this to the remote:
git push
git push --tags
Create a .whl
file:
yarn dist
The file will be placed in the dist/
directory.
Finally, upload the .whl
file to PyPi:
yarn release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for kolibri_dynamic_collections_plugin-1.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f58df5470470d75b65a6d5d02a831c3a50bc137d2efef656302551268eca9f9d |
|
MD5 | c4e6bf0ad66b6b0c83c724024f7f0178 |
|
BLAKE2b-256 | 8694df27b6265c5621cebbeedd6c1ad1ddfe989c95aae7ed26786eb91464eef4 |