Skip to content
Browse files

Menu + Same layout

  • Loading branch information...
1 parent bf16dd0 commit 4657375710a09738d182152c35e1cd5a9891864c @spockz spockz committed Sep 12, 2012
Showing with 73 additions and 11 deletions.
  1. +6 −0 _config.yml
  2. +12 −4 _layouts/default.html
  3. +32 −5 _site/index.html
  4. +5 −0 documentation.md
  5. +18 −2 index.md
View
6 _config.yml
@@ -1,2 +1,8 @@
pygments: true
auto: true
+
+navigation:
+- text: Home
+ url: /
+- text: Documentation
+ url: /documentation.html
View
16 _layouts/default.html
@@ -27,10 +27,18 @@
<a class="brand" href="#"><img src="images/uhc-logo.png" alt="" title=""/></a>
<div class="nav-collapse">
<ul class="nav">
- <li class="active"><a href="#a_short_introduction_how_to_get_started">Introduction</a></li>
- <li><a href="#demo">Demo</a></li>
- <li><a href="#resources">Resources</a></li>
- <li><a href="#installation_instructions">Installation instructions</a></li>
+
+ {% for link in site.navigation %}
+ {% assign current = nil %}
+ {% if page.url == link.url %}
+ {% assign current = 'active' %}
+ {% endif %}
+
+ <li class="{{ current }}">
+ <a href="{{ link.url }}">{{ link.text }}</a>
+ </li>
+ {% endfor %}
+
</ul>
</div>
</div>
View
37 _site/index.html
@@ -27,10 +27,25 @@
<a class="brand" href="#"><img src="images/uhc-logo.png" alt="" title=""/></a>
<div class="nav-collapse">
<ul class="nav">
- <li class="active"><a href="#a_short_introduction_how_to_get_started">Introduction</a></li>
- <li><a href="#demo">Demo</a></li>
- <li><a href="#resources">Resources</a></li>
- <li><a href="#installation_instructions">Installation instructions</a></li>
+
+
+
+
+
+
+
+ <li class="active">
+ <a href="/">Home</a>
+ </li>
+
+
+
+
+ <li class="">
+ <a href="/documentation.html">Documentation</a>
+ </li>
+
+
</ul>
</div>
</div>
@@ -41,7 +56,16 @@
</div>
<div id="body">
- <div class='alert'>
+ <div class='container'>
+ <div class='row'>
+ <div class='span3 bs-docs-sidebar'>
+ <ul class='nav nav-list bs-docs-sidenav' data-offset-top='132' data-spy='affix'>
+
+ <!-- <li><a href="#getting_started">Getting Started</a></li><li><a href="#communicating_with_javascript">Communicating with JavaScript</a></li><li class="active"><a href="#examples__practice">Examples / Practice</a></li> -->
+ </ul>
+ </div>
+ <div class='span9 content'>
+ <div class='alert'>
<p>
This page is currently under construction. In the mean time please
consider looking at the reports <a href='http://www.norm2782.com/improving-uhc-js-report.pdf'>Improving the
@@ -109,6 +133,9 @@ <h3 id='installation_script_for_jcuhs'>Installation script for JCU-HS</h3>
</code></pre>
</div>
<p>Follow the on screen instructions when running the installer.</p>
+ </div>
+ </div>
+</div>
</div>
</div>
<script src="js/jquery-1.8.0.min.js"></script>
View
5 documentation.md
@@ -5,6 +5,10 @@ title: "Documentation / User Guide"
{% capture content %}
## Getting Started
+This page contains documentation specific to the JavaScript backend. To learn
+more of the UHC please look at the [extensive documentation][uhc-extensive-doc].
+
+
### Installation of UHC
Clone the latest version of the JavaScript branch of UHC. This is somewhat
risky but new features will be found here first.
@@ -79,6 +83,7 @@ This is the list of currently active UHC-JS enabled projects:
* JCU-App ([demo](http://jcu.chrisdone.com/login), [announce](http://alessandrovermeulen.me/2012/01/26/getting-rid-of-javascript-with-haskell))
[uhc-js]: https://github.com/UU-ComputerScience/uhc-js
+[uhc-extensive-doc]: http://www.cs.uu.nl/wiki/bin/view/Ehc/Documentation
{% endcapture %}
<div class="container">
View
20 index.md
@@ -1,8 +1,9 @@
---
layout: default
title: "The Utrecht Haskell Compiler JavaScript Backend Page"
+permalink: /
---
-
+{% capture content %}
<div class="alert">
<p>
This page is currently under construction. In the mean time please
@@ -94,4 +95,19 @@ ruby <(curl -s https://raw.github.com/gist/1902090/e2a0508cea4bd4bc3abeed87b054e
Follow the on screen instructions when running the installer.
[jcu-spockz-fork]: https://github.com/spockz/JCU
-[jcu-install-script]: https://gist.github.com/1902090 "A Ruby Script to install JCU and dependencies."
+[jcu-install-script]: https://gist.github.com/1902090 "A Ruby Script to install JCU and dependencies."
+{% endcapture %}
+
+<div class="container">
+ <div class="row">
+ <div class="span3 bs-docs-sidebar">
+ <ul class="nav nav-list bs-docs-sidenav" data-spy="affix" data-offset-top="132">
+
+ <!-- <li><a href="#getting_started">Getting Started</a></li><li><a href="#communicating_with_javascript">Communicating with JavaScript</a></li><li class="active"><a href="#examples__practice">Examples / Practice</a></li> -->
+ </ul>
+ </div>
+ <div class="span9 content">
+ {{ content | markdownify }}
+ </div>
+ </div>
+</div>

0 comments on commit 4657375

Please sign in to comment.
Something went wrong with that request. Please try again.