EPUB Reader on your website.
You can publish EPUB books on the web, with full-featured viewer running on web browser. And you can embed it in other webpages (like YouTube videos).
Bibi supports 3 ways to read/publish EPUB books:
In all cases,
The folder structure and default public URL has changed in Bibi v1.0.0. But don’t worry. You still can use not only the new style URL but also the same old style URL as before.
If you already published books on the web with BiB/i which version is older than v1.0.0, and want to update Bibi to v1.0.0 or newer, but do not want to change the public URLs of the books,
Bibi-vX.Y.Z_with_BackCompatKit.zip
, and follow the document in it.bibi/index.html
in your browser, andDemo.
You can publish both unzipped folder and zipped EPUB archive.
Using unzipped folder is recommended for the book which is heavy or contains many files. Using zipped EPUB file is recommended for the book which is light and contains less files.
In both ways, at first, upload bibi
and ‘bibi-bookshelf’ folders to the same directory on your web server.
bibi
contains all programs of Bibi, and ‘bibi-bookshelf’ is for the storage of the books you upload.
You can use different directory for the bookshelf instead of ‘bibi-bookshelf’ by editing “bookshelf” option in ‘bibi/presets/default.js’.
bibi
and ‘bibi-bookshelf’ folders to the same directory on your web server..epub
to .zip
(BOOKNAME.epub
-> BOOKNAME.zip
), andBOOKNAME
into bibi-bookshelf
directory, andhttps://your.web.site/somewhere/bibi/?book=BOOKNAME
by your browser. (note that it has no extension)<a href="https://your.web.site/somewhere/bibi/?book=BOOKNAME" data-bibi="embed" data-bibi-style="[[ CSS for embeded Bibi frame, as you like ]]">[[ Title of the Book ]]</a><script src="https://your.web.site/somewhere/bibi/and/jo.js"></script>
bibi
and ‘bibi-bookshelf’ folders to the same directory on your web server.BOOKNAME.epub
) to bibi-bookshelf
directory, andhttps://your.web.site/somewhere/bibi/?book=BOOKNAME.epub
by your browser.<a href="https://your.web.site/somewhere/bibi/?book=BOOKNAME.epub" data-bibi="embed" data-bibi-style="[[ CSS for embeded Bibi frame, as you like ]]">[[ Title of the Book ]]</a><script src="https://your.web.site/somewhere/bibi/and/jo.js"></script>
bibi
folder on your web server.https://your.web.site/somewhere/bibi/
.If you want to terminate this feature, set “no” to “accept-files” in bibi/presets/default.js
.
cd <the local repository>
npm install
npm start
__dist
folder, and start to watch changes of the files in __src
folder.http://localhost:61671/bibi/?book=
.__src
folder, development version of the file(s) are updated in __dist
folder automaticaly.Files in __dist
folder generated with npm start
are development version.
Please don’t forget to run npm run build
and build production version before you upload.
Distribution | Source |
---|---|
__dist/bibi/*.html |
__src/bibi/*.html |
__dist/bibi/and/jo.js |
__src/bibi/and/jo.js + __src/bibi/and/jo.scss |
__dist/bibi/extensions/** |
__src/bibi/extensions/** |
__dist/bibi/presets/*.js |
__src/bibi/presets/*.js |
__dist/bibi/resources/scripts/bibi.js |
__src/bibi/resources/scripts/*.js + __src/bibi/resources/scripts/bibi.book.scss |
__dist/bibi/resources/styles/bibi.css |
__src/bibi/resources/styles/*.scss |
__dist/bibi/wardrobe/**/*.css |
Read documents in __src/bibi/wardrobe/README-DRESS_ja (Sorry…, currently README is Japanese only) |
Files in the Distribution
column of the table are overwritten with the files updated by npm start
or npm run build
.
If you want to modify them, please edit files in the Source
column instead of editing these files in __dist
directly.
npm run build
__dist
folder.npm run make:package
__archives
folder. After that, the temporary files are removed.Thanks to the contributors and the users around the world!