Module documentation
BlitzMax Forums/BlitzMax Programming/Module documentation
| ||
Is there a guide anywhere for bbdoc codes when writing docs? I've tried following the layout of some existing mods but it's a bit of a painful process. For example, I've got *some* documented .bmx files compiling correctly and others being missed out. Cheers |
| ||
Well, reading the source of BBDOC+ - heading style (for title) @ - bold % - italics # - link (to the word) any CODE can be used with multiple words if encapsulated by { and } ie: @{this is all bold} [ - starts a table ' | ' - separates a coloumn (there are space before and after the symbol |) * - starts a new row ] - closes a table {{ - starts a code-box style }} - closes a code-box style |
| ||
Thanks Degac, that's about as far as I've got. I've got one (documented) main import file that imports the others.. Module matibee.mbmframework ModuleInfo .. etc Import "1.bmx" Import "2.bmx" Import "3.bmx" etc but the compiled docs only go as far as 1.bmx, all the other files after that aren't counted. I'll do some more digging. Brucey's Box2d mod looks an interesting and useful candidate :) |
| ||
Try using Include. |
| ||
Thanks mark. I tried keeping all the .bmx files as stand-alone entities, so I've not used any includes at all, but I guess that approach may be flawed. Instead I think I should "Include" as you said, or make each bmx a seperate mod inside mbmframework.mod. That would allow for compilation with selected modules rather than the whole shooting match which is what I was considering anyway. |
| ||
Actually no, I'm wrong, you should be able to use Import. Maybe it's because the first char of the file is a number. |
| ||
The doc stuff doesn't support Include, as far as I can remember. Import works perfectly well - or at least it used to... If it is not documenting your imports, it's more likely that you've missed something out along the way... |
| ||
Works fine with Include for me.. And I've got plenty of modules which work that way. |
| ||
Take a look at this tutorial on bbdoc... |