************ Introduction ************ GNATdoc is a documentation tool for Ada which processes source files, extracts documentation from the sources, and generates either annotated HTML files or Restructured Text (.rst) files. It relies on documentation comments that it extracts from the source code. The engine in charge of extracting these comments, coupled with a cross-reference engine, gives GNATdoc all the flexibility needed to generate accurate documentation, and report errors in cases of missing documentation. Installation ------------ GNATdoc is shipped as part of the GNAT Studio package. To install it, launch the GNAT Studio installer. After the installation, place :file:`/bin/` in your PATH environment variable. Launching GNATdoc ----------------- GNATdoc requires your project hierarchy to be described via GNAT project files (.gpr). To launch GNATdoc, execute:: gnatdoc -P where :file:`` is the .gpr file at the root of your project hierarchy (referred to here as the root project). GNATdoc generates an HTML report in the :file:`gnatdoc` directory of the object directory of the root project. Command line interface ---------------------- A brief description of the supported switches is available through the `--help` switch:: $ gnatdoc --help Usage: gnatdoc [options] project_file Options: --backend Backend to use to generate output --generate Part of code to generate documentation -O, --output-dir Output directory for generated documentation -P, --project Project file to process --style