GithubHelp home page GithubHelp logo

css-books's Introduction

css-books

Example files for building CSS books. I use these as my starting point and reference them in my presentation CSS and Ebooks and Net Magazine tutorial. Resources and more information about CSS and creating ebooks in a variety of formats can be found on my site Book Toolkit.

Using these files

The file book.html contains 3 articles from my blog to create a "book" of three chapters.

These files are for use when creating an ebook in formats for EPUB, MOBI and PDF using the following commandline tools.

Download and install these tools first. Prince is a commercial tool however you can use it free of charge for non-commercial usage.

Git clone this repository.

Create an EPUB

Change into the css-ebooks directory and at the cli run:

> pandoc -o builds/book.epub book.html --epub-metadata=metadata.xml --toc --toc-depth=2 --epub-cover-image=cover.png --epub-stylesheet=epub-styles.css

Create a MOBI

Use your EPUB as the source for the Kindlegen tool.

> /Applications/KindleGen/kindlegen builds/book.epub

Create a PDF

This uses the toc.html file to create the table of contents.

> prince -s pdf-styles.css toc.html book.html builds/book.pdf

I've avoided doing much in the way of typography in these examples but feel free to fork this and make it pretty.

css-books's People

Contributors

rachelandrew avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.