diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-04 14:10:56 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-04 14:10:56 -0700 |
commit | 446d486a0fb725f3df76d9b6e8d2bca02042805b (patch) | |
tree | cfd5405f607fcca196ef5bad6b0b88662c30ccb9 /templates | |
parent | 07101deaefb8848d40231eea12a3bf0710e6a78e (diff) | |
download | gitbook-446d486a0fb725f3df76d9b6e8d2bca02042805b.zip gitbook-446d486a0fb725f3df76d9b6e8d2bca02042805b.tar.gz gitbook-446d486a0fb725f3df76d9b6e8d2bca02042805b.tar.bz2 |
Add base for theming
Diffstat (limited to 'templates')
-rw-r--r-- | templates/includes/book/exercise.html | 24 | ||||
-rw-r--r-- | templates/includes/book/footer.html | 15 | ||||
-rw-r--r-- | templates/includes/book/header.html | 17 | ||||
-rw-r--r-- | templates/includes/book/progress.html | 10 | ||||
-rw-r--r-- | templates/includes/book/summary.html | 43 | ||||
-rw-r--r-- | templates/layout.html | 51 | ||||
-rw-r--r-- | templates/page.html | 28 |
7 files changed, 0 insertions, 188 deletions
diff --git a/templates/includes/book/exercise.html b/templates/includes/book/exercise.html deleted file mode 100644 index 1acbe79..0000000 --- a/templates/includes/book/exercise.html +++ /dev/null @@ -1,24 +0,0 @@ -<div class="header"> - <h2>Exercise</h2> -</div> -<div class="alert alert-success"> - <b>Correct!</b> -</div> - -<div class="alert alert-danger error-message"> - <b>False!</b> -</div> - -<div class="message"> - {% autoescape false %}{{ section.content }}{% endautoescape %} -</div> -<div class="editor" style="height: {{ section.code.solution|lines*20 }}px">{{ section.code.base }}</div> - -<pre class="hidden code-solution">{{ section.code.solution }}</pre> -<pre class="hidden code-validation">{{ section.code.validation }}</pre> - -<div class="btn-group btn-group-justified"> - <a href="#" class="btn btn-default action-submit">Submit</a> - <a href="#" class="btn btn-default action-solution">Solution</a> - <a href="{{ githubHost }}{{ githubId }}/issues/new" target="_blank" class="btn btn-default">Have a Question?</a> -</div> diff --git a/templates/includes/book/footer.html b/templates/includes/book/footer.html deleted file mode 100644 index 1112b14..0000000 --- a/templates/includes/book/footer.html +++ /dev/null @@ -1,15 +0,0 @@ -<div class="page-footer"> - {% if _input == "README.md" %} - <a href="{{ basePath }}/{{ progress.current.next.path|mdLink }}" class="navigation-link">Start</a> - {% else %} - {% if progress.current.next %} - {% if progress.current.next.path %} - <a href="{{ basePath }}/{{ progress.current.next.path|mdLink }}" class="navigation-link next">Next</a> - {% else %} - <div class="navigation-link coming-soon">Coming soon</div> - {% endif %} - {% else %} - <div class="navigation-link finished">Finished!</div> - {% endif %} - {% endif %} -</div>
\ No newline at end of file diff --git a/templates/includes/book/header.html b/templates/includes/book/header.html deleted file mode 100644 index d3baf1d..0000000 --- a/templates/includes/book/header.html +++ /dev/null @@ -1,17 +0,0 @@ -<div class="book-header"> - <!-- Actions Left --> - <a href="{{ githubHost }}{{ githubId }}" target="_blank" class="btn pull-left"><i class="fa fa-github-alt"></i></a> - <a href="#" class="btn pull-left toggle-summary"><i class="fa fa-align-justify"></i></a> - - <!-- Actions Right --> - <a href="#" target="_blank" class="btn pull-right" data-sharing="google-plus"><i class="fa fa-google-plus"></i></a> - <a href="#" target="_blank" class="btn pull-right" data-sharing="facebook"><i class="fa fa-facebook"></i></a> - <a href="#" target="_blank" class="btn pull-right" data-sharing="twitter"><i class="fa fa-twitter"></i></a> - - <a href="{{ githubHost }}{{ githubId }}/stargazers" target="_blank" class="btn pull-right count-star"><i class="fa fa-star-o"></i> Star (<span>-</span>)</a> - <a href="{{ githubHost }}{{ githubId }}/watchers" target="_blank" class="btn pull-right count-watch"><i class="fa fa-eye"></i> Watch (<span>-</span>)</a> - - - <!-- Title --> - <h1><a href="{{ basePath }}/README.html" >{{ title }}</a></h1> -</div> diff --git a/templates/includes/book/progress.html b/templates/includes/book/progress.html deleted file mode 100644 index 176c95f..0000000 --- a/templates/includes/book/progress.html +++ /dev/null @@ -1,10 +0,0 @@ -<div class="book-progress"> - <div class="bar"> - <div class="inner" style="width: {{ progress.percent }}%;min-width: {{ progress.prevPercent }}%;"></div> - </div> - <div class="chapters"> - {% for p in progress.chapters %} - <a href="{{ basePath }}/{{ p.path|mdLink }}" title="{{ p.title }}" class="chapter {% if p.done %}done{% endif %} {% if p.level.length == 1 %}new-chapter{% endif %}" data-progress="{{ p.level }}" style="left: {{ p.percent }}%;"></a> - {% endfor %} - </div> -</div>
\ No newline at end of file diff --git a/templates/includes/book/summary.html b/templates/includes/book/summary.html deleted file mode 100644 index 996ff3d..0000000 --- a/templates/includes/book/summary.html +++ /dev/null @@ -1,43 +0,0 @@ -<div class="book-summary"> - <ul class="summary"> - <li> - <a href="{{ githubHost }}{{ githubAuthor }}" target="blank">About the author</a> - </li> - <li> - <a href="{{ githubHost }}{{ githubId }}/issues" target="blank">Questions and Issues</a> - </li> - <li> - <a href="{{ githubHost }}{{ githubId }}/edit/master/{{ _input }}" target="blank">Edit and Contribute</a> - </li> - <li class="divider"></li> - <li data-level="0"> - <a href="{{ basePath }}/README.html"><i class="fa fa-check"></i> Introduction</a> - </li> - {% for item in summary.chapters %} - <li {% if item._path == _input %}class="active"{% endif %} data-level="{{ item.level }}"> - {% if item.path %} - <a href="{{ basePath }}/{{ item.path|mdLink }}"> - <i class="fa fa-check"></i> <b>{{ item.level }})</b> {{ item.title }} - </a> - {% else %} - <span><b>{{ item.level }})</b> {{ item.title }}</span> - {% endif %} - {% if item.articles.length > 0 %} - <ul class="articles"> - {% for article in item.articles %} - <li {% if article._path == _input %}class="active"{% endif %} data-level="{{ article.level }}"> - {% if article.path %} - <a href="{{ basePath }}/{{ article.path|mdLink }}"> - <i class="fa fa-check"></i> <b>{{ article.level }})</b> {{ article.title }} - </a> - {% else %} - <span><b>{{ article.level }})</b> {{ article.title }}</span> - {% endif %} - </li> - {% endfor %} - </ul> - {% endif %} - </li> - {% endfor %} - </ul> -</div> diff --git a/templates/layout.html b/templates/layout.html deleted file mode 100644 index 47184b3..0000000 --- a/templates/layout.html +++ /dev/null @@ -1,51 +0,0 @@ -<!DOCTYPE HTML> -<html lang="en-US"> - <head prefix="og: http://ogp.me/ns# book: http://ogp.me/ns/book#"> - {% block head %} - <meta charset="UTF-8"> - <title>{% block title %} | {{ title }}{% endblock %}</title> - - <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> - <meta name="robots" content="index, follow"> - <meta name="author" content="{{ githubAuthor }}"> - <meta name="description" content="{{ description }}"> - <meta name="keywords" content="gitbook,github" > - <meta name="generator" content="www.gitbook.io"> - - {% if progress.current.next and progress.current.next.path %} - <link rel="next" href="{{ basePath }}/{{ progress.current.next.path|mdLink }}" /> - {% endif %} - {% if progress.current.prev and progress.current.prev.path %} - <link rel="prev" href="{{ basePath }}/{{ progress.current.prev.path|mdLink }}" /> - {% endif %} - - <meta property="og:title" content="{% block title %} | {{ title }}{% endblock %}"> - <meta property="og:site_name" content="{{ title }}"> - <meta property="og:type" content="book"> - <meta property="og:locale" content="en_US"> - - <meta property="book:author" content="{{ githubHost }}{{ githubAuthor }}"> - <meta property="book:tag" content="GitBook"> - - <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="shortcut icon" href="{{ staticBase }}/images/favicon.ico" type="image/x-icon"> - <link rel="stylesheet" href="{{ staticBase }}/style.css"> - - <script type="text/javascript"> - (function(e,b){if(!b.__SV){var a,f,i,g;window.mixpanel=b;b._i=[];b.init=function(a,e,d){function f(b,h){var a=h.split(".");2==a.length&&(b=b[a[0]],h=a[1]);b[h]=function(){b.push([h].concat(Array.prototype.slice.call(arguments,0)))}}var c=b;"undefined"!==typeof d?c=b[d]=[]:d="mixpanel";c.people=c.people||[];c.toString=function(b){var a="mixpanel";"mixpanel"!==d&&(a+="."+d);b||(a+=" (stub)");return a};c.people.toString=function(){return c.toString(1)+".people (stub)"};i="disable track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config people.set people.set_once people.increment people.append people.track_charge people.clear_charges people.delete_user".split(" "); - for(g=0;g<i.length;g++)f(c,i[g]);b._i.push([a,e,d])};b.__SV=1.2;a=e.createElement("script");a.type="text/javascript";a.src=("https:"===e.location.protocol?"https:":"http:")+'//cdn.mxpnl.com/libs/mixpanel-2.2.min.js';f=e.getElementsByTagName("script")[0];f.parentNode.insertBefore(a,f)}})(document,window.mixpanel||[]); - mixpanel.init("01eb2b950ae09a5fdb15a98dcc5ff20e"); - </script> - {% endblock %} - </head> - <body> - {% block content %}{% endblock %} - <script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.1.3/ace.js"></script> - <script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.1.3/mode-javascript.js"></script> - <script src="{{ staticBase }}/jsrepl/jsrepl.js" id="jsrepl-script"></script> - <script src="{{ staticBase }}/app.js"></script> - </body> -</html> diff --git a/templates/page.html b/templates/page.html deleted file mode 100644 index b5595f0..0000000 --- a/templates/page.html +++ /dev/null @@ -1,28 +0,0 @@ -{% extends "layout.html" %} - -{% block title %}{{ progress.current.title }}{% parent %}{% endblock %} -{% block content %} -<div class="book with-summary" data-github="{{ githubId }}" data-level="{{ progress.current.level }}"> - {% include "includes/book/header.html" %} - {% include "includes/book/summary.html" %} - <div class="book-body" tabindex="-1"> - <div class="page-wrapper"> - {% include "includes/book/progress.html" %} - - <div class="page-inner"> - {% for section in content %} - <section class="{{ section.type }}" id="section-{{ section.id }}"> - {% if section.type == "normal" %} - {% autoescape false %}{{ section.content }}{% endautoescape %} - {% elif section.type == "exercise" %} - {% include "./includes/book/exercise.html" with {section: section} %} - {% endif %} - </section> - {% endfor %} - </div> - - {% include "includes/book/footer.html" %} - </div> - </div> -</div> -{% endblock %}
\ No newline at end of file |