Skip to content

Commit e07e862

Browse files
committed
link to proper homepage
1 parent 6e2f374 commit e07e862

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

html_test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var readFile = Q.denodeify(fs.readFile);
1010

1111
require("./build/build_test");
1212

13-
describe("documentjs/lib/generators/html", function(){
13+
describe("bit-docs-generate-html", function(){
1414
beforeEach(function(){
1515
return rmdir(path.join(__dirname, "site", "static")).then(function(e){
1616
return rmdir(path.join(__dirname, "site", "templates"));
@@ -216,7 +216,7 @@ describe("documentjs/lib/generators/html", function(){
216216
});
217217
});
218218

219-
it("basic sidebar works", function(){
219+
it.only("basic sidebar works", function(){
220220
this.timeout(240000);
221221
return rmdir(path.join(__dirname, "test", "tmp")).then(function(){
222222
var options = {
@@ -271,6 +271,7 @@ describe("documentjs/lib/generators/html", function(){
271271
}).then(function(data){
272272
assert.ok( (""+data).indexOf('href="Asia.html"') !== -1, "link to asia" );
273273
assert.ok( (""+data).indexOf('href="China.html"') !== -1, "link to china" );
274+
assert.ok( (""+data).indexOf('href="index.html"') !== -1, "link to earth as index" );
274275
});
275276
});
276277
});

site/default/templates/sidebar.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{{#if children.length}}
44
<ul>
55
<li class="">
6-
<a class="home" href="{{urlTo 'BitDocs'}}" title="Home">
6+
<a class="home" href="{{urlTo (siteConfig "parent")}}" title="Home">
77
Home
88
</a>
99
</li>

0 commit comments

Comments
 (0)