forked from ionic-team/ionic-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(docs): simplify hugely, leave more to ionic-site
- Loading branch information
Showing
11 changed files
with
458 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
var log = require('winston'); | ||
|
||
module.exports = { | ||
name: 'jekyll', | ||
runAfter: ['api-docs'], | ||
runBefore: ['compute-path'], | ||
description: 'Create jekyll includes', | ||
process: function(docs, config) { | ||
var currentVersion = config.versionData.current.name; | ||
docs.push({ | ||
template: 'api_menu.template.html', | ||
outputPath: '_includes/api_menu.html' | ||
}); | ||
docs.push({ | ||
template: 'api_menu_version.template.html', | ||
outputPath: '_includes/api_menu_' + currentVersion + '.html' | ||
}); | ||
docs.push({ | ||
template: 'api_version_select.template.html', | ||
outputPath: '_includes/api_version_select.html' | ||
}); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<@ for ver in version.list @> | ||
<@ if ver.name != version.latest.name @> | ||
<@ if loop.first @> | ||
{% if page.versionHref == "<$ ver.href $>" %} | ||
<@ else @> | ||
{% elsif page.versionHref == "<$ ver.href $>" %} | ||
<@ endif @> | ||
{% include api_menu_<$ ver.name $>.html %} | ||
<@ endif @> | ||
<@ endfor @> | ||
<# make the last case always be to show latest version #> | ||
{% else %} | ||
{% include api_menu_<$ version.latest.name $>.html %} | ||
{% endif %} |
Oops, something went wrong.