summaryrefslogtreecommitdiffstats
path: root/templates/includes
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-04-04 14:10:56 -0700
committerSamy Pessé <samypesse@gmail.com>2014-04-04 14:10:56 -0700
commit446d486a0fb725f3df76d9b6e8d2bca02042805b (patch)
treecfd5405f607fcca196ef5bad6b0b88662c30ccb9 /templates/includes
parent07101deaefb8848d40231eea12a3bf0710e6a78e (diff)
downloadgitbook-446d486a0fb725f3df76d9b6e8d2bca02042805b.zip
gitbook-446d486a0fb725f3df76d9b6e8d2bca02042805b.tar.gz
gitbook-446d486a0fb725f3df76d9b6e8d2bca02042805b.tar.bz2
Add base for theming
Diffstat (limited to 'templates/includes')
-rw-r--r--templates/includes/book/exercise.html24
-rw-r--r--templates/includes/book/footer.html15
-rw-r--r--templates/includes/book/header.html17
-rw-r--r--templates/includes/book/progress.html10
-rw-r--r--templates/includes/book/summary.html43
5 files changed, 0 insertions, 109 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>