We are developing pretty big project based on requirejs and backbone.
Each class is in its own file and the directory structure is corresponding the namespaces we are defining on jsdoc.
And we are losing the classes using requirejs, which serves practically as our namespace & auto load engine, Which its great.
Our directory structure is similar to that:
Photomania/App/Components/Header/Main.js
Photomania/App/Components/Header/View.js
Photomania/App/Components/User/Main.js
Photomania/App/Components/User/View.js
And the namespaces:
namespace Photomania
namespace App
memberOf Photomania
namespace Components
memberOf Photomania.App
namespace Header
memberOf Photomania.App.Components
class Main
memberOf Photomania.App.Components.Header
And so on...
So we are having more the one class with the same name.
On the current template generated html, the nav links text contains only the name of the entity.
linkto(c.longname, c.name)So its look very unorganized having multiple main and view entries (especially on classes and the namespaces list)
For now i've edited the template code and changed
linkto(c.longname, c.name) to linkto(c.longname, c.longname) for some of the entities types and its looks much better.
I thought to add a configuration entry for that but i don't know when to start and how it will be the best way to implement it.
I can override
linkto, and make the 'if' inside it, make a lot of if's on each call to linkto or change c.name to be equles to c.longname.
i think the first option will be the best.
It will be also nice to have a collapsible navigation for that.