Add options for creating epub output for the documentation

This commit is contained in:
Mirko Friedenhagen 2012-05-17 22:58:57 +02:00
parent 4256522fc8
commit 58b2af8c09
2 changed files with 14 additions and 0 deletions

View file

@ -34,6 +34,7 @@ endif
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " pygments to locally install the custom pygments styles"
@echo " epub to make an epub"
@echo " html to make standalone HTML files"
@echo " singlehtml to make a single large HTML file"
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
@ -53,6 +54,11 @@ pygments:
$(LOCALPACKAGES):
$(MAKE) pygments
epub: $(LOCALPACKAGES)
$(SPHINXBUILD) $(SPHINXFLAGS) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
@echo
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
html: $(LOCALPACKAGES)
$(SPHINXBUILD) $(SPHINXFLAGS) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo

View file

@ -52,6 +52,14 @@ html_context = {
'include_analytics': 'online' in tags
}
# -- Options for EPUB output ---------------------------------------------------
epub_author = "Typesafe Inc"
epub_language = "en"
epub_publisher = epub_author
epub_identifier = "http://doc.akka.io/docs/akka/snapshot/"
epub_scheme = "URL"
epub_cover = ("_sphinx/static/akka.png", "")
# -- Options for LaTeX output --------------------------------------------------
def setup(app):