Skip to content

Commit

Permalink
v0.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Zheng committed Jan 8, 2016
1 parent f9dea2c commit 9d128f6
Show file tree
Hide file tree
Showing 17 changed files with 724 additions and 0 deletions.
1 change: 1 addition & 0 deletions lein/docs/css/rdash.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

231 changes: 231 additions & 0 deletions lein/docs/css/scrollspy.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,231 @@

body {
background: #f8f8f8;
position: relative;
line-height: 1.5;
font-family: 'Raleway', sans-serif;
}

h1, h2 {
font-weight: 700;
}

h2.chapter{
font-weight: 900;
margin-top: 50px;
}

h3 span {
color: #286090;
}

.jumbotron {
border-radius: 0px;
background: #ffffff;
margin-bottom: 0;
text-align: center;
border: 1px solid transparent;
background: #ffffff;
border: 1px solid;
border-radius: 2px;
border-color: #e9e9e9;
}

.jumbotron button {
margin-top: 10px;
}

.chapter > div{
margin-top: 30px;
margin-bottom: 10px;
padding: 20px;
/*-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);*/
background: #ffffff;
border: 1px solid;
border-radius: 2px;
border-color: #e9e9e9;

}

section.section {
margin-top: 30px;
margin-bottom: 10px;
padding: 20px;
/*-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);*/
background: #ffffff;
border: 1px solid transparent;
border-radius: 2px;
border-color: #e9e9e9;
}

section.subsection {
margin-top: 30px;
}

section:last-child {
border-bottom: none;
}

#content{
margin-top: 30px;
}

#nav{
margin-top: 50px;
}


.nav {
background: #30426a;
}

.nav .contents{
color: white;
padding: 18px 0px 15px 30px;
background: #2d3e63;
}

.nav a {
color: #b2bfdc;
font-style: italic;
}

.nav li a:hover,
.nav li a:focus {
background: #2d3e63;
}

.nav .active {
font-weight: bold;
/*background: #72bcd4;*/
}

.nav .nav {
display: none;
}

.nav .active .nav {
display: block;
}

.nav>li>a {
padding-top: 5px;
padding-left: 30px;
}
.nav .nav a {
font-weight: normal;
text-decoration: none;
font-size: .85em;
padding-left: 40px;
}

.nav .nav span {
margin: 0 5px 0 2px;
}

.nav .nav .active a,
.nav .nav .active:hover a,
.nav .nav .active:focus a {
text-decoration: underline;
/*padding-left: 30px;
border-left: 5px solid black;*/
}

.nav .nav .active span,
.nav .nav .active:hover span,
.nav .nav .active:focus span {
display: none;
}

.application {
border-top: 1px solid #c1e1ec;
}

.affix-top {
position: relative;
}

.affix {
top: 0px;
}

.affix,
.affix-bottom {
/*width: 213px;*/
}

.affix-bottom {
position: absolute;
}

footer {
border-top: 1px solid #c1e1ec;
height: 50px;
}

footer p {
line-height: 50px;
margin-bottom: 0;
}

@media (min-width:1200px) {
.affix,
.affix-bottom {
width: 263px;
}
}

.img img {
display: block;
margin-top: 10px;
margin-right: auto;
margin-left: auto;
}

.figure {
border: solid 1px #ccc;
padding: 10px;
margin-bottom: 10px;
}

.figure h4{
text-align: center;
margin-top:30px
}

.code h5{
font-weight: 900;
margin-top: 20px;
margin-bottom: 3px;
}


ul.sidebar .submenu-item {
margin-left: 10px;
}

nav {
background-color: #30426A;
border-color: #30426A;
}

.navbar-brand img{
height: 45px;
margin-top: -10px;
}

.navbar-nav {
margin-top: 12px;
}

.nav .open>a, .nav .open>a:focus, .nav .open>a:hover {
background-color: #30426A;
}

.dropdown-menu>li>a:hover {
color: white;
}
Binary file added lein/docs/img/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added lein/docs/img/logo-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added lein/docs/img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions lein/docs/js/angular-highlightjs.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

103 changes: 103 additions & 0 deletions lein/docs/sample-document.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@


<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<meta name="google" value="notranslate">
<link rel="icon" type="image/png" href="img/favicon.png" />

<title>a sample document</title>


<link href='http://fonts.googleapis.com/css?family=Raleway:300' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css">

<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/languages/clojure.min.js"></script>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/magula.min.css">

<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.2/angular.min.js"></script>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/angularjs/1.4.2/angular-cookies.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.13.0/ui-bootstrap-tpls.min.js"></script>
<script type="text/javascript" src="js/angular-highlightjs.min.js"></script>

<link rel="stylesheet" type="text/css" href="css/rdash.min.css">
<link rel="stylesheet" type="text/css" href="css/scrollspy.css">


<script>
window.console = window.console || function(t) {};
window.open = function(){ console.log("window.open is disabled."); };
window.print = function(){ console.log("window.print is disabled."); };
</script>

<script>
var app = angular.module('app', ['hljs']);
</script>
</head>

<body ng-app="app" data-spy="scroll" data-target=".scrollspy">
<!-- Fixed navbar -->
<nav class="navbar navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html"><img src="img/logo-white.png"></a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="https://github.com/TODO/FIXME" target="_blank">Github</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>


<div class="container row">
<div class="col-md-4 scrollspy pull-right">
<ul id="nav" class="nav hidden-xs hidden-sm" data-spy="affix">
<li><a href="#hello">1 &nbsp;&nbsp; Introduction</a><ul class="nav"><li><a href="#defining-a-function">1.1 &nbsp;&nbsp; Defining a function</a></li><li><a href="#testing-a-function">1.2 &nbsp;&nbsp; Testing a function</a></li></ul></li><li><a href="#walkthrough">2 &nbsp;&nbsp; Walkthrough</a></li><li><a href="#api-reference">3 &nbsp;&nbsp; API Reference</a></li>
</ul>
</div>
<div class="col-md-8" id="content">
<div class="jumbotron">
<div class="container">
<h1>a sample document</h1>
<h4>generating a document from code</h4>
</div>
</div>
<section class="chapter" id="hello"><h2 class="chapter">1 &nbsp;&nbsp; Introduction</h2><div class="group"><div class="paragraph"><p>This is an introduction to the exciting library</p></div></div><section class="section" id="defining-a-function"><h3 class="section">1.1 &nbsp;&nbsp; Defining a function</h3><div class="paragraph"><p>We define function <code>add-5</code></p></div><div class="code"><div hljs="hljs" language="clojure" no-escape="no-escape">(defn add-5 [x]
(+ x 5))</div></div></section><section class="section" id="testing-a-function"><h3 class="section">1.2 &nbsp;&nbsp; Testing a function</h3><div class="paragraph"><p><code>add-5</code> outputs the following results seen in <a href='#add-5-1'>e.1.2</a> and <a href='#add-5-10'>e.1.3</a>:</p></div><div class="code"><a name="eq1"></a><h5>e.1.1</h5><div hljs="hljs" language="clojure" no-escape="no-escape">(+ 1 0) =&gt; 1
(+ 1 3) =&gt; 4</div></div><div class="code"><div hljs="hljs" language="clojure" no-escape="no-escape">(+ 1 1) =&gt; 2
(+ 1 3) =&gt; 2</div></div><div class="code"><a name="add-5-1"></a><h5>e.1.2 &nbsp;-&nbsp; 1 add 5 equals 6</h5><div hljs="hljs" language="clojure" no-escape="no-escape">(add-5 1) =&gt; 6</div></div><div class="code"><a name="add-5-10"></a><h5>e.1.3 &nbsp;-&nbsp; 10 add 5 equals 15</h5><div hljs="hljs" language="clojure" no-escape="no-escape">(add-5 10) =&gt; 15</div></div></section></section><section class="chapter" id="walkthrough"><h2 class="chapter">2 &nbsp;&nbsp; Walkthrough</h2><div class="group"><div class="paragraph"><p>Here is a walkthrough for the library</p></div></div></section><section class="chapter" id="api-reference"><h2 class="chapter">3 &nbsp;&nbsp; API Reference</h2><div class="group"><div class="paragraph"><p>The API reference here:</p></div></div></section>
</div>
</div><!--end of .container-->

</body>

<script>
$('#nav').affix({
offset: {
top: $('#nav').offset().top,
bottom: $('footer').outerHeight(true) + $('.application').outerHeight(true) + 40
}});
</script>


<script>
if (document.location.search.match(/type=embed/gi)) {
window.parent.postMessage("resize", "*");
}
</script>
</body>
</html>
Loading

0 comments on commit 9d128f6

Please sign in to comment.