Skip to content

PowerShell about_ help files do not display synopsis due to incompatible formatting #3268

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DarwinJS opened this issue Nov 11, 2018 · 5 comments
Labels
area-helpsystem Area - Help services (pipeline, get/update-help) resolution-external Status - closed by customer or outside resource

Comments

@DarwinJS
Copy link
Contributor

Most powershell core about_* help files are not formatted to support the built in extraction of a synopsis.

Given that the synopsis is the ONLY metadata that can be extracted from the about_ format (which sucks - see #8230 ), these files should be correctly formatted to maximize helpfulness of help using built in features.

Steps to reproduce


Expected behavior

about_Scheduled_Jobs_Advanced     HelpFile                            Explains advanced scheduled job topics, including the file structure
about_Scheduled_Jobs_Basics       HelpFile                            Explains how to create and manage scheduled jobs.

Actual behavior

about_Types.ps1xml                HelpFile
about_Type_Operators              HelpFile
about_Updatable_Help              HelpFile
About_Using                       HelpFile

Get-Help parses only the first line of the SHORT DESCRIPTION into a synopsis.

Most of the about_* files in powershell core are formatted as (notice blank line after heading):

SHORT DESCRIPTION

    This is the short description

for the file synopsis to show up, they should be

SHORT DESCRIPTION
    This is the short description
@DarwinJS DarwinJS changed the title PowerShell Core about_ help files do not display synopsis due to bad formating PowerShell 6 about_ help files do not display synopsis due to bad formating Nov 11, 2018
@SteveL-MSFT SteveL-MSFT transferred this issue from PowerShell/PowerShell Nov 11, 2018
@DarwinJS
Copy link
Contributor Author

DarwinJS commented Nov 11, 2018

Hmmm - so the space between the heading at the text is consistent with all headings. If this help is coming from a conversion from source markdown - maybe it is preserving the markdown proper syntax of having a blank line - which is not compatible with get-help. Maybe powershell 6 help parser should be adjusted instead of adjusting the md conversion process.

@sdwheeler sdwheeler added the area-helpsystem Area - Help services (pipeline, get/update-help) label Nov 12, 2018
@sdwheeler sdwheeler self-assigned this Dec 1, 2018
bobbytreed added a commit to bobbytreed/PowerShell-Docs that referenced this issue May 21, 2019
bobbytreed added a commit to bobbytreed/PowerShell-Docs that referenced this issue May 21, 2019
bobbytreed added a commit to bobbytreed/PowerShell-Docs that referenced this issue May 21, 2019
bobbytreed added a commit to bobbytreed/PowerShell-Docs that referenced this issue May 21, 2019
@sdwheeler sdwheeler changed the title PowerShell 6 about_ help files do not display synopsis due to bad formating PowerShell 6 about_ help files do not display synopsis due to incompatible formatting May 23, 2019
@sdwheeler
Copy link
Collaborator

The blank line after the synopsis is not the issue. This appears to be an issue with they way that PlatyPS converts the MD to TXT. The output from PlatyPS if formatted with specific "headers". Get-Help is expecting that format. Since we switched to pandoc for processing the About_ files the TXT files do not have the same "headers".

@SteveL-MSFT
Copy link
Contributor

This is also affecting PS7

@sdwheeler sdwheeler removed their assignment Oct 30, 2019
@sdwheeler
Copy link
Collaborator

sdwheeler commented Apr 20, 2020

@sdwheeler sdwheeler changed the title PowerShell 6 about_ help files do not display synopsis due to incompatible formatting PowerShell about_ help files do not display synopsis due to incompatible formatting Jul 7, 2022
@sdwheeler
Copy link
Collaborator

This issue is being tracked in source repo.

@sdwheeler sdwheeler added the resolution-external Status - closed by customer or outside resource label Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-helpsystem Area - Help services (pipeline, get/update-help) resolution-external Status - closed by customer or outside resource
Projects
None yet
Development

No branches or pull requests

3 participants