How to use LuaDoc with LuaForWindows

柔情痞子 提交于 2019-12-02 04:52:21

问题


The question is all in the title : how to use LuaDoc with LuaForWindows ?

In my Lua installation, I have a luadoc_start.bat but the command windows closes as soon as it opens. From there I don't know what else can I do.

Any help ? Thanks


回答1:


For using luadoc in Lua For Windows, the command is like this:

luadoc_start.bat path\to\lua\file\name.lua

which is to be done in either the command prompt window, or powershell.

I get a doc file to properly generate but how to do it for the whole project? I understand there is a -d argument but I am not sure how to use it, none of my tries where successful.

For this task, you'll need to write a shell script. Here's a small powershell script.

$files = Get-ChildItem .\
foreach( $file in $files ) {
    luadoc_start.bat "$file"
}

Where, you have to cd to the path\to\lua\file directory and run this PS1 file.




回答2:


Just append pause line to luadoc_start.bat and you will see help screen.



来源:https://stackoverflow.com/questions/15033719/how-to-use-luadoc-with-luaforwindows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!