#12348·doxygen

Add new language filters

Author: wesley-deanCreated Sep 14, 2026Updated Sep 15, 2026
Labelsenhancementwebsite

I have a few AWK-based filters to use Doxygen with several other languages:

@Anvil created a repo some time ago, bash-doxygen that was a fascinating sed filter that helped Doxygen read Bash scripts. It was the coolest thing I had ever seen. I had a pretty significant list of things I wanted to add and my sed-fu being only moderately advanced, wasn't up to it, so I looked at rebuilding it in AWK (which ought to be available in most installations). That's what these filter are: single AWK scripts that can be used to give Doxygen the hints it needs to be able to take AWK, Bash, etc. and make their commentary available for documentation purposes.

The Python filter munges Python DocBlocks / Docstrings to better fit with Doxygen while not tripping tools like pylint. The alternative I was attempting to avoid was having Doxygen treat DocBlock sections as verbatim, per the Doxygen documentation.

The JavaScript filter primarily massages JSDoc into Doxygen-compatible structures and type declarations.

All of the filters include a test suite covering all of the "flavors" of the tools which are tested with gawk and mawk. The AWK scripts are linted with gawk --lint and MegaLinter is used for linting, code quality, and security scanning (no errors or warnings detected).

Each filter produces immutable, attested, versioned build artifacts with SHA-256 hashes available, so one could pin their processes to specific releases as-desired.

These filters are all fairly new as they're a part of a larger project of mine. I would understand if you wanted to wait a while before adding them to the Doxygen helpers page.