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 ad37f81..7daa9d1 100644 --- a/sphinx/source/conf.py +++ b/sphinx/source/conf.py @@ -91,4 +91,4 @@ latex_logo = '_static/wtf_coop_header.png' latex_show_urls = 'footnote' epub_theme = 'wtf_epub' -epub_cover = ('_static/wtf_coop_header.png', 'epub-cover.html') +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 index fdd8763..5a93847 100644 --- a/sphinx/theme/wtf_epub/epub-cover.html +++ b/sphinx/theme/wtf_epub/epub-cover.html @@ -19,7 +19,5 @@ Sample template for the html cover page. {%- block footer %}{% endblock %} {% block content %} -
-Cover image -
+
{% 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 index c4640d8..42292c6 100644 --- a/sphinx/theme/wtf_epub/theme.conf +++ b/sphinx/theme/wtf_epub/theme.conf @@ -1,2 +1,3 @@ [theme] inherit = epub +stylesheet = css/style.css