Skip to content

Commit

Permalink
feat(doc): support to display the changelog.md, contributing, license…
Browse files Browse the repository at this point in the history
…, todo

fix #215
  • Loading branch information
vogloblinsky committed Jul 13, 2017
1 parent 37ed100 commit 272a0ad
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
6 changes: 3 additions & 3 deletions dist/index-cli.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/app/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ export class Application {
i++;
loop();
}, (errorMessage) => {
logger.error(errorMessage);
logger.error(`Continuing without ${markdowns[i].toUpperCase()}.md file`);
logger.warn(errorMessage);
logger.warn(`Continuing without ${markdowns[i].toUpperCase()}.md file`);
if (markdowns[i] === 'readme') {
this.configuration.addPage({
name: 'index',
Expand Down
11 changes: 7 additions & 4 deletions src/templates/partials/menu.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
<a data-type="chapter-link" href="{{relativeURL depth pageType 'root'}}index.html"><span class="fa fa-home"></span>Getting started</a>
<ul class="links">
{{#if readme}}
<li class="link">
<a href="{{relativeURL depth pageType 'root'}}index.html" {{#compare name "===" 'index' }} class="active" {{/compare}}><span class="fa fa-file-text-o"></span>README</a>
</li>
<li class="link">
<a {{#compare context "===" 'readme'}} href="{{relativeURL depth pageType 'root'}}overview.html" {{/compare}}
{{#compare context "===" 'overview'}} href="{{relativeURL depth pageType 'root'}}overview.html" {{/compare}}
Expand All @@ -28,9 +25,15 @@
<span class="fa fa-th"></span>Overview
</a>
</li>
<li class="link">
<a href="{{relativeURL depth pageType 'root'}}index.html" {{#compare name "===" 'index' }} class="active" {{/compare}}><span class="fa fa-file-text-o"></span>README</a>
</li>
{{else}}
<li class="link">
<a href="{{relativeURL depth pageType 'root'}}" {{#compare name "===" 'overview' }} class="active" {{/compare}}>
<a href="{{relativeURL depth pageType 'root'}}"
{{#compare name "===" 'overview' }} class="active" {{/compare}}
{{#compare name "===" 'index' }} class="active" {{/compare}}
>
<span class="fa fa-th"></span>Overview
</a>
</li>
Expand Down

0 comments on commit 272a0ad

Please sign in to comment.