diff --git a/sphinx/source/_static/epub_cover.png b/sphinx/source/_static/epub_cover.png new file mode 100644 index 0000000..d7de6fd Binary files /dev/null and b/sphinx/source/_static/epub_cover.png differ diff --git a/sphinx/source/conf.py b/sphinx/source/conf.py index 482ef69..7daa9d1 100644 --- a/sphinx/source/conf.py +++ b/sphinx/source/conf.py @@ -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/epub_cover.png', 'epub-cover.html') diff --git a/sphinx/theme/wtf_epub/epub-cover.html b/sphinx/theme/wtf_epub/epub-cover.html new file mode 100644 index 0000000..5a93847 --- /dev/null +++ b/sphinx/theme/wtf_epub/epub-cover.html @@ -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 %} +
+{% endblock %} diff --git a/sphinx/theme/wtf_epub/static/css/style.css b/sphinx/theme/wtf_epub/static/css/style.css new file mode 100644 index 0000000..17bf81e --- /dev/null +++ b/sphinx/theme/wtf_epub/static/css/style.css @@ -0,0 +1,9 @@ +.epub-cover { + margin: 0; + padding: 0; + width: 100%; + height: 100%; + background-size: contain; + background-repeat: no-repeat; + background-position: center; +} diff --git a/sphinx/theme/wtf_epub/theme.conf b/sphinx/theme/wtf_epub/theme.conf new file mode 100644 index 0000000..42292c6 --- /dev/null +++ b/sphinx/theme/wtf_epub/theme.conf @@ -0,0 +1,3 @@ +[theme] +inherit = epub +stylesheet = css/style.css