From 31a7e02cf28dc5983cc6b9ac5eb7e86535e02f17 Mon Sep 17 00:00:00 2001 From: CorentinLGS Date: Thu, 30 Aug 2018 11:18:19 +0200 Subject: app-templates doc: Changed doc to fit new format. -Split book.json in 2. -Deleted unwanted files. Change-Id: Idaa2bc838917cade2b3ff1848e21415acae72aec Signed-off-by: CorentinLGS --- docs/_layouts/ebook/page.html | 36 ----------------------- docs/_layouts/ebook/pdf_footer.html | 13 --------- docs/_layouts/ebook/pdf_header.html | 13 --------- docs/_layouts/ebook/summary.html | 58 ------------------------------------- docs/_layouts/layout.html | 28 ------------------ 5 files changed, 148 deletions(-) delete mode 100644 docs/_layouts/ebook/page.html delete mode 100644 docs/_layouts/ebook/pdf_footer.html delete mode 100644 docs/_layouts/ebook/pdf_header.html delete mode 100644 docs/_layouts/ebook/summary.html delete mode 100644 docs/_layouts/layout.html (limited to 'docs/_layouts') diff --git a/docs/_layouts/ebook/page.html b/docs/_layouts/ebook/page.html deleted file mode 100644 index bf325e9..0000000 --- a/docs/_layouts/ebook/page.html +++ /dev/null @@ -1,36 +0,0 @@ -{% extends "layout.html" %} - -{% block title %}{{ page.title }}{% endblock %} -{% block description %}{{ page.description }}{% endblock %} - -{% block style %} - {### Include theme css before plugins css ###} - {% if not fileExists(config.styles.print) %} - {% if options.format %} - - {% else %} - - {% endif %} - {% endif %} - - {{ super() }} - - {### Custom stylesheets for the book ###} - - {% for type, style in config.styles %} - {% if fileExists(style) and (type == "ebook" or type == "print" or type == options.format) %} - - {% endif %} - {% endfor %} -{% endblock %} - -{% block body %} -
- {% block page %} -

{{ page.title }}

-
- {{ page.content|safe }} -
- {% endblock %} -
-{% endblock %} diff --git a/docs/_layouts/ebook/pdf_footer.html b/docs/_layouts/ebook/pdf_footer.html deleted file mode 100644 index 679e562..0000000 --- a/docs/_layouts/ebook/pdf_footer.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends "./page.html" %} -{% block body %} - - - - -{% endblock %} diff --git a/docs/_layouts/ebook/pdf_header.html b/docs/_layouts/ebook/pdf_header.html deleted file mode 100644 index ef49641..0000000 --- a/docs/_layouts/ebook/pdf_header.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends "./page.html" %} -{% block body %} -
- IoT.Bzh - {{ config.title }} -
- - - - -{% endblock %} \ No newline at end of file diff --git a/docs/_layouts/ebook/summary.html b/docs/_layouts/ebook/summary.html deleted file mode 100644 index be328a4..0000000 --- a/docs/_layouts/ebook/summary.html +++ /dev/null @@ -1,58 +0,0 @@ -{% extends "./page.html" %} - -{% block title %}{{ "SUMMARY"|t }}{% endblock %} - -{% macro articles(_articles) %} - {% for article in _articles %} -
  • - - {% if article.path or article.url %} - {% if article.path %} - {{ article.title }} - {% else %} - {{ article.title }} - {% endif %} - {% else %} - {{ article.title }} - {% endif %} - {% if 1 %} - {{ article.level }} - {% endif %} - - {% if article.articles.length > 0 %} -
      - {{ articles(article.articles) }} -
    - {% endif %} -
  • - {% endfor %} -{% endmacro %} - -{% block page %} -
    -

    {{ "SUMMARY"|t }}

    -
      - {% for part in summary.parts %} - {% if part.title %} -
    1. -

      {{ part.title }}

      -
    2. - {% endif %} - {{ articles(part.articles) }} - - {% if not loop.last %} -
    3. - {% endif %} - {% endfor %} - - {% if glossary.path %} -
    4. - - {{ "GLOSSARY"|t }} - -
    5. - {% endif %} -
    -
    -{% endblock %} - diff --git a/docs/_layouts/layout.html b/docs/_layouts/layout.html deleted file mode 100644 index 3d5aca6..0000000 --- a/docs/_layouts/layout.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - {% block title %}{{ config.title|d("GitBook", true) }}{% endblock %} - - - - {% if config.author %}{% endif %} - {% if config.isbn %}{% endif %} - {% block style %} - {% for resource in plugins.resources.css %} - {% if resource.url %} - - {% else %} - - {% endif %} - {% endfor %} - {% endblock %} - - {% block head %}{% endblock %} - - - {% block body %}{% endblock %} - {% block javascript %}{% endblock %} - - -- cgit 1.2.3-korg