Lua Doxygen
Posted: Wed Dec 21, 2016 11:38 pm
Here is a Node.js based Doxygen Lua filter: https://www.npmjs.com/package/doxylua
To use this filter do the following:
1. Download and install Node.js found here: https://nodejs.org/en/download/
2. Run the following Node.js command from the command prompt:
This will create the following Node.js application:
NOTE: <Your User ID> will be your Windows user ID.
3. Start Zeus and make sure the doxylua application created earlier is in the PATH by running this Tools, DOS Command Line command:
That command should produce this output:
4. Create a new Zeus workspace containing all the Lua code to be documented.
5. Use the Zeus Doxygen command to document the code contained in the workspace:
This step will create the following Doxygen configuration file:
NOTE: <Your User ID> will be your Windows user ID.
6. Edit that file and add this line to that file:
The change is made in the following location:
7. Re-run the Zeus Doxygen command and this time it will use the doxylua filter to document the Lua code as shown below:
Cheers Jussi
To use this filter do the following:
1. Download and install Node.js found here: https://nodejs.org/en/download/
2. Run the following Node.js command from the command prompt:
Code: Select all
npm install -g doxylua
Code: Select all
C:\Users\<Your User ID>\AppData\Roaming\npm\doxylua
3. Start Zeus and make sure the doxylua application created earlier is in the PATH by running this Tools, DOS Command Line command:
Code: Select all
doxylua
Code: Select all
FILE argument is required
Usage: doxylua <FILE> [options]
FILE The path to a lua file.
Options:
-s, --show-ast Print out the AST of the specified lua file.
-l, --locations Specify whether the location infos are included in the output.
Default to false.
Only has effect when --show-ast was set.
Code: Select all
C:\Users\<Your User ID>\AppData\Roaming\Xidicone\Zeus\zOxygen\doxygen.dat
6. Edit that file and add this line to that file:
Code: Select all
FILTER_PATTERNS = *.lua=doxylua