File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -185,10 +185,12 @@ function Get-ExternalDocsUrl {
185
185
Start-WebScrapping - GraphProfile $GraphProfile - ExternalDocUrl $ExternalDocUrl - Command $Command - GraphProfilePath $GraphProfilePath - UriPath $UriPath - Module $Module
186
186
}
187
187
else {
188
- # This step will still correct the examples if the external docs url is not found
188
+ # This step will still correct the examples if the external docs url is not found.
189
189
$ExampleFile = " $GraphProfilePath /$Command .md"
190
- Retain- ExistingCorrectExamples - Content (Get-Content $ExampleFile ) - File $ExampleFile - CommandPattern $Command
191
-
190
+ $boilerPlateCode = Select-String - Path $File - Pattern " Add title here"
191
+ if ($boilerPlateCode.Length -eq 0 ){
192
+ Retain- ExistingCorrectExamples - Content (Get-Content $ExampleFile ) - File $ExampleFile - CommandPattern $Command
193
+ }
192
194
}
193
195
}
194
196
You can’t perform that action at this time.
0 commit comments