diff options
author | SHIMIZU Taku <shimizu.taku@gmail.com> | 2015-03-14 18:06:48 +0900 |
---|---|---|
committer | SHIMIZU Taku <shimizu.taku@gmail.com> | 2016-02-07 14:20:32 +0900 |
commit | f730bebf61d4b6f36d1b3dce8d3d62afd6fd0b89 (patch) | |
tree | 585a5d92c9a173ea42ae0c5f5bfcb95ce26637d6 /sphinx/quickstart.py | |
parent | 42497eb9c54bb118f2e07ceea9d7cfaf245ea0a9 (diff) | |
download | sphinx-git-f730bebf61d4b6f36d1b3dce8d3d62afd6fd0b89.tar.gz |
Add EPUB 3 builder.
Diffstat (limited to 'sphinx/quickstart.py')
-rw-r--r-- | sphinx/quickstart.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sphinx/quickstart.py b/sphinx/quickstart.py index e2f6edd45..7d7271824 100644 --- a/sphinx/quickstart.py +++ b/sphinx/quickstart.py @@ -503,6 +503,7 @@ help: \t@echo " applehelp to make an Apple Help Book" \t@echo " devhelp to make HTML files and a Devhelp project" \t@echo " epub to make an epub" +\t@echo " epub3 to make an epub3" \t@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" \t@echo " latexpdf to make LaTeX files and run them through pdflatex" \t@echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx" @@ -596,6 +597,12 @@ epub: \t@echo \t@echo "Build finished. The epub file is in $(BUILDDIR)/epub." +.PHONY: epub3 +epub3: +\t$(SPHINXBUILD) -b epub3 $(ALLSPHINXOPTS) $(BUILDDIR)/epub3 +\t@echo +\t@echo "Build finished. The epub3 file is in $(BUILDDIR)/epub3." + .PHONY: latex latex: \t$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex @@ -719,6 +726,7 @@ if "%%1" == "help" ( \techo. qthelp to make HTML files and a qthelp project \techo. devhelp to make HTML files and a Devhelp project \techo. epub to make an epub +\techo. epub3 to make an epub3 \techo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter \techo. text to make text files \techo. man to make manual pages @@ -841,6 +849,14 @@ if "%%1" == "epub" ( \tgoto end ) +if "%%1" == "epub3" ( +\t%%SPHINXBUILD%% -b epub3 %%ALLSPHINXOPTS%% %%BUILDDIR%%/epub3 +\tif errorlevel 1 exit /b 1 +\techo. +\techo.Build finished. The epub3 file is in %%BUILDDIR%%/epub3. +\tgoto end +) + if "%%1" == "latex" ( \t%%SPHINXBUILD%% -b latex %%ALLSPHINXOPTS%% %%BUILDDIR%%/latex \tif errorlevel 1 exit /b 1 |