From 408acbdce381f1e70985eae9f96d036689f3d0aa Mon Sep 17 00:00:00 2001 From: CorentinLGS Date: Fri, 31 Aug 2018 09:39:04 +0200 Subject: app-framework-binder doc: Changed doc to fit new format. -Split book.json in 2. -Deleted unwanted files. -Changed all links to .html files to .md files in the SUMMARY.md, it is used by gitbook to build the pdf and as gitbook doesn't handle .html files I had to change it. Change-Id: I15705ef0f0d9143971c046ccb72a4eee04b98890 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 bf325e9b..00000000 --- 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 679e5628..00000000 --- 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 ef496410..00000000 --- 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 be328a42..00000000 --- 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 3d5aca60..00000000 --- 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