Merge pull request #9408 from abpframework/issue/9407

Docs module: FileSystemDocumentSource should set EditLink as Null
pull/9423/head
ebicoglu 4 years ago committed by GitHub
commit 7418a976d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -55,7 +55,7 @@ namespace Volo.Docs.Documents
[NotNull] string fileName,
[NotNull] string content,
[NotNull] string format,
[NotNull] string editLink,
[CanBeNull] string editLink,
[NotNull] string rootUrl,
[NotNull] string rawRootUrl,
[NotNull] string localDirectory,
@ -74,7 +74,7 @@ namespace Volo.Docs.Documents
FileName = Check.NotNullOrWhiteSpace(fileName, nameof(fileName));
Content = Check.NotNullOrWhiteSpace(content, nameof(content));
Format = Check.NotNullOrWhiteSpace(format, nameof(format));
EditLink = Check.NotNullOrWhiteSpace(editLink, nameof(editLink));
EditLink = editLink;
RootUrl = Check.NotNullOrWhiteSpace(rootUrl, nameof(rootUrl));
RawRootUrl = Check.NotNullOrWhiteSpace(rawRootUrl, nameof(rawRootUrl));
LocalDirectory = Check.NotNull(localDirectory, nameof(localDirectory));

@ -40,7 +40,7 @@ namespace Volo.Docs.FileSystem.Documents
Path.GetFileName(path),
content,
project.Format,
path,
null,
"/",
$"/document-resources?projectId={project.Id.ToString()}&version={version}&languageCode={languageCode}&name=",
localDirectory,

Loading…
Cancel
Save