Skip to content

Commit

Permalink
fix the 404 error
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonTian committed Feb 6, 2014
1 parent 4ae6531 commit 3945df5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/doxmate.js
Expand Up @@ -112,9 +112,9 @@ var getDocs = function (folder) {
fs.readdirSync(docPath).filter(function (item) {
return path.extname(item) === '.md';
}).map(function (item) {
return path.basename(item, '.md');
return path.basename(item, '.md');
}).forEach(function (doc) {
docs[doc] = fs.readFileSync(path.join(docPath, doc + '.md'), 'utf8');
docs[doc] = fs.readFileSync(path.join(docPath, doc + '.md'), 'utf8');
});
return docs;
};
Expand All @@ -141,7 +141,7 @@ exports.getIndexs = function (section, level, filter) {
return {level: 1, title: item.split(/\n/)[0]};
}
}).filter(function (item) {
return item.level <= level;
return item.level <= level;
}).filter(filter);
} else {
return [];
Expand Down Expand Up @@ -219,7 +219,7 @@ exports.process = function (input, output, skin, dir) {
});

// copy styles
if(themeDir) {
if (themeDir) {
ncp(path.join(themeDir + '/assets'), path.join(output, 'assets'), function () {});
} else {
ncp(path.join(__dirname, '../templates/' + skin + '/assets'), path.join(output, 'assets'), function () {});
Expand Down
1 change: 0 additions & 1 deletion templates/default/header.ejs
Expand Up @@ -9,7 +9,6 @@
<script src="assets/jquery-1.8.2.min.js"></script>
<script src="assets/bootstrap/js/bootstrap.js"></script>
<link rel="stylesheet" type="text/css" href="assets/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="assets/bootstrap/css/bootstrap-responsive.min.css" />
<link rel="stylesheet" type="text/css" href="assets/base.css" />
</head>
<body>
Expand Down

0 comments on commit 3945df5

Please sign in to comment.