I am working on an app which will become quite huge in time. I have decided to use JsDoc3
and DocStrap
to document all modules. Modules are defined via require.js and in some places they are nested up to 3 or 4 levels deep.
Until now I understand that JsDoc documentation is split into four main sections: Modules, Classes, Tutorials, Globals. Each section has a header dropdown menu and a sidebar each of them listing all of the modules in linear fashion, alphabetically.
I was wondering if there are options to display/group modules and Classes somehow to reflect the project structure. I saw a git repository that document all the classes with lots of slashes module1/submodule1/class1
, but it feels really though to digest this type of navigation. Not to mention that the layout was having trouble with long titles overflowing from the sidebar.
Currently I have a project layout similar to the schema from bellow. It's wide and deep and I expect it to grow further.
/Editor
---/Services
------/UI
------...
---...
---editorApp.js
/Engine
---/Core
------/...
---/Entities
------/...
---/Graphics
------/...
---/...
...
engine.js
/Web
---/Services
------/UI
------...
---...
---webApp.js