diff options
Diffstat (limited to 'theme/templates/ebook')
-rw-r--r-- | theme/templates/ebook/footer.html | 8 | ||||
-rw-r--r-- | theme/templates/ebook/glossary.html | 22 | ||||
-rw-r--r-- | theme/templates/ebook/header.html | 7 | ||||
-rw-r--r-- | theme/templates/ebook/layout.html | 24 | ||||
-rw-r--r-- | theme/templates/ebook/page.html | 40 | ||||
-rw-r--r-- | theme/templates/ebook/summary.html | 47 |
6 files changed, 0 insertions, 148 deletions
diff --git a/theme/templates/ebook/footer.html b/theme/templates/ebook/footer.html deleted file mode 100644 index 8592213..0000000 --- a/theme/templates/ebook/footer.html +++ /dev/null @@ -1,8 +0,0 @@ -<html> - <body> - <div class="pdf-footer"> - <span>_SECTION_</span> - <span class="footer-pages-count">_PAGENUM_</span> - </div> - </body> -</html>
\ No newline at end of file diff --git a/theme/templates/ebook/glossary.html b/theme/templates/ebook/glossary.html deleted file mode 100644 index ddc8809..0000000 --- a/theme/templates/ebook/glossary.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends "./page.html" %} - -{% block title %}{{ __("GLOSSARY") }} | {{ title }}{% endblock %} - -{% block page %} - <h1 class="book-chapter book-chapter-1">{{ __("GLOSSARY") }}</h1> - <div class="section glossary"> - <h1>{{ __("GLOSSARY") }}</h1> - - {% for item in glossary %} - <div class="glossary-entry" id="{{ item.id }}"> - <h2><a href="#{{ item.id }}">{{ item.name }}</a></h2> - <p>{{ item.description|safe }}</p> - <ul class="glossary-index"> - {% for file in item.files %} - <li><a href="{{ basePath }}/{{ file.path|contentLink }}"><span class="level">{{ file.level }}.</span> {{ file.title }}</a></li> - {% endfor %} - </ul> - </div> - {% endfor %} - </div> -{% endblock %} diff --git a/theme/templates/ebook/header.html b/theme/templates/ebook/header.html deleted file mode 100644 index 6b5d295..0000000 --- a/theme/templates/ebook/header.html +++ /dev/null @@ -1,7 +0,0 @@ -<html> - <body> - <div class="pdf-header"> - <span>_TITLE_</span> - </div> - </body> -</html>
\ No newline at end of file diff --git a/theme/templates/ebook/layout.html b/theme/templates/ebook/layout.html deleted file mode 100644 index e45430d..0000000 --- a/theme/templates/ebook/layout.html +++ /dev/null @@ -1,24 +0,0 @@ -<!DOCTYPE HTML> -<html lang="{{ language }}" {% block htmlTag %}{% endblock %} {% if options.direction == "rtl" %}dir="rtl"{% endif %}> - {{ htmlSnippet("html:start")|default("", true)|safe }} - <head> - {{ htmlSnippet("head:start")|default("", true)|safe }} - <meta charset="UTF-8"> - <title>{% block title %}{% endblock %}</title> - <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> - <meta name="description" content="{% block description %}{% endblock %}"> - <meta name="generator" content="GitBook {{ gitbook.version }}"> - {% if options.author %}<meta name="author" content="{{ options.author }}">{% endif %} - {% if options.isbn %}<meta name="identifier" content="{{ options.isbn }}" scheme="ISBN">{% endif %} - {% block head %}{% endblock %} - {% block style %}{% endblock %} - {{ htmlSnippet("head:end")|default("", true)|safe }} - </head> - <body class="dir-{{ options.direction }}"> - {{ htmlSnippet("body:start")|default("", true)|safe }} - {% block content %}{% endblock %} - {% block javascript %}{% endblock %} - {{ htmlSnippet("body:end")|default("", true)|safe }} - </body> - {{ htmlSnippet("html:end")|default("", true)|safe }} -</html> diff --git a/theme/templates/ebook/page.html b/theme/templates/ebook/page.html deleted file mode 100644 index 47420b8..0000000 --- a/theme/templates/ebook/page.html +++ /dev/null @@ -1,40 +0,0 @@ -{% extends "./layout.html" %} - -{% block title %}{{ progress.current.title }} | {{ title }}{% endblock %} - -{% block style %} - {# Default styles if not disabled #} - {% if not styles.print %} - <link rel="stylesheet" href="{{ staticBase }}/{{ options.generator }}.css"> - {% endif %} - - {# Style from plugins #} - {% for resource in plugins.resources.css %} - {% if resource.url %} - <link rel="stylesheet" href="{{ resource.url }}"> - {% else %} - <link rel="stylesheet" href="{{ staticBase }}/plugins/{{ resource.path }}"> - {% endif %} - {% endfor %} - - {# Custom styles from the book #} - {% for type, style in styles %} - <link rel="stylesheet" href="{{ basePath }}/{{ style }}"> - {% endfor %} -{% endblock %} - -{% block content %} -<div class="page"> - {% block page %} - <h1 class="book-chapter book-chapter-{{ progress.current.level|lvl }}">{{ progress.current.title }}</h1> - {% for section in content %} - <div class="section {{ section.type }}" id="section-{{ section.id }}"> - {% if section.type == "normal" %} - {% autoescape false %}{{ section.content }}{% endautoescape %} - {% endif %} - </div> - {% endfor %} - {% endblock %} -</div> -{% endblock %} - diff --git a/theme/templates/ebook/summary.html b/theme/templates/ebook/summary.html deleted file mode 100644 index 237ae6e..0000000 --- a/theme/templates/ebook/summary.html +++ /dev/null @@ -1,47 +0,0 @@ -{% extends "./page.html" %} - -{% block title %}{{ __("SUMMARY") }} | {{ title }}{% endblock %} - -{% macro articles(_articles) %} - {% for item in _articles %} - <li> - <span class="inner"> - {% if item.path and item.exists %} - {% if not item.external %} - <a href="{{ basePath }}/{{ item.path|contentLink }}">{{ item.title }}</a> - {% else %} - <a target="_blank" href="{{ item.path }}">{{ item.title }}</a> - {% endif %} - {% else %} - <span>{{ item.title }}</span> - {% endif %} - {% if options.generator != "mobi" %} - <span class="page">{{ item.level }}</span> - {% endif %} - </span> - {% if item.articles.length > 0 %} - <ol> - {{ articles(item.articles) }} - </ol> - {% endif %} - </li> - {% endfor %} -{% endmacro %} - -{% block page %} -<div class="section toc"> - <h1>{{ __("SUMMARY") }}</h1> - <ol> - {{ articles(summary.chapters) }} - - {% if glossary.length > 0 %} - <li> - <span class="inner"> - <a href="{{ basePath }}/GLOSSARY.html">{{ __("GLOSSARY") }}</a> - </span> - </li> - {% endif %} - </ol> -</div> -{% endblock %} - |