From 675f5b3706fdc5506cefac600a32867e511a3eec Mon Sep 17 00:00:00 2001 From: Guilherme Souza Date: Wed, 21 Oct 2015 00:28:12 -0200 Subject: [PATCH] Add nav link to global. Fixes #5 Code suggested by @twick --- publish.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/publish.js b/publish.js index 21b283ea..03c8d386 100644 --- a/publish.js +++ b/publish.js @@ -253,6 +253,30 @@ function buildNav(members) { }); }); } + + if (members.globals.length) { + nav.push({ + type: 'namespace', + longname: "global", + name: "global", + members: find({ + kind: 'member', + scope: "global" + }), + methods: find({ + kind: 'function', + scope: "global" + }), + typedefs: find({ + kind: 'typedef', + scope: "global" + }), + events: find({ + kind: 'event', + scope: "global" + }) + }); + } return nav; }