如何在 LuaForWindows 中使用 LuaDoc [英] How to use LuaDoc with LuaForWindows

查看:22
本文介绍了如何在 LuaForWindows 中使用 LuaDoc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题都在标题中:如何在 LuaForWindows 中使用 LuaDoc?

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

在我的 Lua 安装中,我有一个 luadoc_start.bat,但命令窗口一打开就关闭.从那里我不知道我还能做什么.

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.

有什么帮助吗?谢谢

推荐答案

对于在Lua For Windows中使用luadoc,命令如下:

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

luadoc_start.bat path	oluafile
ame.lua

这将在命令提示符窗口或 powershell 中完成.

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

我得到了一个 doc 文件来正确生成但是如何为整个项目做到这一点?我知道有一个 -d 参数,但我不知道如何使用它,我的尝试都没有成功.

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.

对于此任务,您需要编写一个 shell 脚本.这是一个小的 脚本.

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"
}

这里,你必须cdpath oluafile目录并运行这个PS1文件.

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

这篇关于如何在 LuaForWindows 中使用 LuaDoc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆