jaguarjs-jsdoc icon indicating copy to clipboard operation
jaguarjs-jsdoc copied to clipboard

cannot navigate to global.html

Open moos opened this issue 10 years ago • 4 comments

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

moos avatar Mar 26 '14 08:03 moos

please help..

think2011 avatar Mar 29 '14 07:03 think2011

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.

moos avatar Apr 04 '14 16:04 moos

:)

think2011 avatar Apr 04 '14 16:04 think2011

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.

twick avatar Jul 16 '14 14:07 twick