Documenta

Community Forums/Showcase/Documenta

fredborg(Posted 2005) [#1]
Just a little something to generate nicer module documentation. It's not done yet, so you'll see some stuff missing. Use it if you like, and feel free to add to it.

It eats your mod folder and spits out a document folder :)

Warning: It overwrites your original BlitzMax Command Reference. Use at your own risk!


It spits out html files, looking something like this:

Have Fun!


Perturbatio(Posted 2005) [#2]
cool :) the menu page could do with a bit of tidying.


fredborg(Posted 2005) [#3]
Yep, it's not done yet :)


Perturbatio(Posted 2005) [#4]
just need to add a <BR> after the </span>


Dirk Krause(Posted 2005) [#5]
way cool :-).


assari(Posted 2005) [#6]
clever


fredborg(Posted 2005) [#7]
Added some extra bits, so intro.html files are automatically included, and examples as well. There might be a few minor bugs with the intro.html, because it's being reformatted, and it might mess up a few links.


puki(Posted 2005) [#8]
Hey, I like this - do me one too


Beaker(Posted 2005) [#9]
Nice work fred.


Booticus(Posted 2005) [#10]
Nicely done! Like Doxygen for Blitz! You rule Fred!! Works fine on the Mac. Had to fiddle with the directory structure of course but minimal hassle!


Sarge(Posted 2005) [#11]
best thing i have seen for blitzmax good work mate


flaith(Posted 2005) [#12]
damned, it's really good :)
ok with ie, but i use FireFox and pb with navbar, it doesn't expand :(


flying willy(Posted 2005) [#13]
It's way better than the existing help files!

Perhaps BRL would do well to use this style. It can only improve the product...


Perturbatio(Posted 2005) [#14]
*EDIT*
Never mind, I messed up.

However, the fancy drop down css doesn't work in anything except IE. :\

I take that back, it works in Konquerer as well.


Jeroen(Posted 2005) [#15]
awesome. Mark, notice :)


Robert(Posted 2005) [#16]
It doesn't work correctly in FireFox at the moment, I'll try and figure out why later (I know that FF does support the display property in CSS)


fredborg(Posted 2005) [#17]
Updated! It now works with FireFox (and most over browsers I assume).

And it now overwrites your original BlitzMax command reference, so that you can use F1 to bring it up inside the IDE.

Please make sure to back up the original documentation before running it!

Use at your own risk!



regaa(Posted 2005) [#18]
How to enter yes, or no? I cant hit any buttons when the question come, overwrite or not. Confirm does not work for me :( .


fredborg(Posted 2005) [#19]
On linux or Windows? It works for me on windows...

[Edit] Try copying the source over again, I changed the confirm alert to a proceed alert...If it still doesn't work, just remove the alert.


flaith(Posted 2005) [#20]
Again : Damned, it's really good
thanks for the firefox's fix :)


Grisu(Posted 2005) [#21]
REALLY COOL! :D

ty!


Panno(Posted 2005) [#22]
great work fredborg !


Beaker(Posted 2005) [#23]
Quite stunning.


Bot Builder(Posted 2005) [#24]
OOOOH great job fredborg!!! If I finish my bmax parser (atm grapling with making a fast uber split function), you can use it for highlighting in the samples.


Wiebo(Posted 2005) [#25]
Absolutely great! Looks good in Firefox over here. Thanks Fredborg.


flying willy(Posted 2005) [#26]
feature suggestion
Have documenta overwrite the other help files as well and combine with www.blitzwiki.org so it comprehensively updates.

The idea is that if you do a syncmods, you can also do a syncdocs, which will run the program, fix the docs and also take the stuff from the blitzwiki project online.

This will mean very powerful local docs, but it may be really hard to do.

It's worth thinking about though.


AaronK(Posted 2005) [#27]
Todd is the guy who set up the Wiki, and he might know enough about it to get fredborg's output into a Wiki format. That would be excellent.

Aaron


Difference(Posted 2005) [#28]
I get:

"C:/Programmer/Coding/BlitzMax/Samples/documenta.debug"
Unhandled Exception: Couldn't create destination folder!
WriteDocs [f:\blitzmax\mod\brl.mod\filesystem.mod/filesystem.bmx;82;41]
documenta [C:\Programmer\Coding\BlitzMax\Samples/documenta.bmx;1062;1]

I set the Const bmaxfolder:String = "C:/Programmer/Coding/BlitzMax"

[EDIT] also tried : "C:\Programme\Coding\BlitzMax"

I don't have an f drive.


Difference(Posted 2005) [#29]
"C:/Programmer/Coding/BlitzMax/" made it work


bradford6(Posted 2005) [#30]
Very Nice Work, Fredborg!


Bot Builder(Posted 2005) [#31]
skunk - that could be possible, even applicable since the pages are stored as xml, and it would be possible to scan through it for the headers and if it is following the rules of construction make it into the standard formats. For pages not in the correct form, the default bb docs could be used, and the page added to a list of non-compliant pages.

[edit]Actually, you can view this xml by going to http://www.blitzwiki.org/index.php/Special:Export , and entering the pages you want to view. for instance "ResizeBank"

This isnt actually what i was expecting, i was hoping for more of a xhtml representation of the actiol contents but ohwell. it could be possible if something like the wikipedia database dump could be created:

http://download.wikimedia.org/


fredborg(Posted 2005) [#32]
Updated to convert all help files including Language Reference and User Guide.

It also creates backups of all the documents, except the individual module documents. These are automatically regenerated if you run 'BMK makedocs'.

I will add a rollback option, so you may revert to the original documents.


Perturbatio(Posted 2005) [#33]
got an error about the bmax folder variable being const, changing to global solves it obviously.


fredborg(Posted 2005) [#34]
Strange, bmaxfolder is a global :)


Perturbatio(Posted 2005) [#35]
oops, I think it was from the old code (I kept my bmaxfolder variable and never noticed it had changed to global) :)


flaith(Posted 2005) [#36]
great, nice work
just one thing, about alphabetical order ( From A to Z :) )
What about functions starting with "_" like "_cls()" ?


poet(Posted 2005) [#37]
Looks much better than the original.
But some of the docs in the /mod/pub are not converted...

Mipooh


Paul "Taiphoz"(Posted 2005) [#38]
Is there anyway to get max to document your own projects ??


N(Posted 2005) [#39]
Yavin: 'bmk docmods' in the commandline. It doesn't document types or methods though, so if you want that you're out of luck.


Booticus(Posted 2005) [#40]
Hey rad! Thanks for that tip! I was wondering the same thing Yavin! Thanks Noel!


wizzlefish(Posted 2005) [#41]
Add it to your sig, fredborg!


{cYan|de}(Posted 2005) [#42]
bombs out on
release f

subexpression for release must be int blah etc


Perturbatio(Posted 2005) [#43]
if you've updated to the 1.03 version, you need to change those lines to f=null, etc


fredborg(Posted 2005) [#44]
Hi,

It should work with 1.03 now, and also with the official BMax IDE. At least on windows :)


Perturbatio(Posted 2005) [#45]
It does indeed :)

*EDIT*
Hmmm... quickhelp is giving me problems.

---------------------------
Microsoft Internet Explorer
---------------------------
Cannot find 'C:/BlitzMaxBeta101/doc/bmxmods/c:/blitzmaxbeta101/mod/brl.mod/filesystem.mod/doc/commands.html#FileType'.
 Make sure the path or Internet address is correct.
---------------------------
OK   
---------------------------


*EDIT*
deleting commands.txt and redoing it seemed to work.


Rob Pearmain(Posted 2005) [#46]
awesome work, that looks so much more professional now, well done


TeaVirus(Posted 2005) [#47]
Cool, thanks! Works nicely in the Mac editor as well.


Perturbatio(Posted 2005) [#48]
in function WriteModDocs

change the line that writes the module name to:
			WriteLine(stream,"<tr><td class=~qmodulename~q><a href=~qfile://" + m.file +"~q> "+m.name+"</a></td></tr>")

You can then click the module name to open the module source :)


Perturbatio(Posted 2005) [#49]
Updated it, no need to change the bmxfolder variable to your installation (and added url to mod title so that the mod can be opened in the IDE):



fredborg(Posted 2005) [#50]
Cool Perturbatio, I've updated the top post as well :)


Erroneouss(Posted 2005) [#51]
Cool!


Jeroen(Posted 2005) [#52]
works like a charm and a real improvement. Something for BRL to consider to make this the default look?


Perturbatio(Posted 2005) [#53]
The one thing I've noticed is that the 1.09 IDE doesn't populate the navbar correctly when using documenta's navbar html, it works fine with the old one.


Arcadenut(Posted 2005) [#54]
Looks great, but can you have it Generate an Index like the original has? I use that A LOT.