Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
JavaScript Ruby
Branch: master
Pull request Compare This branch is 8 commits ahead, 94 commits behind karlseguin:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
_static
en
src
template
zh-tw
.gitignore
cover.tex
index.rst
readme.markdown
start.rst
texput.log
watchr.rb

readme.markdown

The Little MongoDB Book 中文版

About

The Little MongoDB Book is a free book introducing MongoDB.

The book was written shortly after the creation of the MongoDB interactive tutorial. As such, the two can be seen as complementary.

The book was written by Karl Seguin, with Perry Neal's assistance.

License

The book is freely distributed under the Attribution-NonCommercial 3.0 Unported license.

Formats

The book is written in markdown and converted to PDF using PanDoc. A few LaTex specific commands have been placed in the markdown file to help with pdf-generation (namely for the title page and to create page breaks between chapters).

The LaTex template makes use of Lena Herrmann's JavaScript highlighter.

Kindle and ePub format provided using PanDoc. Run make en/mongodb.mobi to generate.

Generating the PDF

I use a variation of https://github.com/claes/pandoc-templates to generate the pdf:

#!/bin/sh
paper=a4paper
hmargin=3cm
vmargin=3cm
fontsize=11pt

mainfont=Verdana
sansfont=Tahoma
monofont="Courier New"
language=english
nohyphenation=false
columns=onecolumn
geometry=portrait
nohyphenation=true


markdown2pdf --xetex --template=template/xetex.template \
-V paper=$paper -V hmargin=$hmargin -V vmargin=$vmargin \
-V mainfont="$mainfont" -V sansfont="$sansfont" -V monofont="$monofont" \
-V geometry=$geometry -V alignment=$alignment -V columns=$columns \
-V fontsize=$fontsize -V nohyphenation=$nohyphenation \
-V toc=$toc --listings en/mongodb.markdown -o mongodb.pdf 

Title Image

A PSD of the title image is included. The font used is Comfortaa.

Something went wrong with that request. Please try again.