http://azuwis.github.io/sphinx_demo/
Generate HTML:
# apt-get install --no-install-recommends python-sphinx make $ make html
Generate PDF:
# apt-get install --no-install-recommends texlive-xetex texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended lmodern fonts-linuxlibertine ttf-wqy-microhei $ make latexpdf
Use livereload to preview HTML, install livereload browser plugin, and:
# apt-get install --no-install-recommends python-pip $ pip install livereload $ make livehtml
Generate CHM:
# apt-get install --no-install-recommends fp-utils $ make chm
Tested with python-sphinx 1.1.3 and texlive 2012.20120611 on Debian unstable.
To use other CJK fonts, modify latex_elements option in source/conf.py. For more info, read xeCJK document.