Personal tools

Documentation guidelines

From MCRL2

Jump to: navigation, search

This page describes the documentation guidelines for tools and libraries.

Contents

Tools

Tool documentation should consist of help information and a user manual. The help information is described in the tool interface guidelines, the user manual is described here.

User manual

The tool user manual should be available at the tool manual pages, and should be named after the tool. The page should contain a one-line description, and the following sections (in that order):

TOOL [OPTION]... ARGS
where:
  • TOOL stands for the official name of the tool;
  • ARGS stands for the arguments the tool can take, where optional arguments are typeset in square brackets '[' and ']'.
OPTION can be any of the following:
-o, --option
description of the option
-oFOO, --option=FOO
description of the option and the possible values of mandatory argument FOO
-o[FOO], --option[=FOO]
description of the option and the possible values of optional argument FOO, including an indication of the default value
If a number of option descriptions consist of multiple sentences, it is also allowed to use full sentences (including capitals and full stops) in option descriptions.
Below the list of all non-standard options, the list of standard options should be printed as a separate paragraph, formatted as follows:
Standard options:
-q, --quiet
do not display warning messages
-v, --verbose
display short intermediate messages
-d, --debug
display detailed intermediate messages
-h, --help
display help information
--version
display version information
Written by AUTHORS.
where AUTHORS stands for the names of the authors.
Report bugs at our issue tracking system.

Libraries

Library documentation should consist of a user manual and reference manual. Both should be available on the library documentation page.

User manual

The library user manual provides an informal explanation of the library and its use. It should consist of the following sections (in that order):

Written by AUTHORS.
where AUTHORS stands for the names of the authors.
Report bugs at our issue tracking system.

Reference manual

The library reference manual provides a technical specification of the library. It should consist of an explanation of all used elements in the public interface. This manual should be automatically generated from the library code using Doxygen comments. The current convention is that only documented code will be displayed, unless the \internal command is included in the Doxygen comment. Library code located in a detail sub-directory is considered to be no part of the public interface, and no documentation is generated for this code.

Doxygen documentation should specified as follows:

In the above specified documentation, the following Doxygen special commands should be used:

There are instructions for building the reference manual for offline viewing.

General

The following documentation guidelines apply to both tools and libraries.

Acknowledgements

All tools and libraries should acknowledge authors of used or "inspirational" code. This does include but is certainly not limited to fulfilling license requirements. Acknowledgements are required in the following cases:

However, things regarded as common knowledge are excluded from the latter two requirements.

Besides these requirements, authors of the mCRL2 toolset are highly encouraged to add references to related work (similar to adding related work in a paper).

Some examples to illustrate:


We distinguish three types of acknowledgements:

full 
This means that all relevant information should be given. That is, authors, articles, original source location and a description of the precise use of the code etc.
summary 
A summary of the information of full. This should include the authors, article name and functionality description.
short summary 
Even shorter variant of the summary. This should only include authors or article name and the functionality.

Some examples to illustrate:


Where to acknowledge and to what extent:

This page was last modified on 13 October 2008, at 09:40. This page has been accessed 18,936 times.
Copyright © 2005-2012 Technische Universiteit Eindhoven.
Powered by MediaWiki