• This repository has been archived on 29/Aug/2023
  • Stars
    star
    218
  • Rank 181,805 (Top 4 %)
  • Language
    Go
  • License
    MIT License
  • Created over 8 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Go library for creating EPUB files

CI 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

Contributions

Contributions are welcome; please see CONTRIBUTING.md for more information.

Development

Clone this repository using Git. Run tests as documented below.

Dependencies are managed using Go modules

Testing

EPUBCheck

EPUBCheck is a tool that will check an EPUB for validation errors.

If EPUBCheck is installed locally, it will be run alongside the Go tests. To install EPUBCheck:

  1. Make sure you have Java installed on your system

  2. Get the latest version of EPUBCheck from https://github.com/w3c/epubcheck/releases

  3. Download and extract EPUBCheck in the root directory of this project, e.g.

    wget https://github.com/IDPF/epubcheck/releases/download/v4.2.5/epubcheck-4.2.5.zip
    unzip epubcheck-4.2.5.zip
    

If you do not wish to install EPUBCheck locally, you can manually validate the EPUB:

  1. Set doCleanup = false in epub_test.go

  2. Run the tests (see below)

  3. Upload the generated My EPUB.epub file to http://validator.idpf.org/

Run tests

go test

More Repositories

1

civ5save-editor

Civilization V save editor
JavaScript
28
star
2

motorola-boot-animations

All official Motorola Android boot animations for the Moto G
Shell
22
star
3

epub-samples

Sample EPUB files for testing/development
HTML
21
star
4

js-civ5save

Library for working with Civilization V save files
JavaScript
11
star
5

wiki

My wiki
CSS
11
star
6

test-javascript-executables

Dockerfile
9
star
7

solarized-dark-high-contrast

Various config files for the Solarized dark high contrast color scheme
Python
9
star
8

android-pitchpipe

Kotlin
5
star
9

civ-be-linux-fixes

Fixes for various bugs in Beyond Earth on Linux
Shell
4
star
10

flashcard-sets

Various sets of flashcards
TypeScript
4
star
11

langtrends

Programming language trends
TypeScript
3
star
12

kodi-xmbc-toutv

[UNMAINTAINED] ICI Tou.tv add-on for Kodi
Python
2
star
13

node-saml-oauth

Minimal SAML/OAuth example with Node.js
JavaScript
2
star
14

wordpress-site-plugins

Wordpress Site Plugins page, much like the Wordpress MU Site Themes page
PHP
2
star
15

learning

Misc learning materials, coursework, etc
Java
2
star
16

configs

Workstation configuration
Shell
2
star
17

android-update-emoji

Flashable zips for updating emoji on Android
Shell
2
star
18

shibboleth-attribute-viewer

Shibboleth attribute viewer
PHP
2
star
19

vscode-copy-without-formatting

Visual Studio Code extension to copy text without formatting (syntax highlighting, font, etc)
TypeScript
2
star
20

micro-beyond-earth

Play Beyond Earth with extremely small maps and additional game options for shorter games
Lua
1
star
21

civ5-cheevos-with-mods

Enable achievements with mods in Civ 5 or Beyond Earth
Shell
1
star
22

graylog-syslog-examples

Various documentation and example apps for sending logs to Graylog via syslog
Groovy
1
star
23

pdf-samples

Sample PDF files for testing/development
1
star
24

junkpile

Where everything else goes
HTML
1
star
25

levelator-docker

Dockerfile
1
star
26

epub-bibles

Public domain Bibles for e-readers
TypeScript
1
star
27

go-fileutil

Go utility package for working with files
Go
1
star
28

clean-cv-template

Clean CV template
HTML
1
star
29

openldap-tools-static

Static builds of OpenLDAP client tools
Shell
1
star
30

react-civ5save-editor

Minimal redirect for https://bmaupin.github.io/civ5save-editor/
HTML
1
star