GNOME Bugzilla – Bug 769679
Feature Request: doxygen command to expand an environment variable
Last modified: 2018-07-30 10:54:11 UTC
Currently, my @mainpage looks like: ... Document generated on: ${DOXYGEN_GENERATION_DATE}, branch: ${DOXYGEN_GENERATION_BRANCH}, revision: ${DOXYGEN_GENERATION_REVISION} ... Now, of course, doxygen does not know anything about DOXYGEN_GENERATION_DATE, so my options are: - use sed to substitute values in the source, before using doxygen (which is what is done currently), - use sed in the generated output (ok for html, harder to do for pdf etc) to change values post generation. The feature request is to have a new command, say @environment, so the documentation can be written instead as: ... Document generated on: @environment DOXYGEN_GENERATION_DATE, branch: @environment DOXYGEN_GENERATION_BRANCH, revision: @environment DOXYGEN_GENERATION_REVISION ... Before invoking doxygen, the user build script is to export values, for example: export MY_CUSTOM_THING=<my custom value here> Doxygen, upon finding the tag @environment MY_CUSTOM_THING, is to execute a getenv("MY_CUSTOM_THING") and expand the result in the generated documentation. Thanks for considering this request.
As discussed in https://github.com/doxygen/doxygen/pull/734 , Doxygen has moved its issue tracking to https://github.com/doxygen/doxygen/issues All Doxygen tickets in GNOME Bugzilla have been migrated to Github. You can subscribe and participate in the new ticket in Github. You can find the corresponding Github ticket by searching for its Bugzilla ID (number) in Github. Hence I am closing this GNOME Bugzilla ticket. Please use the corresponding ticket in Github instead. Thanks a lot!