Doxygen makes LAPACK Code Ugly ...
Up to version 3.3.1 the source code of LAPACK was very clean and slim. And in particular, the source code itself was a pleasant to read documentation (in ASCII format). Starting with version 3.4.0 the slickness and slimness of the source code was sacrificed for the sake of a (doxygen generated) documentation in HTML format.
I don't really understand why it was necessary to mess up the source code. The structure of the comments was both, simple and uniform. Hence it was easy to parse! All kind of documentation (man pages, info pages, html, etc.) could be generated without modifying the Fortran code, i.e. inserting tons of doxygen markup stuff.
In order to illustrate what I mean I setup a little "proof of concept" page:
Demo: Documentation Generated form LAPACK 3.3.1 Source Code
The basic idea is:
Adding some little markup hints can improve the look of the generated documentation without (completely) destroying the slickness and simplicity of the Fortran source code:
I guess there is no way back. But I would be interested in your opinion ...
I don't really understand why it was necessary to mess up the source code. The structure of the comments was both, simple and uniform. Hence it was easy to parse! All kind of documentation (man pages, info pages, html, etc.) could be generated without modifying the Fortran code, i.e. inserting tons of doxygen markup stuff.
In order to illustrate what I mean I setup a little "proof of concept" page:
Demo: Documentation Generated form LAPACK 3.3.1 Source Code
The basic idea is:
- You have a source file like dgeqp3.f
- The documentation gets extracted leading to some intermediate result like dgeqp3.doc.txt
- The latter gets finally transformed into a man page, info page .... or a html page like dgeqp3.html
Adding some little markup hints can improve the look of the generated documentation without (completely) destroying the slickness and simplicity of the Fortran source code:
- In dgeqp3.html names of matrices and vectors are written in typewriter style. Also, we added some LATEX code in the Further Details section.
- The Fortran code dgeqp3.f is still rather nice and readable.
I guess there is no way back. But I would be interested in your opinion ...
