Ruff! (Runtime function formatter) is a documentation generation system for programs written in the Tcl programming language. Ruff! uses runtime introspection in conjunction with comment analysis to generate reference documentation for Tcl programs with minimal effort on the programmer's part.
Ruff! produces documentation that not only requires less duplication of effort from the programmer, but is also more complete, more accurate and more maintainable.
-
Comments in source code do not have to be reproduced for documentation purposes.
-
Ruff! requires minimal markup in the comments making it lightweight as well as reducing clutter.
-
Supports inline formatting using Markdown syntax.
-
Embedded diagrams in multiple formats
-
Program elements like command arguments, defaults and class relationships like inheritance are automatically derived.
-
Maintenance is less of a burden as documentation is automatically updated with source modification such as changes to defaults, addition of mix-ins etc.
On the output side,
-
Ruff! supports multiple formats (currently HTML, Markdown and nroff).
-
Generated documentation can optionally be split across multiple pages.
-
Hyperlinks between program elements, and optionally source code, make navigation easy and efficient.
-
A table of contents and optional searchable index permits quick location of command and class documentation.
-
Class relationships are extracted and the full API for a class, with inherited and mixed-in methods, is flattened and summarized.
-
HTML output supports user-selectable themes.
See https://ruff.magicsplat.com for features and reference documentation.
For additional examples of Ruff! generated documentation, see
iocp, cffi, CAWT, apave, baltip, hl-tcl, tcl-promise, tomato, obex, Woof! and tcl-vix.
- Support for TclOO properties in Tcl 9
- Support for language specifier in fenced blocks
- Collapsible details section for procedure description option when
-compact 1
is specified. Note generated output with-compact 1
has changed. - Bug fix. Ensure diagrams fit in page width
- Bug fix. Index page tooltip synopsis visibility in dark themes.
- Support for embedded text formatted diagrams (ditaa, PlantUML etc.)
- Alignment and linkable numbered captions for fenced blocks and diagrams.
- Fixed minor display artifacts.
This release mainly has cosmetic changes in presentation.
- Ensemble command includes table to subcommands.
- Show command synopsis in navigation pane tooltip.
- Tweaks to themes and navigation.
- Bug fix: broken link to index page.
- Added Nroff formatter for Unix manpages.
- Added themes with end-user selection.
- Added end-user control for positioning navigation pane.
- Classes defined with metaclasses are recognized.
- Proc and method synopsis overrides, for example to distinguish invocation options.
- Web assets are linked by default (option
-linkassets
) instead of being embedded. - Incompatibility: Generated HTML and CSS templates have changed and require modern browsers (no Internet Explorer support).
- Incompatibility: The
-stylesheets
option is not supported. - Incompatibility: The
-navigation
option only takesscrolled
sticky
as valid values. - Incompatibility: The
-output
option is not supported. Use-outfile
and-outdir
instead. - Incompatibility: Output file names use hyphen as a separator instead of underscore.
- Bug fixes
See https://ruff.magicsplat.com/ruff.html#History.
NOTE 2.0 HAS SEVERAL INCOMPATIBILITIES VIS-A-VIS 1.x IN OPTIONS AND GENERATED OUTPUT FORMAT. See above link for details.