make an epub from a pagetree site
Project description
[![Build Status](https://travis-ci.org/ccnmtl/django-pagetree-epub.png?branch=master)](https://travis-ci.org/ccnmtl/django-pagetree-epub)
[![Coverage Status](https://coveralls.io/repos/github/ccnmtl/django-pagetree-epub/badge.svg?branch=master)](https://coveralls.io/github/ccnmtl/django-pagetree-epub?branch=master)
epub export library for django-pagetree
## Installation
```
$ pip install django-pagetree-epub
```
Add `pagetreeepub` to your `INSTALLED_APPS`.
The `epubbuilder` library uses Genshi templates for a few things and
is unaware of Django's template finding functionality. I really hate
this and will be ripping that out and fixing this ASAP. In the
meantime, you have two options:
1) copy the `pagetreeepub/templates/epub` directory into your app and
point `EPUB_TEMPLATE_DIRECTORY` at it.
2) ensure that you pip install to a known location and set
`EPUB_TEMPLATE_DIRECTORY` to that.
Add the following settings:
* `EPUB_ALLOWED_BLOCKS` - list of pageblocks that will be allowed in
the published epub. Other blocks are silently ignored.
* `EPUB_TITLE` - title for the epub
* `EPUB_CREATOR` - creator field
* `EPUB_PUBLICATION` - publication date
[![Coverage Status](https://coveralls.io/repos/github/ccnmtl/django-pagetree-epub/badge.svg?branch=master)](https://coveralls.io/github/ccnmtl/django-pagetree-epub?branch=master)
epub export library for django-pagetree
## Installation
```
$ pip install django-pagetree-epub
```
Add `pagetreeepub` to your `INSTALLED_APPS`.
The `epubbuilder` library uses Genshi templates for a few things and
is unaware of Django's template finding functionality. I really hate
this and will be ripping that out and fixing this ASAP. In the
meantime, you have two options:
1) copy the `pagetreeepub/templates/epub` directory into your app and
point `EPUB_TEMPLATE_DIRECTORY` at it.
2) ensure that you pip install to a known location and set
`EPUB_TEMPLATE_DIRECTORY` to that.
Add the following settings:
* `EPUB_ALLOWED_BLOCKS` - list of pageblocks that will be allowed in
the published epub. Other blocks are silently ignored.
* `EPUB_TITLE` - title for the epub
* `EPUB_CREATOR` - creator field
* `EPUB_PUBLICATION` - publication date
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 Distribution
Built Distribution
File details
Details for the file django-pagetree-epub-0.3.0.tar.gz
.
File metadata
- Download URL: django-pagetree-epub-0.3.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0396c02246a8e674b8c502042c972b35717419b77145863c493bff9e8533b5cc |
|
MD5 | 464dce06586d546d8b6744328a3c44f2 |
|
BLAKE2b-256 | ec17e8c113784661c68fdbea10d432a4356308d89e8b1b4663ca9835e1669fec |
File details
Details for the file django_pagetree_epub-0.3.0-py2.py3-none-any.whl
.
File metadata
- Download URL: django_pagetree_epub-0.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5eb84a5df5ded0174c2d39313bc88ce499ad292d34f748650013b50998377c7 |
|
MD5 | 1702391c26c8918cdc1a73db382e0636 |
|
BLAKE2b-256 | 6c957651e7a64206922a241d8b0b4803b5f3507a7cd21e344e2bae3759f4f395 |