GMAT maintains official documentation for developers.
Here are links for:
Building the User Guide
GMAT Documentation Style Guide