Permalink
Browse files

basic framework for howto pages

  • Loading branch information...
1 parent 970a763 commit 775693c1ce2bea97bb139e61a7e36eb679a42d4b @harrah harrah committed Feb 26, 2012
Showing with 54 additions and 0 deletions.
  1. +29 −0 src/jekyll/_layouts/howto.html
  2. +23 −0 src/jekyll/howto.md
  3. +2 −0 src/jekyll/learn.md
@@ -0,0 +1,29 @@
+{% include header.txt %}
+
+{% include topbar.txt %}
+
+<div class="cf" id="container">
+ <div class="span2 columns container-spacer"><p>&nbsp;</p></div>
+ <div id="intro" class="span10 columns content">
+ <div id="head" class="cf">
+ <div id="name" class="left">
+ <h1>sbt</h1>
+ <h2>{{page.title}}</h2>
+ </div>
+ </div>
+ <div id="features" class="cf"><div id="feature-list">
+ <ul class="left">
+ {% for section in page.sections %}
+ <li id="feature"><h4><a href="#{{section.id}}">How to {{section.name}}</a></h4></li>
+ {% endfor %}
+ </ul>
+ </div></div>
+ <div id="pagecontent" class="cf">
+ {{ content }}
+ </div>
+ </div>
+ </div>
+</div>
+
+
+{% include footer.txt %}
View
@@ -0,0 +1,23 @@
+---
+layout: content
+title: How to...
+description: How to do common tasks.
+---
+
+{% capture table %}
+{% for page in site.pages %}
+ {% if page.sections %}
+## [{{page.title}}]({{page.url}}) ##
+ {% for section in page.sections %}
+* [How to {{section.name}}]({{page.url | append: "#" | append: section.id}})
+ {% if section.short %} {{section.short | strip_newlines | markdownify}} {% endif %}
+ {% if section.batch %} {% highlight console %} $ sbt {{section.batch | strip_newlines}} {% endhighlight %}{% endif %}
+ {% if section.setting %} {% highlight scala %} {{section.setting | strip_newlines}} {% endhighlight %}{% endif %}
+ {% if section.command %} {% highlight console %} > {{section.command | strip_newlines}} {% endhighlight %}{% endif %}
+ {% if section.commands %} {% highlight console %} {{section.commands}} {% endhighlight %}{% endif %}
+ {% endfor %}
+ {% endif %}
+{% endfor %}
+{% endcapture %}
+
+{{ table | unindent | markdownify }}
View
@@ -8,6 +8,8 @@ description: |
toplinks:
- name: 'Getting Started Guide'
link: 'https://github.com/harrah/xsbt/wiki/Getting-Started-Welcome'
+ - name: 'How to ...'
+ link: 'howto.html'
- name: 'Talks'
link: 'talks.html'
- name: 'Wiki'

0 comments on commit 775693c

Please sign in to comment.