You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
New-MarkdownCommandHelp & Export-MamlCommandHelp commands create a parent folder with module name #835
Make sure you are able to repro it on the latest version
Search the existing issues.
Steps to reproduce
I have some markdown files which I create in my ./docs/en-US folder using New-MarkdownCommandHelp.
When I run New-MarkdownCommandHelp it creates another parent folder with the module name inside like ./docs/en-US/<ModuleName>
Same happens with Export-MamlCommandHelp.
Workaround is to flatten the directory structure, but this is extra work. Is there another parameter to avoid this? I don't think any command should be creating parent folders and leave that to the user to decide.
Expected behavior
To output directly into the directory, I specify and create no extra parent folders.
Actual behavior
Creates parent directory with module name.
Error details
Environment data
Name Value
---------
PSVersion 7.5.4
PSEdition Core
GitCommitId 7.5.4
OS Microsoft Windows 10.0.26100
Platform Win32NT
PSCompatibleVersions {1.0,2.0,3.0,4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Version
1.0.1
Visuals
No response
Reacted by teramako, Hudson, Tristan Wrubleski, Mitch Richters and Manjunath Beli
Especially when output folder is provided, all files should be placed in the path provided without creating Parent folder with Module Name. Helps in CICD to know the absolute path beforehand.
The current design is frustrating. The previous version allowed me to specify a folder like en-US for the maml XML file. If you don't want to break the design, then add a new parameter allowing for an absolute path without injecting anything. Trust the user to know where they want to put the files.
Activity
belibug commentedon Mar 17, 2026
Especially when output folder is provided, all files should be placed in the path provided without creating Parent folder with Module Name. Helps in CICD to know the absolute path beforehand.
sdwheeler commentedon Jul 10, 2026
This is by design but we may consider a feature change.
jdhitsolutions commentedon Jul 27, 2026
The current design is frustrating. The previous version allowed me to specify a folder like en-US for the maml XML file. If you don't want to break the design, then add a new parameter allowing for an absolute path without injecting anything. Trust the user to know where they want to put the files.