mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
supply version info to docs processors
This commit is contained in:
@ -1,12 +1,11 @@
|
||||
module.exports = function jekyll(){
|
||||
module.exports = function jekyll(renderDocsProcessor){
|
||||
return {
|
||||
name: 'jekyll',
|
||||
description: 'Create jekyll includes',
|
||||
$runAfter: ['adding-extra-docs'],
|
||||
$runBefore: ['extra-docs-added'],
|
||||
$process: function(docs) {
|
||||
//TODO(tlancina): supply this via DI
|
||||
var currentVersion = '2.0.0-alpha.2';
|
||||
var currentVersion = renderDocsProcessor.extraData.version.current.name;
|
||||
|
||||
docs.push({
|
||||
docType: 'api-menu',
|
||||
|
Reference in New Issue
Block a user