From b1449746dd9f15fec1e8b2b3f4949a5f90cf6b11 Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Fri, 31 May 2019 09:14:58 +0300 Subject: [PATCH] languageConfig renamed to docs-langs --- docs/{languageConfig.json => docs-langs.json} | 0 .../Volo/Docs/FileSystem/Documents/FileSystemDocumentStore.cs | 2 +- .../Volo/Docs/GitHub/Documents/GithubDocumentStore.cs | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename docs/{languageConfig.json => docs-langs.json} (100%) diff --git a/docs/languageConfig.json b/docs/docs-langs.json similarity index 100% rename from docs/languageConfig.json rename to docs/docs-langs.json diff --git a/modules/docs/src/Volo.Docs.Domain/Volo/Docs/FileSystem/Documents/FileSystemDocumentStore.cs b/modules/docs/src/Volo.Docs.Domain/Volo/Docs/FileSystem/Documents/FileSystemDocumentStore.cs index 74e2e8469e..8d85046d29 100644 --- a/modules/docs/src/Volo.Docs.Domain/Volo/Docs/FileSystem/Documents/FileSystemDocumentStore.cs +++ b/modules/docs/src/Volo.Docs.Domain/Volo/Docs/FileSystem/Documents/FileSystemDocumentStore.cs @@ -50,7 +50,7 @@ namespace Volo.Docs.FileSystem.Documents public async Task GetLanguageListAsync(Project project, string version) { - var path = Path.Combine(project.GetFileSystemPath(), "languageConfig.json"); + var path = Path.Combine(project.GetFileSystemPath(), "docs-langs.json"); var configAsJson = await FileHelper.ReadAllTextAsync(path); return JsonConvert.DeserializeObject(configAsJson); diff --git a/modules/docs/src/Volo.Docs.Domain/Volo/Docs/GitHub/Documents/GithubDocumentStore.cs b/modules/docs/src/Volo.Docs.Domain/Volo/Docs/GitHub/Documents/GithubDocumentStore.cs index 91c03379ab..d0bdccac54 100644 --- a/modules/docs/src/Volo.Docs.Domain/Volo/Docs/GitHub/Documents/GithubDocumentStore.cs +++ b/modules/docs/src/Volo.Docs.Domain/Volo/Docs/GitHub/Documents/GithubDocumentStore.cs @@ -109,7 +109,7 @@ namespace Volo.Docs.GitHub.Documents var rootUrl = project.GetGitHubUrl(version); var userAgent = project.GetGithubUserAgentOrNull(); - var url = CalculateRawRootUrl(rootUrl) + "languageConfig.json"; + var url = CalculateRawRootUrl(rootUrl) + "docs-langs.json"; var configAsJson = await DownloadWebContentAsStringAsync(url, token, userAgent);