GithubHelp home page GithubHelp logo

ibis's Introduction

Ibis Book Maker

This PHP tool helps you write eBooks in markdown. Run ibis build and an eBook will be generated with a cover and clickable table of contents.

Here's a sample PDF eBook generated with Ibis: click me

Installation

Make sure you have PHP7.3 or above installed on your system.

First, install the composer package globally:

composer global require themsaid/ibis

Then, run this command inside an empty directory:

ibis init

This will create the following files and directories:

  • /assets
  • /assets/fonts
  • /assets/cover.jpg
  • /assets/theme-light.html
  • /assets/theme-dark.html
  • /content
  • /ibis.php

You may configure your book by editing the /ibis.php configuration file.

Writing Your eBook

Inside the content directory, you can write multiple .md files. Ibis uses the headings to divide the book into parts and chapters:

# Part 1

<h1> tags define the start of a part. A separate PDF page will be generated to print the part title and any content below.

## Chapter 1

<h2> tags define the start of a chapter. A chapter starts on a new page always.

### Starting with Ibis

<h3> tags define different titles inside a chapter.

Using Fonts

Edit your /ibis.php configuration files to define the font files to be loaded from the /assets/fonts directory. After that you may use the defined fonts in your themes (/assets/theme-light.html & /assets/theme-dark.html).

Generating PDF eBook

ibis build

Ibis will parse the files in alphabetical order and store the PDF file in /export.

The default is to generate the PDF using the light theme, to generate a PDF using the dark theme:

ibis build dark

Generating A Sample

ibis sample

ibis sample dark

This command will use the generated files from the ibis build command to generate samples from your PDF eBook. You can configure which pages to include in the sample by updating the /ibis.php file.

Credits

License

The MIT License (MIT). Please see License File for more information.

ibis's People

Contributors

themsaid avatar

Watchers

James Cloos 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.