next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc > The Macaulay2 language > packages > creating a package > beginDocumentation

beginDocumentation -- package item: start documentation section

Synopsis

Description

Documentation for a package, and tests for the package, are placed after this point in a package file. This way, documentation can be loaded separately, Macaulay2 examples in the documentation can be run, and the whole documentation can be stored in a database.

For an example, see an example of a package

To write documentation without using the function beginDocumentation, which is just an optimization, use needsPackage to load the packages SimpleDoc and Text.

See also