Skip to content

Commit

Permalink
Omit national cloud text. (#242)
Browse files Browse the repository at this point in the history
* Omit national cloud text.

* PR review feedback

---------

Co-authored-by: Andrew Omondi <[email protected]>
  • Loading branch information
andrueastman and Andrew Omondi authored Nov 21, 2023
1 parent 0af49da commit 4c2e80c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ApiDoctor.Validation/DocFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,8 @@ protected bool ParseMarkdownBlocks(IssueLogger issues)
else if (previousHeaderBlock.BlockType == BlockType.h1)
{
methodDescriptionsData.Add(block.Content);
methodDescription = string.Join(" ", methodDescriptionsData.SkipWhile(x => x.StartsWith("Namespace:"))).ToStringClean();
// make sure we omit the namespace description as well as the national cloud deployments paragraphs
methodDescription = string.Join(" ", methodDescriptionsData.Where(static x => !x.StartsWith("Namespace:",StringComparison.OrdinalIgnoreCase) && !x.Contains("[national cloud deployments](/graph/deployments)",StringComparison.OrdinalIgnoreCase))).ToStringClean();
issues.Message($"Found description: {methodDescription}");
}
}
Expand Down

0 comments on commit 4c2e80c

Please sign in to comment.