Browse Source
Merge pull request #4515 from abpframework/liangshiwei/patch-1
Generate the correct editLink value
pull/4521/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
1 additions and
1 deletions
-
modules/docs/src/Volo.Docs.Domain/Volo/Docs/GitHub/Documents/GithubDocumentSource.cs
|
|
|
@ -38,7 +38,7 @@ namespace Volo.Docs.GitHub.Documents |
|
|
|
var rawDocumentUrl = rawRootUrl + documentName; |
|
|
|
var isNavigationDocument = documentName == project.NavigationDocumentName; |
|
|
|
var isParameterDocument = documentName == project.ParametersDocumentName; |
|
|
|
var editLink = rootUrl.ReplaceFirst("/tree/", "/blob/") + languageCode + "/" + documentName; |
|
|
|
var editLink = rootUrl.ReplaceFirst("/tree/", "/blob/").EnsureEndsWith('/') + languageCode + "/" + documentName; |
|
|
|
var localDirectory = ""; |
|
|
|
var fileName = documentName; |
|
|
|
|
|
|
|
|