如何使用valadoc?

Jen*_*off 1 documentation-generation vala

我目前正在Vala写一个图书馆.

我已经到了一点,我想从我的来源生成一些文档.

valadoc 似乎是正确的工具,但没有太多关于如何使用它的信息,手册页很短.

我尝试运行它,valadoc -o doc src/*.{vala,vapi}它给了我这些错误消息:

unixodbc.vala:21.7-21.9: error: The namespace name `Gee' could not be found
unixodbc.vala:40.9-40.27: error: The type name `Map' could not be found
unixodbc.vala:42.30-42.48: error: The type name `Map' could not be found
unixodbc.vala:40.9-40.27: error: The type name `Map' could not be found
unixodbc.vala:40.9-40.27: error: The type name `Map' could not be found
unixodbc.vala:40.9-40.27: error: The type name `Map' could not be found
unixodbc.vala:80.63-80.81: error: The type name `Map' could not be found
unixodbc.vala:98.9-98.25: error: The type name `ArrayList' could not be found
unixodbc.vala:99.3-99.19: error: The type name `ArrayList' could not be found
unixodbc.vala:110.4-110.22: error: The type name `Map' could not be found
unixodbc.vala:178.9-178.24: error: The type name `ArrayList' could not be found
unixodbc.vala:180.17-180.32: error: The type name `ArrayList' could not be found
unixodbc.vala:187.10-187.25: error: The type name `ArrayList' could not be found
Failed: 13 error(s), 0 warning(s)
Run Code Online (Sandbox Code Playgroud)

因为它似乎valadoc也被设计为在所有依赖项上运行?

我怎样才能让它为我的图书馆工作?

nem*_*equ 5

你需要传递--pkg gee-0.10(或者你正在使用的任何版本),就像valac一样.有关valadoc --help选项及其说明的列表,请参见手册页.您需要的许多选项与传递给valac的选项相同.