Add options for creating epub output for the documentation
This commit is contained in:
parent
4256522fc8
commit
58b2af8c09
2 changed files with 14 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue