Skip to content

Doc Bug in source - <snippet> tag is not supported by the docs platform #16104

Closed

Description

Prerequisites

Steps to reproduce

Documentation for the PowerShell SDK is generated from triple-slash comments in the source code. Therefore any changes to that documentation must be made in the source code.

The following files use the <snippet> tag in the comments. This tag is not supported and is causing rendering issues.

C:\Git\PS-Src\PowerShell\src\System.Management.Automation\engine\cmdlet.cs
  804,17:         ///     <snippet Code="C#">
  900,17:         ///     <snippet Code="C#">
  1004,17:         ///     <snippet Code="C#">
  1120,17:         ///     <snippet Code="C#">
  1236,17:         ///     <snippet Code="C#">
  1365,17:         ///     <snippet Code="C#">
  1505,17:         ///     <snippet Code="C#">

C:\Git\PS-Src\PowerShell\src\System.Management.Automation\engine\MshCommandRuntime.cs
  1066,17:         ///     <snippet Code="C#">
  1160,17:         ///     <snippet Code="C#">
  1263,17:         ///     <snippet Code="C#">
  1378,17:         ///     <snippet Code="C#">
  1684,17:         ///     <snippet Code="C#">
  1866,17:         ///     <snippet Code="C#">

C:\Git\PS-Src\PowerShell\src\System.Management.Automation\engine\hostifaces\MshHostRawUserInterface.cs
  1461,17:         ///     <snippet Code="C#">

See the Examples section of https://docs.microsoft.com/en-us/dotnet/api/system.management.automation.cmdlet.shouldprocess?view=powershellsdk-7.0.0#System_Management_Automation_Cmdlet_ShouldProcess_System_String_ to see the rendering issue.

You must use the <code> tag instead.

Expected behavior

n/a

Actual behavior

n/a

Error details

No response

Environment data

n/a

Visuals

Here is a screenshot of the rendering issue.

image

Activity

  1. added
    Documentation Needed in this repo
    Needs-Triage
    on Sep 15, 2021
  2. ghost removed
    Needs-Triage
    on Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Documentation Needed in this repo

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions