diff --git a/docs/document/Modern CSharp/docs/Understanding String Formatting.md b/docs/document/Modern CSharp/docs/Understanding String Formatting.md index 8305e4d7..099b5cbd 100644 --- a/docs/document/Modern CSharp/docs/Understanding String Formatting.md +++ b/docs/document/Modern CSharp/docs/Understanding String Formatting.md @@ -53,3 +53,6 @@ string.Format("{0,-20}", 123); ## `ToString` & `IFormattable` + + +## Formatting Strategy diff --git a/docs/services/GithubService.ts b/docs/services/GithubService.ts index f0a0fc78..ba9c6ca9 100644 --- a/docs/services/GithubService.ts +++ b/docs/services/GithubService.ts @@ -99,15 +99,21 @@ class GithubRepositoryEndPointMethods { const split = repo.split('/'); const owner = split[0]; const _repo = split[1]; - return ( - await octokit.rest.repos.getContent({ - owner: owner, - repo: _repo, - path: path, - }) - ).data as RepoFileSystemInfo; + try { + return ( + await octokit.rest.repos.getContent({ + owner: owner, + repo: _repo, + path: path, + }) + ).data as RepoFileSystemInfo; + } catch (error) { + console.error(`failed to fetch remote file from github repo: ${repo}/${path}`); + console.log( + `The path might have been changed, check out: "/~https://github.com/${repo}/${path}"`, + ); + } } - throw new Error(); } } export class GithubService { diff --git a/docs/services/ThemeService.ts b/docs/services/ThemeService.ts index ebff5401..ab8706bf 100644 --- a/docs/services/ThemeService.ts +++ b/docs/services/ThemeService.ts @@ -21,8 +21,16 @@ export type RemoteThemeInfo = { }; const themeInfos = { - 'Eva Light': { repo: 'fisheva/Eva-Theme', path: 'themes/Eva-Light.json', branch: 'master' }, - 'Eva Dark': { repo: 'fisheva/Eva-Theme', path: 'themes/Eva-Dark.json', branch: 'master' }, + 'Eva Light': { + repo: 'fisheva/Eva-Theme', + path: 'VSCode/themes/Eva-Light.json', + branch: 'master', + }, + 'Eva Dark': { + repo: 'fisheva/Eva-Theme', + path: 'VSCode/themes/Eva-Dark.json', + branch: 'master', + }, } satisfies Record; export type ThemeName = keyof typeof themeInfos;