How do I Configuring DoxyGen to document ActionScript files?
I've included the *.as and *.asi files in doxygen's search pattern, but the classes, functions and variables don't show there.
Instead of doxygen you should use a documentation generator that specifically supports the language. For ActionScript 2, you have a couple choices:
If you are using ActionScript 3, Adobe includes a free documentation generator along with their open source compiler (the Flex SDK), called "ASDoc". If you are using FlashDevelop, the latest beta has a built in GUI for running ASDoc, so you don't have to dirty your hands with the commandline.
I've been able to produce SOME documentation with DoxyGen (What can I say - I like its features and capabilities) By doing the following:
Add *.as and *.asi to the list of file types to input.
Select:
OPTIMIZE_OUTPUT_JAVA = YES
EXTRACT_ALL = YES
HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
Another issue in AS3 is the package statement. You need to tell DoxyGen to ignore the package definition. This is easy to do using cond. So you'll change the line:
package myPackage {
into
/// @cond
package myPackage {
/// @endcond
Which will cause Doxygen to ignore the line(s) between cond and endcond. Note that there seems to be no need to do the same for the closing curly bracket at the bottom of your .as file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With