---
title: documentationGeneration()
framework: packagedescription
role: symbol
role_heading: Type Method
path: packagedescription/plugincommandintent/documentationgeneration()
---

# documentationGeneration()

The plugin generates documentation.

## Declaration

```swift
static func documentationGeneration() -> PluginCommandIntent
```

## Return Value

Return Value A PluginCommandIntent instance.

## Discussion

Discussion The intent of the command is to generate documentation, either by parsing the package contents directly or by using the build system support for generating symbol graphs. Invoked by a generate-documentation verb to swift package.

## See Also

### Creating a Command Intent

- [sourceCodeFormatting()](packagedescription/plugincommandintent/sourcecodeformatting().md)
- [PluginCommandIntent.custom(verb:description:)](packagedescription/plugincommandintent/custom(verb:description:).md)
