diff options
Diffstat (limited to 'theme/templates')
-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 | ||||
-rw-r--r-- | theme/templates/website/glossary.html | 17 | ||||
-rw-r--r-- | theme/templates/website/includes/header.html | 12 | ||||
-rw-r--r-- | theme/templates/website/includes/summary.html | 57 | ||||
-rwxr-xr-x | theme/templates/website/langs.html | 25 | ||||
-rw-r--r-- | theme/templates/website/layout.html | 31 | ||||
-rw-r--r-- | theme/templates/website/page.html | 82 |
12 files changed, 0 insertions, 372 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 %} - diff --git a/theme/templates/website/glossary.html b/theme/templates/website/glossary.html deleted file mode 100644 index dd3f719..0000000 --- a/theme/templates/website/glossary.html +++ /dev/null @@ -1,17 +0,0 @@ -{% extends "page.html" %} - -{% block title %}{{ __("GLOSSARY") }} | {{ title }}{% endblock %} - -{% block page_inner %} - {% for item in glossary %} - <section class="normal glossary" 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> - </section> - {% endfor %} -{% endblock %} diff --git a/theme/templates/website/includes/header.html b/theme/templates/website/includes/header.html deleted file mode 100644 index 84ae83c..0000000 --- a/theme/templates/website/includes/header.html +++ /dev/null @@ -1,12 +0,0 @@ -<div class="book-header" role="navigation"> - <!-- Actions Left --> - {% if glossary.length > 0 %} - <a href="{{ basePath }}/GLOSSARY.html" class="btn pull-left" aria-label="{{ __("GLOSSARY_OPEN") }}"><i class="fa fa-sort-alpha-asc"></i></a> - {% endif %} - - <!-- Title --> - <h1> - <i class="fa fa-circle-o-notch fa-spin"></i> - <a href="{{ basePath }}/" >{{ title }}</a> - </h1> -</div> diff --git a/theme/templates/website/includes/summary.html b/theme/templates/website/includes/summary.html deleted file mode 100644 index ea0fe80..0000000 --- a/theme/templates/website/includes/summary.html +++ /dev/null @@ -1,57 +0,0 @@ -{% macro articles(_articles) %} - {% for item in _articles %} - <li class="chapter {% if item.path == _input %}active{% endif %}" data-level="{{ item.level }}" {% if item.path and not item.external %}data-path="{{ item.path|contentLink }}"{% endif %}> - {% if item.path and item.exists %} - {% if not item.external %} - <a href="{{ basePath }}/{{ item.path|contentLink }}"> - {% else %} - <a target="_blank" href="{{ item.path }}"> - {% endif %} - <i class="fa fa-check"></i> - {% if item.level != "0" %} - <b>{{ item.level }}.</b> - {% endif %} - {{ item.title }} - </a> - {% else %} - <span><b>{{ item.level }}.</b> {{ item.title }}</span> - {% endif %} - {% if item.articles.length > 0 %} - <ul class="articles"> - {{ articles(item.articles) }} - </ul> - {% endif %} - </li> - {% endfor %} -{% endmacro %} - -<div class="book-summary"> - <nav role="navigation"> - <ul class="summary"> - {% set _divider = false %} - {% if options.links.sidebar %} - {% for linkTitle, link in options.links.sidebar %} - {% set _divider = true %} - <li> - <a href="{{ link }}" target="blank" class="custom-link">{{ linkTitle }}</a> - </li> - {% endfor %} - {% endif %} - - {% if _divider %} - <li class="divider"></li> - {% endif %} - - {{ articles(summary.chapters) }} - - {% if options.links.gitbook != false %} - <li class="divider"></li> - <li> - <a href="https://www.gitbook.com" target="blank" class="gitbook-link"> - {{ __("GITBOOK_LINK") }} - </a> - </li> - {% endif %} - </ul> - </nav> -</div> diff --git a/theme/templates/website/langs.html b/theme/templates/website/langs.html deleted file mode 100755 index 66770ec..0000000 --- a/theme/templates/website/langs.html +++ /dev/null @@ -1,25 +0,0 @@ -{% extends "./layout.html" %} - -{% block title %}{{ __("LANGS_CHOOSE") }} | {{ title }}{% endblock %} - -{% block style %} -<link rel="stylesheet" href="{{ staticBase }}/style.css"> -{% endblock %} - -{% block content %} -<div class="book-langs-index" role="navigation"> - <div class="inner"> - <h3>{{ __("LANGS_CHOOSE") }}</h3> - - <ul class="languages"> - {% for lang in langs %} - <li> - <a href="{{ basePath}}/{{ lang.lang }}/index.html">{{ lang.title }}</a> - </li> - {% endfor %} - </ul> - </div> -</div> -{% endblock %} - -{% block javascript %}{% endblock %} diff --git a/theme/templates/website/layout.html b/theme/templates/website/layout.html deleted file mode 100644 index f3817d9..0000000 --- a/theme/templates/website/layout.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE HTML> -<html lang="{{ language }}" {% if options.direction == "rtl" %}dir="rtl"{% endif %}> - {{ htmlSnippet("html:start")|default("", true)|safe }} - <head> - {{ htmlSnippet("head:start")|default("", true)|safe }} - <meta charset="UTF-8"> - <meta http-equiv="X-UA-Compatible" content="IE=edge" /> - <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 %} - <meta name="HandheldFriendly" content="true"/> - <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> - <meta name="apple-mobile-web-app-capable" content="yes"> - <meta name="apple-mobile-web-app-status-bar-style" content="black"> - <link rel="apple-touch-icon-precomposed" sizes="152x152" href="{{ staticBase }}/images/apple-touch-icon-precomposed-152.png"> - <link rel="shortcut icon" href="{{ staticBase }}/images/favicon.ico" type="image/x-icon"> - {% block style %}{% endblock %} - {% block head %}{% endblock %} - {{ htmlSnippet("head:end")|default("", true)|safe }} - </head> - <body> - {{ 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/website/page.html b/theme/templates/website/page.html deleted file mode 100644 index 6c29164..0000000 --- a/theme/templates/website/page.html +++ /dev/null @@ -1,82 +0,0 @@ -{% extends "./layout.html" %} - -{% block head %} - {{ super() }} - {% if progress.current.next and progress.current.next.path %} - <link rel="next" href="{{ basePath }}/{{ progress.current.next.path|contentLink }}" /> - {% endif %} - {% if progress.current.prev and progress.current.prev.path %} - <link rel="prev" href="{{ basePath }}/{{ progress.current.prev.path|contentLink }}" /> - {% endif %} -{% endblock %} - -{% block title %}{{ progress.current.title }} | {{ title }}{% endblock %} -{% block description %}{% if progress.current.level == "0" %}{{ description }}{% endif %}{% endblock %} - -{% block content %} - <div class="book" - data-level="{{ progress.current.level }}" - data-chapter-title="{{ progress.current.title }}" - data-filepath="{{ progress.current.path }}" - data-basepath="{{ basePath }}" - data-revision="{{ revision }}" - data-innerlanguage="{{ innerlanguage }}"> - {% include "includes/summary.html" %} - <div class="book-body"> - <div class="body-inner"> - {% include "includes/header.html" %} - <div class="page-wrapper" tabindex="-1" role="main"> - <div class="page-inner"> - {% block page_inner %} - {% for section in content %} - <section class="{{ section.type }}" id="section-{{ section.id }}"> - {% if section.type == "normal" %} - {% autoescape false %}{{ section.content }}{% endautoescape %} - {% endif %} - </section> - {% endfor %} - {% endblock %} - </div> - </div> - </div> - - {% if progress.current.prev and progress.current.prev.path %} - <a href="{{ basePath }}/{{ progress.current.prev.path|contentLink }}" class="navigation navigation-prev {% if not (progress.current.next and progress.current.next.path) %}navigation-unique{% endif %}" aria-label="Previous page: {{ progress.current.prev.title }}"><i class="fa fa-angle-left"></i></a> - {% endif %} - {% if progress.current.next and progress.current.next.path %} - <a href="{{ basePath }}/{{ progress.current.next.path|contentLink }}" class="navigation navigation-next {% if not (progress.current.prev or progress.current.prev.path) %}navigation-unique{% endif %}" aria-label="Next page: {{ progress.current.next.title }}"><i class="fa fa-angle-right"></i></a> - {% endif %} - </div> -</div> -{% endblock %} - -{% block javascript %} -<script src="{{ staticBase }}/app.js"></script> -{% for resource in plugins.resources.js %} - {% if resource.url %} - <script src="{{ resource.url }}"></script> - {% else %} - <script src="{{ staticBase }}/plugins/{{ resource.path }}"></script> - {% endif %} -{% endfor %} -<script> -require(["gitbook"], function(gitbook) { - var config = {% autoescape false %}{{ pluginsConfig }}{% endautoescape %}; - gitbook.start(config); -}); -</script> -{% endblock %} - -{% block style %} - <link rel="stylesheet" href="{{ staticBase }}/style.css"> - {% 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 %} - {% for type, style in styles %} - <link rel="stylesheet" href="{{ basePath }}/{{ style }}"> - {% endfor %} -{% endblock %} |