Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / For those who want to document code in an auomatic way ...

Author
Message
Mika
20
Years of Service
User Offline
Joined: 30th Jun 2004
Location: South of France
Posted: 1st Mar 2006 00:52
Good evening,

For information, Natural Docs seems to be a customizable documentation automatic generator that can be adapted (with some limitations) to the DB Pro automatic documentation tasks.

As DB Pro, is not 'natively' supported by Natural Docs, you should have to comment properly the code to obtain beautiful and readable HTML doc in line with your code, and some feature such as diagrams or call trees are not supported. Some good pratices regading documentation information have to be so followed.

Natural Docs seems easy to be used, and documentation is quite clear and simple.

Should be useful for everybody.

Natural Docs can be found here :
http://www.naturaldocs.org
and it needs perl to be ran : www.activestate.com/Products/ActivePerl

Michel
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 1st Mar 2006 02:02
Looks nice. Could take a while to customise it though.

Mika
20
Years of Service
User Offline
Joined: 30th Jun 2004
Location: South of France
Posted: 4th Mar 2006 00:57
Good evening,

Attached you will find an example of the kind of documentation that be obtained with NaturalDocs on DB Pro code. Unzip the file in any folder.

As it was said previously, NaturalDocs, has not been written for DB Pro but can be customized in order to be used with DB Pro.
However, the code must be explicitly commented in order to generate the documentation, but I think that good comment practices are essential to coding activity, so extra cost due to specific comments would not be unaffordable.

In order to show the usage of NaturalDocs this is a code I wrote and which has been modified in order to update the comments to the NaturalDocs tag system


Moreover, NaturalDocs have to be customized in order to recognize DB Pro, so this is the content of adapted NaturalDocs 'Languages.txt':


And the content of the NaturalDocs 'Topics.txt' files:


At the end, as NaturalDocs is developped in perl, I believe that a parsing package can be developped in order to fully support DB Pro language.

Michel

Attachments

Login to view attachments

Login to post a reply

Server time is: 2025-06-07 09:33:19
Your offset time is: 2025-06-07 09:33:19