Skip to content

Commit ee9f5b9

Browse files
committed
Removed history better nav
1 parent 2f2d3b1 commit ee9f5b9

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

index.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
<div>
2020
<ul id="list-api">
2121
<a href="#"><li class="brand">NodeGit</li></a>
22+
<a href="#Install" class="active"><li>Install</li></a>
23+
<a href="#Example"><li>Example</li></a>
2224
<li><input tabindex="1" placeholder="Search API" type="search"></li>
2325
<div class="scrollable"></div>
2426
</ul>
@@ -33,8 +35,11 @@ <h3>About NodeGit</h3>
3335
Status" data-canonical-src="https://travis-ci.org/tbranyen/nodegit.png" style="max-width:100%;"></a>
3436
<a href="https://ci.appveyor.com/project/TimBranyen/nodegit"><img src="https://ci.appveyor.com/api/projects/status/e5a5q75l9yfhnfv2/branch/master" alt="Build Status: Windows" height="18" /></a>
3537

38+
<!--
3639
<h4>History:</h4>
40+
-->
3741
<div class="wrap-content">
42+
<!--
3843
<p>
3944
Originally started in 2011 as a project by TJ Fontaine, current
4045
Node lead, as an FFI-binding to libgit2. Tim Branyen then
@@ -52,10 +57,11 @@ <h4>History:</h4>
5257
and is slowly becoming a full suite of automated 1:1 bindings
5358
to libgit2.
5459
</p>
55-
<h4>Install:</h4>
60+
-->
61+
<h4 id="Install">Install:</h4>
5662
<pre class="language-bash">
5763
<code>npm install nodegit</code></pre>
58-
<h4>Clone and read example:</h4>
64+
<h4 id="Example">Clone and read example:</h4>
5965
<pre class="language-javascript">
6066
<code>var clone = require("nodegit").Clone.clone;
6167

scripts/api.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
});
3434

3535
listApi.on("click", "a", function(ev) {
36-
$(this).siblings().removeClass("active").end().addClass("active");
36+
listApi.find("a").removeClass("active");
37+
$(this).addClass("active");
3738
});
3839
});
3940
})(this);

0 commit comments

Comments
 (0)