Skip to content

Commit

Permalink
docs: simplify templates more
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoslin committed Mar 13, 2014
1 parent 4066682 commit b26be09
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 109 deletions.
14 changes: 14 additions & 0 deletions docs/templates/api/api.template.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
---
<@ include "lib/yaml.template.html" @>
title: "<@ if doc.docType == "directive" @><$ doc.name | dashCase $><@ else @><$ doc.name $><@ endif @>"
header_sub_title: "<$ doc.docType | capital $> in module <$ doc.module $>"
doc: "<$ doc.name $>"
docType: "<$ doc.docType $>"
---

<div class="pull-right">
<a href='http://github.com/driftyco/ionic/edit/master/<$ doc.relativePath $>#L<$ doc.startingLine $>' class='improve-docs'>
Improve this doc
</a>
</div>

<@ extends "base.template.html" @>

<@ block content @>
Expand Down
12 changes: 0 additions & 12 deletions docs/templates/api/input.template.html

This file was deleted.

70 changes: 0 additions & 70 deletions docs/templates/api/module.template.html

This file was deleted.

16 changes: 0 additions & 16 deletions docs/templates/base.template.html

This file was deleted.

1 change: 1 addition & 0 deletions docs/templates/lib/yaml.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
active: javascript
version: "<$ version.current.name $>"
versionHref: "<$ version.current.href $>"
path: "<$ doc.path $>"
5 changes: 0 additions & 5 deletions docs/templates/overview.template.html

This file was deleted.

9 changes: 5 additions & 4 deletions docs/templates/pages-data.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,11 @@
Version:
<select style="width: 100px"
onchange="window.location.href=this.options[this.selectedIndex].value">
<@ for version in version.list @>
<option value="<$ version.href $>"
{% if page.version == "<$ version.name $>" %}selected{% endif %}>
<$ version.name $>
<@ for ver in version.list @>
<option
value="<$ ver.href $>/{% if page.path %}{{page.path}}{% endif %}"
{% if page.version == "<$ ver.name $>" %}selected{% endif %}>
<$ ver.name $>
</option>
<@ endfor @>
</select>
Expand Down
1 change: 0 additions & 1 deletion docs/templates/tutorial.template.html

This file was deleted.

4 changes: 3 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ gulp.task('docs', function(done) {
return process.exit(1);
}
process.env.DOC_VERSION = docVersion;
dgeni('docs/docs.config.js').generateDocs().then(done);
return dgeni('docs/docs.config.js').generateDocs().then(function() {
gutil.log('Docs for', gutil.colors.cyan(docVersion), 'generated!');
});
});

var IS_WATCH = false;
Expand Down

0 comments on commit b26be09

Please sign in to comment.