Go library for creating EPUB files
Go CSS
Switch branches/tags
Clone or download
Permalink
Failed to load latest commit information.
testdata
vendor/github.com/satori/go.uuid
.gitignore
.travis.yml
Gopkg.lock
Gopkg.toml
LICENSE
README.md
epub.go Remove unused defaultPpd constant Dec 15, 2016
epub_test.go
example_test.go
pkg.go
toc.go
write.go
xhtml.go

README.md

Build Status Coverage Status Go Report Card License GoDoc

Features

  • Documented API
  • Creates valid EPUB 3.0 files
  • Adds an additional EPUB 2.0 table of contents (as seen here) for maximum compatibility
  • Includes support for adding CSS, images, and fonts

For an example of actual usage, see https://github.com/bmaupin/go-docs-epub

Installation

go get github.com/bmaupin/go-epub

Development

go get github.com/bmaupin/go-epub
cd $GOPATH/src/github.com/bmaupin/go-epub

Dependencies are stored in the vendor directory and managed using golang/dep

Testing

  1. (Optional) Install EpubCheck

    wget https://github.com/IDPF/epubcheck/releases/download/v4.0.2/epubcheck-4.0.2.zip
    unzip epubcheck-4.0.2.zip
    
  2. Run tests

    go test