Create your own API site
How to make an API documentation site
Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.The API module creates the Drupal API documentation. It can also be used to create your own site with the API documentation for your project.
This module can parse any documented Drupal code, including contributed modules, independent of Drupal core version. This means the Drupal code you use to run your site does not need to be the same as the code you are parsing and displaying. In fact, it is a good idea to keep the code you are parsing and displaying outside of the site running the API module.
How to write comments and code so that API module can correctly display it is explained in the pages of the Drupal Coding Standards.
How to make an API documentation site
Drupal is a registered trademark of Dries Buytaert.