Now, support convert epub to website like Honkit style.
Need golang 1.16+
Run:
go build -o ./epub2website cmd/epub2website/main.go
Honkit&Gitbook need some static assets for web pages and plugins. By default, the
https://cdn.jim.plus/
is opened to public.
Run:
./epub2website -g https://cdn.jim.plus/ -e /path/to/book.epub -o /path/to/output/epub2website
or you can use resource file in this repo
cd /src/epub2website
./epub2website -g ../../../src/ -e ./ebooks/raw/'Breathless_David Quammen.epub' -o ./ebooks/web/'Breathless_David Quammen.epub'
- Update epub2website path in
Basic Configuration
-->External Binaries
-->Path to Epub2Website Converter
- Update epub2website library in
Basic Configuration
-->External Binaries
-->Epub2Website Library Endpoint Settings
You can use https://cdn.jim.plus/
for default epub2website library.
All files the epub2website needed is in src.
You can also copy all assets in src to calibre-web/cps/static
. Then set Basic Configuration
--> External Binaries
--> Epub2Website Library Endpoint Settings
to /static/
.
Confirm gitbook directory locates with
calibre-web/cps/static/gitbook
.
All plugin should be updated in ./template/navigation.html and ./template/page.html
- gitbook-plugin-tbfed-pagefooter
- gitbook-plugin-back-to-top-button
- gitbook-plugin-page-toc-button
- gitbook-plugin-highlight
- gitbook-plugin-search-plus
- gitbook-plugin-fontsettings
- gitbook-plugin-expandable-chapters
- gitbook-plugin-splitter
EPUB 2, EPUB 3
Epub2Website is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.