Browse Source
Merge pull request #4045 from abpframework/maliming/docs-pull-patch
Ignore external link.
pull/4164/head
Halil İbrahim Kalkan
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
0 deletions
-
modules/docs/src/Volo.Docs.Admin.Application/Volo/Docs/Admin/Documents/DocumentAdminAppService.cs
|
|
|
@ -90,6 +90,12 @@ namespace Volo.Docs.Admin.Documents |
|
|
|
var documents = new List<Document>(); |
|
|
|
foreach (var leaf in leafs) |
|
|
|
{ |
|
|
|
if (leaf.Path.StartsWith("http://", StringComparison.OrdinalIgnoreCase) || |
|
|
|
leaf.Path.StartsWith("https://", StringComparison.OrdinalIgnoreCase)) |
|
|
|
{ |
|
|
|
continue; |
|
|
|
} |
|
|
|
|
|
|
|
var sourceDocument = |
|
|
|
await source.GetDocumentAsync(project, leaf.Path, input.LanguageCode, input.Version); |
|
|
|
documents.Add(sourceDocument); |
|
|
|
|