mirror of
https://bitbucket.org/oreolek/imaginary-realities.git
synced 2024-05-02 09:09:36 +03:00
Various cleanup and fixes to get the ebooks to generate cleanly.
This commit is contained in:
parent
4bf47b14c7
commit
cc0ce6f00d
|
@ -139,6 +139,7 @@ def init_template_data(tp):
|
|||
tp.key = None
|
||||
tp.full_url = tp.page_permanent_id.replace("website/", "http://"+ setting_domain_name +"/")
|
||||
tp.target_is_online = (setting_generation_target & FLAG_ONLINE) == FLAG_ONLINE
|
||||
tp.target_is_website = (setting_generation_target & TARGET_WEBSITE) == TARGET_WEBSITE
|
||||
|
||||
tp.sections = TemplateParameters()
|
||||
|
||||
|
@ -600,6 +601,8 @@ if __name__ == "__main__":
|
|||
generate_website()
|
||||
elif (setting_generation_target & TARGET_EBOOK) == TARGET_EBOOK:
|
||||
generate_issues(issue_data)
|
||||
# --disable-font-rescaling --margin-bottom=72 --margin-top=72 --margin-left=72 --margin-right=72 --chapter=/ --page-breaks-before=/ --chapter-mark=rule
|
||||
# C:\RMT\VCS\GIT\Web\imaginary-realities>"c:\Program Files (x86)\Calibre2\ebook-convert.exe" ebooks\volume-07\issue-02\index.html issue.epub --disable-font-rescaling --margin-bottom=72 --margin-top=72 --margin-left=72 --margin-right=72 --chapter=/ --page-breaks-before=/ --chapter-mark=rule --output-profile=default --input-profile=default --preserve-cover-aspect-ratio --pretty-print
|
||||
|
||||
if not setting_finalise:
|
||||
print "WARNING: Results are not finalised, published result should be finalised."
|
||||
|
|
|
@ -1,16 +1,13 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<!-- This page is generated from templates -->
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta charset="UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
|
||||
<link href="{{tp.link_prefix}}css/reset.css" rel="stylesheet" media="screen, handheld, print, projection">
|
||||
<link href="{{tp.link_prefix}}css/style.css" rel="stylesheet" media="screen, handheld, print, projection">
|
||||
<link href="{{tp.link_prefix}}css/style-desktop.css" rel="stylesheet" media="screen and (min-device-width:768px) and (min-width:768px), print, projection">
|
||||
<link href="{{tp.link_prefix}}css/style-ebook.css" rel="stylesheet" media="screen, handheld, print, projection">
|
||||
<link href="{{tp.link_prefix}}css/reset.css" rel="stylesheet" media="screen, handheld, print, projection"/>
|
||||
<link href="{{tp.link_prefix}}css/style.css" rel="stylesheet" media="screen, handheld, print, projection"/>
|
||||
<link href="{{tp.link_prefix}}css/style-ebook.css" rel="stylesheet" media="screen, handheld, print, projection"/>
|
||||
{% block extra_head_content %}{% endblock%}
|
||||
<script src="{{tp.link_prefix}}js/modernizr.js"></script>
|
||||
|
||||
<title>{{tp.website_title_text}} - {% block page_title %}{% endblock %}</title>
|
||||
</head>
|
||||
|
|
|
@ -4,7 +4,6 @@ body {
|
|||
background-color: white;
|
||||
}
|
||||
|
||||
div.text-read-issue {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.row-link {
|
||||
height: inherit;
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
{% extends "base.html" %}
|
||||
{% block extra_head_content %}
|
||||
<link href="{{tp.link_prefix}}css/style-article.css" rel="stylesheet" media="screen, handheld, print, projection">
|
||||
<link href="{{tp.link_prefix}}css/style-article.css" rel="stylesheet" media="screen, handheld, print, projection"/>
|
||||
{% endblock%}
|
||||
{% block header_subtitle %}<div class="header-name"><a href="{{tp.issue_link}}">Volume {{tp.volume_number}}, Issue {{tp.issue_number}}</a></div>{% endblock %}
|
||||
{% block page_menu %}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
<span class="headermenu-link"><a href="{{tp.homepage_link}}">Main Site</a></span><span class="headermenu-link"><a href="{{tp.contribute_link}}">Contribute An Article</a></span>
|
||||
{% endblock %}
|
||||
{% block page_content %}
|
||||
{% if tp.target_is_website %}
|
||||
<div class="mainsection">
|
||||
<div class="mainbody">
|
||||
<img alt="{{tp.logo_text}}" src="{{tp.link_prefix}}{{tp.logo_link}}" style="float: left; display: inline-block; padding-right: 15px"/>
|
||||
|
@ -15,9 +16,11 @@
|
|||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mainsection">
|
||||
{% endif %}
|
||||
<div class="mainsection issue-toc">
|
||||
<div class="mainheader"><a name="article-title">{% block page_title %}{{tp.page_title}}{% endblock %}</a></div>
|
||||
<div class="mainbody">
|
||||
{% if tp.target_is_website %}
|
||||
<div class="table-base-wrapper indent-left">
|
||||
<table class="table-base table-toc">
|
||||
<thead>
|
||||
|
@ -39,6 +42,13 @@
|
|||
<div class="text-read-issue">
|
||||
<a class="action-button" href="{{tp.issue.read_link}}">{{tp.issue.read_text}}</a>
|
||||
</div>
|
||||
{% else %}
|
||||
<ol>
|
||||
{% for article in tp.issue.articles %}
|
||||
<li><a class="row-link" href="{{article.link}}">{{article.title}}</a></li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<!-- This page is generated from templates -->
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta charset="UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
|
||||
<link rel="alternate" type="application/rss+xml" href="{{tp.rss_link}}" title="Imaginary Realities release feed">
|
||||
<link href="{{tp.link_prefix}}css/reset.css" rel="stylesheet" media="screen, handheld, print, projection">
|
||||
<link href="{{tp.link_prefix}}css/style.css" rel="stylesheet" media="screen, handheld, print, projection">
|
||||
<link href="{{tp.link_prefix}}css/style-desktop.css" rel="stylesheet" media="screen and (min-device-width:768px) and (min-width:768px), print, projection">
|
||||
<link rel="alternate" type="application/rss+xml" href="{{tp.rss_link}}" title="Imaginary Realities release feed"/>
|
||||
<link href="{{tp.link_prefix}}css/reset.css" rel="stylesheet" media="screen, handheld, print, projection"/>
|
||||
<link href="{{tp.link_prefix}}css/style.css" rel="stylesheet" media="screen, handheld, print, projection"/>
|
||||
<link href="{{tp.link_prefix}}css/style-desktop.css" rel="stylesheet" media="screen and (min-device-width:768px) and (min-width:768px), print, projection"/>
|
||||
{% block extra_head_content %}{% endblock%}
|
||||
<script src="{{tp.link_prefix}}js/modernizr.js"></script>
|
||||
|
||||
|
|
|
@ -406,28 +406,6 @@ footer .section a:hover {
|
|||
padding: 0 10px 0 10px;
|
||||
}
|
||||
|
||||
.main {
|
||||
/* set a min-height and a z-index to be sure that the main element completely covers the lateral menu */
|
||||
z-index: 800;
|
||||
/* Force Hardware Acceleration in WebKit */
|
||||
-webkit-transform: translateZ(0);
|
||||
-webkit-backface-visibility: hidden;
|
||||
-webkit-transition-property: -webkit-transform;
|
||||
-moz-transition-property: -moz-transform;
|
||||
transition-property: transform;
|
||||
-webkit-transition-duration: 0.4s;
|
||||
-moz-transition-duration: 0.4s;
|
||||
transition-duration: 0.4s;
|
||||
}
|
||||
.main.lateral-menu-is-open {
|
||||
/* translate to show the lateral menu - all content needs to be put in the .cd-main-content to translate*/
|
||||
-webkit-transform: translateX(-260px);
|
||||
-moz-transform: translateX(-260px);
|
||||
-ms-transform: translateX(-260px);
|
||||
-o-transform: translateX(-260px);
|
||||
transform: translateX(-260px);
|
||||
}
|
||||
|
||||
.rcaptionblock {
|
||||
display: inline;
|
||||
float: right;
|
||||
|
|
Loading…
Reference in a new issue