In Documentation Flavoured Development a change in the documentation can indicate a code change.
It builds on top of markdown by adding an extra rule. The syntax is two
forward slash (//
) at the beginning of a line. The first line contains a
chekbox which indicates if the feature is ready or not. [ ]
indicates an
unchecked checkbox and [x]
indicates a checked checkbox. The following lines
prefixed with slashes may contain references for developers to find a file,
class, method or variable. At least one reference should be added when the
feature is "done" and no more than three is recommended.
Two type of static documentation can be generated from this. The first is
without technical information containing only the lines not prefixed by //
.
The second is with technical information where the status of the section of the
documentation indicated with color and the references are shown.
Markdown can be version controlled with this diff can show changes in the documentation. While references can help developers find the necessary bits of code. With tests one can be sure that a change does not break other parts of an application.