09-12-2013, 05:54 AM
There's probably a library for it.
Documentation drive
|
09-12-2013, 05:54 AM
There's probably a library for it.
09-13-2013, 04:40 AM
The wiki descriptions have been imported. Now for the fun part - markdown, filtering, and some corner cases, such as overloaded functions.
I think the basics are working, at least for the class / function reference. So I hereby invite anyone to have a look and try updating the $/MCServer/Plugins/APIDump/APIDesc.lua file. It has a pretty straightforward structure and is documented, too, so it should be easy to document things. There are already lots of examples, since the documentation from the wiki has been auto-imported (with flaws, of course, these will need ironing out, too).
Also note that the plugin generates two files, $/MCServer/API/undocumented.lua and $/MCServer/API/unexported-documented.txt that list stuff that is missing documentation, in a ready-to-copypaste format, and stuff that is documented but is not exported in the API (needs removal from APIDesc). If you want to document something, I suggest you first drop a line here, saying which class you want to do, so that we don't have conflicts if multiple people try to do the same class. Also keep the lists alpha-sorted, so that it's easier to navigate them all. I have set up an automatic script to upload the Lua API to http://mc-server.xoft.cz/LuaAPI as a part of the nightbuild process.
09-15-2013, 07:33 PM
I'm gonna write the cWorld documentation, it's probably the most used and the least documented.
09-16-2013, 05:56 AM
Yeah, as soon as I started writing the docs, I found out so many bugs in the API, I have to first fix the API itself and only then write the docs
09-17-2013, 06:54 AM
cWorld documentation done, what do you think of it?
http://mc-server.xoft.cz/LuaAPI/cWorld.html Will anyone help me with the documentation now?
09-17-2013, 07:05 AM
I'll try cRoot tomorrow.
09-18-2013, 01:46 AM
I finished documenting cRoot.
09-18-2013, 04:17 AM
Well, almost. Mostly only the positive cases are explained, nothing is said about failures - what does GetWorld() return if the name is not found? Also, callbacks need their signatures explained - what should the callback function look like, what arguments it receives, what can it return?
I see I can improve my cWorld documentation by this, too. Shall we both improve ours? Also, Lua doesn't distinguish between an int, a float or a double, it knows only a "number" type. (GetTotalChunkCount() etc.)
09-18-2013, 04:24 AM
cWorld looks great, if the wiki isn't already pointed there, it should be.
How do you generate the HTML out of the code, so I could try and make one like you have? |
« Next Oldest | Next Newest »
|