Compare commits
2 Commits
323b893714
...
0bc31c418d
Author | SHA1 | Date | |
---|---|---|---|
|
0bc31c418d | ||
|
218595c922 |
BIN
sphinx/source/_static/epub_cover.png
Normal file
BIN
sphinx/source/_static/epub_cover.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 163 KiB |
@ -90,4 +90,5 @@ latex_elements = {
|
|||||||
latex_logo = '_static/wtf_coop_header.png'
|
latex_logo = '_static/wtf_coop_header.png'
|
||||||
latex_show_urls = 'footnote'
|
latex_show_urls = 'footnote'
|
||||||
|
|
||||||
epub_cover = ('_static/wtf_coop_header.png', 'epub-cover.html')
|
epub_theme = 'wtf_epub'
|
||||||
|
epub_cover = ('_static/epub_cover.png', 'epub-cover.html')
|
||||||
|
23
sphinx/theme/wtf_epub/epub-cover.html
Normal file
23
sphinx/theme/wtf_epub/epub-cover.html
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{#
|
||||||
|
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" style="background-image: url('{{ image }}');"></div>
|
||||||
|
{% endblock %}
|
9
sphinx/theme/wtf_epub/static/css/style.css
Normal file
9
sphinx/theme/wtf_epub/static/css/style.css
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
.epub-cover {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background-size: contain;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
}
|
3
sphinx/theme/wtf_epub/theme.conf
Normal file
3
sphinx/theme/wtf_epub/theme.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[theme]
|
||||||
|
inherit = epub
|
||||||
|
stylesheet = css/style.css
|
Loading…
Reference in New Issue
Block a user