Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
Add possible tutorials to the navigation. (#2)
Browse files Browse the repository at this point in the history
* Add possible tutorials to the navigation.

* Add classes to namespace
  • Loading branch information
kozi authored and bigtimebuddy committed Jul 21, 2017
1 parent 82b2a4c commit 52b14be
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ function buildNav(members) {
events: find({
kind: 'event',
memberof: v.longname
}),
classes: find({
kind: 'class',
memberof: v.longname
})
});
});
Expand Down Expand Up @@ -254,6 +258,19 @@ function buildNav(members) {
});
}

if (members.tutorials.length) {
_.each(members.tutorials, function(v) {
nav.push({
type: 'tutorial',
name: v.name,
longname: v.longname,
title: v.title,
children: v.children,
parent: v.parent
});
});
}

return nav;
}

Expand Down

0 comments on commit 52b14be

Please sign in to comment.