Git Product home page Git Product logo

bibi's Introduction

BiB/i

EPUB Reader on your website.

  1. How to setup & read/publish EPUB books (for users)

  2. How to arrange development environment (for developers)

  3. License

  4. Special Thanks

  5. How to setup & read/publish EPUB books


BiB/i supports two ways to read/publish EPUB books:

  • Read in browsers on your local machine, or
  • Publish on the web, to have your books read by someone.

In either case, download BiB/i from web site and unzip it at first.

Read in browsers on your local machine

  1. Open bib/i/index.html in your browser and
  2. Drag an EPUB book and drop it into the window.
  3. That's all!

Publish on the web

Demo.

You can publish both zipped archive and unzipped folder. (Using unzipped is highly recommended.)

Use zipped archives

  1. Upload bib directory to your web server,
  2. Upload your EPUB books(for instance, my-book.epub here) to bib/bookshelf directory, and
  3. Access to http://your.web.site/bib/i/?book=my-book.epub by your browser.
  4. Or embed code below into your blog and visit the blog entry.
<a href="http://your.web.site/somewhere/bib/i/?book=my-book.epub" data-bibi="embed" data-bibi-style="[[ CSS for embeded BiB/i, as you like ]]">My Great Book Title</a><script src="http://your.web.site/bib/i.js"></script>

Use unzipped archives (recommended)

You may also read EPUB books as unzipped archives, or by page-by-page access, by uploading unzipped EPUB books to bookshelf directory. This is recommended because it accelarates reading experience of your readers.

  1. Unzip an EPUB book,
    1. Change the file extension from .epub to .zip (my-book.epub -> my-book.zip) and then
    2. unzip the file with some tool.
  2. Upload it to bib/bookshelf directory, and
  3. Visit http://your.web.site/bib/i/?book=my-book (note that it has No Extension) or embed code for it.
<a href="http://your.web.site/somewhere/bib/i/?book=my-book" data-bibi="embed" data-bibi-style="[[ CSS for embeded BiB/i, as you like ]]">My Great Book Title</a><script src="http://your.web.site/bib/i.js"></script>
  1. How to arrange development environment

Requirements

  1. Node.js + npm - guide: “Download the installer” (or “Installing Node.js via package manager”)
  2. Ruby (+ RubyGems) - guide: “Installing Ruby” (+ “RubyGems Basics”)
  3. Bundler - how to install: $ gem update --system and $ gem install bundler
  4. Grunt - how to install: $ npm install -g grunt-cli ... (“Getting Started”)

Arrangements

  1. Clone this repository. (https://github.com/satorumurmur/bibi/)
  2. $ cd <the repository>
  3. $ bundle install --path=vendor/bundle -> vendor/bundle directory including RubyGems (Compass and dependent gems) is installed.
  4. $ npm install -> npm-modules directory including modules is installed.

Development

  1. $grunt build and renew these files. Or $ grunt and start watching changes of files for development, and renew these files:
    • bib/i/res/scripts/bibi.js
    • bib/i/res/styles/bibi.css
    • bib/i.js
    • bib/i.css
  2. Edit files.
    • SCSS source files of bib/i/res/styles/bibi.css and bib/i/res/styles/pipi.css are in dev-bib/i/res/styles/.
    • JavaScript source files of bib/i/res/scripts/bibi.js are in dev-bib/i/res/scripts/.
    • JavaScript source file of bib/i.js is dev-bib/i/res/scripts/pipi.js.
  3. Run web server for dynamic-compiling.
    • $ bundle exec rackup
    • A server starts listening port 9292 by default.
    • The server returns compiled CSS of dev-bib/styles/*.scss to request.

Following files are not watched or processed by Grunt tasks:

  • bib/i/index.html (as portal)
  • bib/i.js (for embedding in HTML webpage)
  • bib/manifest.json (for using as Chrome application)
  • Files in bib/presets/ (customisable settings and styles)
  • Files in bib/i/res/fonts/ (icon fonts)

And bib/bookshelf/ directory is including .gitkeep

  1. License

BiB/i

BiB/i is including and powered by these open source softwares:

  1. Special Thanks

bibi's People

Contributors

satorumurmur avatar kitaitimakoto avatar

Watchers

James Cloos avatar Peter avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.