• Stars
    star
    190
  • Rank 203,739 (Top 5 %)
  • Language
    Shell
  • License
    MIT License
  • Created over 5 years ago
  • Updated over 4 years ago

Reviews

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

Repository Details

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

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 [email protected]: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

additional Note (to get latest content)

# initial your git submodule in your local repo
git submodule init

# Change to the submodule directory
# replace 'submodule_dir' with '1st-edition' & '2nd-edition' respectively
cd submodule_dir

# Checkout desired branch
# replace 'master' with updated branch respectively
# At 2020/07/05, it is '1st-ed' and '2nd-ed' respectively

git checkout master

# Update
git pull

# Get back to your project root
cd ..

Known Issues & TODOs

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

More Repositories

1

julia-set-playground

A Swift playground that generates beautiful Julia set fractal images.
Swift
262
star
2

procbridge

A super-lightweight IPC (Inter-Process Communication) protocol over TCP socket.
121
star
3

fft2d-swift-playground

A Swift playground for 2D Image FFT (Fast Fourier Transformation) implementation.
Swift
37
star
4

procbridge-python

A super-lightweight IPC (Inter-Process Communication) protocol over TCP socket.
Python
24
star
5

swift-complex-number

An elegant complex number library for Swift. (You can do "i ^ 2 == -1")
Swift
14
star
6

GZMatchedTransformEffect

Create a 🧈 smooth transition between any two SwiftUI Views.
Swift
14
star
7

HiCoffeeApp

13
star
8

swift-fourier-expansion

A Swift playground that demonstrates the Fourier series expansion.
Swift
11
star
9

procbridge-java

A super-lightweight IPC (Inter-Process Communication) protocol over TCP socket.
Java
8
star
10

swift-event-dispatch

An extremely convenience Swift class that used to implement callbacks, property observing, event publish-subscribe, and MVC/MVP/MVVM patterns. It's also a replacement for KVO.
Swift
5
star
11

procbridge-nodejs

A super-lightweight IPC (Inter-Process Communication) protocol over TCP socket.
JavaScript
3
star
12

service-kit

A group of utility classes for developing Java CLI tools and services.
Java
2
star
13

vue-cli-docker

Docker image for Vue CLI 3
Dockerfile
2
star
14

ifs-fractal-playground

A Swift playground that demonstrates Iterated function systems (IFS) fractals.
Swift
2
star
15

swiftui-availability-check-crash

FB9816443
Swift
2
star
16

awesome-icloud-503

Help 🍎 Apple track and resolve the issue about ☁️ iCloud 503 service unavailable error.
2
star
17

conways-game-of-life

Conway's Game of Life in Xcode Playground
Swift
2
star
18

jdat

Java Dependency Analysis Toolkit
Java
1
star
19

snowberry

Integration of design patterns Eclipse plug-in
Java
1
star
20

snell-docker

Docker image for surge-networks/snell proxy service.
Dockerfile
1
star
21

procbridge-swift

A modern Swift implementation of ProcBridge
Swift
1
star
22

reverse-proxy

Simple Nginx HTTP Reverse Proxy
Dockerfile
1
star
23

album-splitter

Split single audio file into separate tracks.
Shell
1
star