1 Star 0 Fork 1

Joongi / learn500lines

forked from 欧阳雨雪15 / learn500lines 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
BUILD.md 1.62 KB
一键复制 编辑 原始数据 按行查看 历史
Michael DiBernardo 提交于 2016-07-05 08:59 . Update BUILD.md

Building 500 Lines or Less

500 Lines or Less has been successfully built on several Linux systems, as well as OSX 10.10+. Almost all of the software mentioned in the below instructions should be available via your favorite package manager, with the possible exception of LaTeX on OS X (common practice seems to be installing MacTex via the pkg installer.)

Base instructions:

  • Install Python 2.7.
  • You may want to use virtualenv to isolate your Python build environment for 500Lines. pyenv is a simple way to manage this:
    • cd 500lines
    • pyenv virtualenv 500l
    • pyenv local 500l
  • pip install -r requirements.txt. If you haven't used virtualenv, you may need to sudo pip install -r requirements.txt.
  • Install pandoc and pandoc-citeproc. These should both be available via your favorite package manager.

Building the PDF:

  • Install a LaTeX distribution.
  • python build.py --pdf
  • Output will be in output/500L.pdf

Building the HTML:

  • python build.py --html
  • cd html
  • make serve

Building the ePub:

Warning: the ePub version of 500Lines is an "unsupported product"; the print and code formatting is poor, raw LaTeX is displayed in several places, the code is difficult to read, and images have not been optimized for the format. However, if you really want 500Lines in your favorite reader, this is one way to do it.

  • python build.py --epub --pandoc-epub
  • Output will be in output/500L.epub
1
https://gitee.com/joongi/learn500lines.git
git@gitee.com:joongi/learn500lines.git
joongi
learn500lines
learn500lines
master

搜索帮助