5.1.3.5. epub

The epub provides a standard style contained in sphinx.

../../../_images/epub1.png

Figure: Theme ‘epub’

configuration

The current example implementation contains the files within the default path:

setupddocx/configurations/sphinx/epub

file

remark

docsrc/conf.py

adds configuration variables

docsrc/index.rst

adapted index

docsrc/_static/custom.css

sets some custom colors and sizes

docsrc/_static/favicon.ico

provides a demo favicon, requires ICO

docsrc/_static/logo.png

provides a demo logo, requires PNG

docsrc/_themes/epub_demo/theme.conf

configuration of theme

docsrc/_themes/epub_demo/_static/epub_acue.css_t

dapted style sheet

call

The call creates a EPUB document within the local directory doc

python setup.py  -q  \
   build_docx  \
      --conf-dir setupdocx/configurations/epub/ \
      --docname setupdocx-epub \
   install_docx \
      --dist-dir doc \
      --docname=setupdocx-epub

# cut-and-paste for execution
# for readability split acros multiple lines