# Build documentation in the IDE

Use DocInsight > Build Documentation... to open the Documentation Project Wizard for the current Delphi project group, or for the active project when no saved project group is available.

If a matching `.diproj` documentation project does not exist, the wizard creates one and imports the active Delphi project or project group. Review the source and output settings, and then choose Build. The wizard saves the `.diproj` file, runs the DocInsight CLI in a command prompt, and opens the generated output after a successful build.

To build a `docinsight.json` project directly or automate a build, see Build documentation.