davidshimjs / jaguarjs-jsdoc

A Template of jsdoc for jaguar.js project
MIT License
218 stars 136 forks source link

cannot navigate to global.html #5

Open moos opened 10 years ago

moos commented 10 years ago

@typedefs or @global are placed in global.html. But there is no link to it from the nav pane.

think2011 commented 10 years ago

please help..

moos commented 10 years ago

My quick fix was to replace line 5 in tmpl/navigation.tmpl with

<h3 class="applicationName"><a href="global.html"><?js= env.conf.templates.applicationName ?></a></h3>

I'm sure there is a better way to solve it though.

think2011 commented 10 years ago

:)

twick commented 10 years ago

Adding:

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"
    })
  });
}

to buildNav() (line 199) in publish.js before return nav; seems to work for me.