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 {
185185 Start-WebScrapping - GraphProfile $GraphProfile - ExternalDocUrl $ExternalDocUrl - Command $Command - GraphProfilePath $GraphProfilePath - UriPath $UriPath - Module $Module
186186 }
187187 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.
189189 $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+ }
192194 }
193195 }
194196
You can’t perform that action at this time.
0 commit comments