typedoc icon indicating copy to clipboard operation
typedoc copied to clipboard

Documentation Generation and AMD modules

Open mudHOAX opened this issue 12 years ago • 1 comments

Will this project eventually support documentation generation for RequireJS projects?

Currently this appears to be getting extremely confused at resolving modules when using the --module amd flag.

I've knocked up a quick example using requireJS. requirejs

and another using commonJS. commonjs

I would have expected the output to have been the same between the two projects.

I can upload the source of both if required.

Regards, Ian Munro

mudHOAX avatar Nov 28 '14 15:11 mudHOAX

Hi Mudhoax, nice to hear from you. Actually this difference reflects the way the compiler works when the module mode is set to AMD.

This will greatly change with TypeScript 1.1/1.3 support. The new compiler no longer changed the internal data structures due to the selected module mode. So with the upcoming release of TypeDoc 0.2 you can decide in which way you want your code to be documented independently of the selected module mode through the --mode command line argument.

sebastian-lenz avatar Jan 14 '15 21:01 sebastian-lenz