forked from gulliver/rtfm
feat: created epub theme to change the cover
This commit is contained in:
parent
323b893714
commit
218595c922
@ -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')
|
||||
|
25
sphinx/theme/wtf_epub/epub-cover.html
Normal file
25
sphinx/theme/wtf_epub/epub-cover.html
Normal 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 %}
|
2
sphinx/theme/wtf_epub/theme.conf
Normal file
2
sphinx/theme/wtf_epub/theme.conf
Normal file
@ -0,0 +1,2 @@
|
||||
[theme]
|
||||
inherit = epub
|
Loading…
Reference in New Issue
Block a user