# New-ConfigurationDocumentation

Enables or disables creation of documentation from the module using PowerForge.

Project

PSPublishModule

Build, test, version, sign, and publish PowerShell modules with reusable PowerForge pipelines.

[View on GitHub](https://github.com/EvotecIT/PSPublishModule) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSPublishModule/releases/tag/v3.0.124) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSPublishModule/2.0.27)

Stars **48**

Forks **15**

Open issues **1**

PowerShell Gallery downloads **17,213**

Release **v3.0.195**

Language: C# Updated: 2026-11-25

Command 

**Module**

`PSPublishModule`

**Inputs**

`None`

Enables or disables creation of documentation from the module using PowerForge.

## Syntax

```
New-ConfigurationDocumentation
[-AboutTopicsSourcePath <String[]>]
[-Enable]
[-ExternalHelpCulture <String>]
[-ExternalHelpFileName <String>]
-Path <String>
-PathReadme <String>
[-SkipAboutTopics]
[-SkipExternalHelp]
[-SkipFallbackExamples]
[-StartClean]
[-SyncExternalHelpToProjectRoot]
[-UpdateWhenNew]
[<CommonParameters>]
```

[#](#method-new-configurationdocumentation-string-switchparameter-string-string-string-string-switchparameter-switchparameter-switchparameter-switchparameter-switchparameter-switchparameter)

Parameter set: `All Parameter Sets`

## Description

This cmdlet emits documentation configuration segments that are consumed by Invoke-ModuleBuild / Build-Module. It controls markdown generation (in -Path), optional external help generation (MAML, e.g. en-US\<ModuleName>-help.xml), and project-root documentation sync. When -Enable is used, PowerForge generates documentation, cleans stale files in the configured docs folder, and updates the project documentation path by default.

About topics are supported via about_*.help.txt / about_*.txt / about_*.md / about_*.markdown files present in the module source. When enabled, these are converted into markdown pages under Docs\About. Additional source roots can be provided via AboutTopicsSourcePath.

## Guides & Samples

Authored walkthroughs and practical samples linked to this command.

- [Configure module documentation](/projects/pspublishmodule/examples/configure-module-documentation/) Example
  
  A curated example for documentation configuration in a PowerForge module workflow.

## Examples

### Generate markdown docs and external help, and update the project docs folder

```powershell
New-ConfigurationDocumentation -Enable -Path 'Docs' -PathReadme 'Docs\Readme.md' -SyncExternalHelpToProjectRoot
```

### Generate docs but skip about topics conversion and fallback examples

```powershell
New-ConfigurationDocumentation -Enable -Path 'Docs' -PathReadme 'Docs\Readme.md' -SkipAboutTopics -SkipFallbackExamples
```

### Generate docs and scan custom about topic folders in staging

```powershell
New-ConfigurationDocumentation -Enable -Path 'Docs' -PathReadme 'Docs\Readme.md' -AboutTopicsSourcePath 'Help\About','Internals\About'
```

## Parameters

**-AboutTopicsSourcePath String[] optional**

Optional extra source paths for about_* topic files (.help.txt, .txt, .md, .markdown). Relative paths are resolved from the staging root (for example: 'Help\About').

**-Enable SwitchParameter optional**

Enables creation of documentation from the module.

**-ExternalHelpCulture String optional**

Culture folder for generated external help (default: en-US).

**-ExternalHelpFileName String optional**

Optional file name override for external help (default: <ModuleName>-help.xml).

**-Path String required**

Path to the folder where documentation will be created.

**-PathReadme String required**

Path to the readme file that will be used for the documentation.

**-SkipAboutTopics SwitchParameter optional**

Disable conversion of about_* topics into markdown pages.

**-SkipExternalHelp SwitchParameter optional**

Disable external help (MAML) generation.

**-SkipFallbackExamples SwitchParameter optional**

Disable generating basic fallback examples for cmdlets missing examples.

**-StartClean SwitchParameter optional**

Legacy compatibility switch. Documentation builds clean stale generated files by default.

**-SyncExternalHelpToProjectRoot SwitchParameter optional**

When enabled, the generated external help file is also synced back to the project root (e.g. en-US\<ModuleName>-help.xml).

**-UpdateWhenNew SwitchParameter optional**

Legacy compatibility switch. Documentation builds update the project documentation path by default.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:5B5FF1DEC9560ED9343AD4E7B4B8B2038638BE6FF36B617D6540A9A08484ACB0 -->
