rombust
07-06-2007, 10:53 AM
For those who do not know, Doxygen and pce2 are source code documentation systems that extract comments from the source code to create html documentation.
Doxygen is found at: http://www.stack.nl/~dimitri/doxygen/ and is available on Linux/Windows.
PCE2 is found at ClanLib-0.9/Documentation/Reference/pce2 and requires perl to run
It is strange writing this message, many years ago there was a similar discussion, and pce2 was chosen. Back then i preferred pce2, however since then, Doxygen has advanced a lot.
I use doxygen at work, and have grown to admire it for it's flexibility. See http://kdevelop.org/HEAD/doc/api/html/ for an example.
There are these options:
1.Keep pce2, and do not support doxygen
2.Keep pce2 and support doxygen
3.Use doxygen and drop pce2
Option 1)
No additional work required
Option 2)
I have created a program to convert the pce2 style source code comments to doxygen style comments as follows:
"//:" --> "//! \brief"
"//-" --> "//!"
"//param " --> "//! \param"
See attached file (srcdox.cpp in the zip) for my converter program. The entry point is: srcdox_main()
Option 3)
Use my converter program to convert the comment style, and write the output back to SVN. Drop pce2.
It should be possible to make the ClanLib documentation using Doxygen look like the pce2 html, with further tweaks as follows:
Create source code groups (For Display, Core, GUI etc) using "//! /defgroup"
Create a html header and footer
I did have an example, however, i cannot upload it (rtsoft complained "out of memory", even with a 3 mb zip (with a few thousand files)
If you want an example, there is a lot out there on the internet... for example http://svn.wikimedia.org/doc/
Any Comments?
Doxygen is found at: http://www.stack.nl/~dimitri/doxygen/ and is available on Linux/Windows.
PCE2 is found at ClanLib-0.9/Documentation/Reference/pce2 and requires perl to run
It is strange writing this message, many years ago there was a similar discussion, and pce2 was chosen. Back then i preferred pce2, however since then, Doxygen has advanced a lot.
I use doxygen at work, and have grown to admire it for it's flexibility. See http://kdevelop.org/HEAD/doc/api/html/ for an example.
There are these options:
1.Keep pce2, and do not support doxygen
2.Keep pce2 and support doxygen
3.Use doxygen and drop pce2
Option 1)
No additional work required
Option 2)
I have created a program to convert the pce2 style source code comments to doxygen style comments as follows:
"//:" --> "//! \brief"
"//-" --> "//!"
"//param " --> "//! \param"
See attached file (srcdox.cpp in the zip) for my converter program. The entry point is: srcdox_main()
Option 3)
Use my converter program to convert the comment style, and write the output back to SVN. Drop pce2.
It should be possible to make the ClanLib documentation using Doxygen look like the pce2 html, with further tweaks as follows:
Create source code groups (For Display, Core, GUI etc) using "//! /defgroup"
Create a html header and footer
I did have an example, however, i cannot upload it (rtsoft complained "out of memory", even with a 3 mb zip (with a few thousand files)
If you want an example, there is a lot out there on the internet... for example http://svn.wikimedia.org/doc/
Any Comments?