Skip to content

pasdoc/pasdoc

Repository files navigation

PasDoc - documentation generator for Pascal source code

Introduction

PasDoc is a documentation tool for the Object Pascal code. Documentation is generated from comments found in the source code and / or in dedicated "description files". Numerous output formats are supported, including HTML, LaTeX (for PDF, PS), XML and PHP.

This is a free and open source software.

We appreciate your donations (Michalis, maintainer of PasDoc, also makes Castle Game Engine), esp. if you use PasDoc in a commercial project. This helps us to continue developing and improving PasDoc.

Basic Usage

Put comments before the identifiers in your Pascal source code. Like this:

{ My amazing unit. }
unit MyUnit;

interface

type
  { My amazing class. }
  TMyClass = class
  public
    { My amazing method. }
    procedure MyMethod;
    { My amazing property. }
    property MyProperty: string read GetMyProperty;
  end;

implementation
...
end.

Process this source code with PasDoc, and get documentation in one of the output formats. From the command-line, you can do it like this:

mkdir -p output-dir/
pasdoc myunit.pas --format html --output output-dir

You can also use the GUI interface.

Complete Documentation

See the documentation on our website covering all the features of PasDoc, including the supported comment syntax, output formats, and more.

License

GNU GPL >= 2.

Copyright