feat: created epub theme to change the cover

This commit is contained in:
Stephan 2021-09-05 15:31:09 +02:00
parent 323b893714
commit 218595c922
3 changed files with 29 additions and 1 deletions

View File

@ -90,4 +90,5 @@ latex_elements = {
latex_logo = '_static/wtf_coop_header.png'
latex_show_urls = 'footnote'
epub_cover = ('_static/wtf_coop_header.png', 'epub-cover.html')
epub_theme = 'wtf_epub'
epub_cover = ('_static/wtf_coop_header.png', 'epub-cover.html')

View File

@ -0,0 +1,25 @@
{#
epub/epub-cover.html
~~~~~~~~~~~~~~~~~~~~
Sample template for the html cover page.
:copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
#}
{%- extends "layout.html" %}
{%- block header %}{% endblock %}
{%- block rootrellink %}{% endblock %}
{%- block relbaritems %}{% endblock %}
{%- block sidebarlogo %}{% endblock %}
{%- block linktags %}{% endblock %}
{%- block relbar1 %}{% endblock %}
{%- block sidebar1 %}{% endblock %}
{%- block sidebar2 %}{% endblock %}
{%- block footer %}{% endblock %}
{% block content %}
<div class="epub-cover">
<img src="{{ image }}" alt="Cover image" />
</div>
{% endblock %}

View File

@ -0,0 +1,2 @@
[theme]
inherit = epub