diff options
| author | Scott Bahling <sbahling@suse.de> | 2013-11-27 18:38:01 +0100 |
|---|---|---|
| committer | Scott Bahling <sbahling@suse.de> | 2013-11-27 18:38:01 +0100 |
| commit | 6487ebd0ed5e4a541d90dc1a03d3401595469df0 (patch) | |
| tree | d6c7d0ac5b0bc2dea81b57f16a39e9d174816105 /panfry/document.py | |
| parent | 0ae9fa303ff901309956e30d7029f93a485068f3 (diff) | |
| download | panfry-6487ebd0ed5e4a541d90dc1a03d3401595469df0.tar.gz panfry-6487ebd0ed5e4a541d90dc1a03d3401595469df0.tar.xz panfry-6487ebd0ed5e4a541d90dc1a03d3401595469df0.zip | |
Add support for epub css files
Diffstat (limited to 'panfry/document.py')
| -rwxr-xr-x | panfry/document.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/panfry/document.py b/panfry/document.py index 09a728d..5fdd05c 100755 --- a/panfry/document.py +++ b/panfry/document.py @@ -262,6 +262,10 @@ class Document(object): doc = pandoc.Document() doc.markdown = src + css = os.path.abspath(os.path.join(self.template_path, 'epub.css')) + if os.path.isfile(css): + print(css) + doc.add_argument('epub-stylesheet=%s' % css) print("epub_path: %s" % epub_path) pandoc.set_cwd(os.path.abspath(self.src_path)) for option in self.pandoc_options: |
