McSmog / you-dont-know-js-epub

"You Don't Know JS Yet" (2nd Edition) ePub generator.

Home Page:https://github.com/getify/You-Dont-Know-JS/tree/2nd-ed

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

you-dont-know-js-epub

"You Don't Know JS Yet" (1st/2nd editions) ePub generator.

Generate the ePub

Run with Docker:

# force update to the latest image
docker pull gongzhang/ydkjs-epub

# generate epub into output folder
docker run --rm -it -v $PWD/output:/root/output gongzhang/ydkjs-epub

Then the generated epub files are in output folder:

Note that the first two books (Get Started and Scope & Closures) are from the latest 2nd edition, and the rest are from the 1st edition.

Customization

First, recursively clone this repo to your machine:

git clone --recursive git@github.com:gongzhang/you-dont-know-js-epub.git

Then you can:

  • Modify epub.css to customize the style.
  • Read gen.sh to understand how the generator works.
  • Fetch the latest book content using git submodule command under 1st-edition and 2nd-edition directory.

Finally, rebuild the Docker image and generate your own version epubs:

docker build -t ydkjs-epub .
docker run --rm -it -v $PWD/output:/root/output ydkjs-epub

Known Issues & TODOs

  • Support syntax highlighing (The latest pandoc does support syntax highlight, but the genrated ePub cannot be correctly rendered by iBooks app.)

About

"You Don't Know JS Yet" (2nd Edition) ePub generator.

https://github.com/getify/You-Dont-Know-JS/tree/2nd-ed

License:MIT License


Languages

Language:Shell 72.6%Language:CSS 24.3%Language:Dockerfile 3.0%