diff options
| author | ST-DDT <[email protected]> | 2022-01-27 21:06:43 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-27 15:06:43 -0500 |
| commit | 15514b5cd211a880aa5ff11c8c809168e9e1ac92 (patch) | |
| tree | fd39c09a6875ad030b9d1f4183f348533c605e84 | |
| parent | 35de92ffaff2261eae29422474afd4ca674ab473 (diff) | |
| download | faker-15514b5cd211a880aa5ff11c8c809168e9e1ac92.tar.xz faker-15514b5cd211a880aa5ff11c8c809168e9e1ac92.zip | |
fix: fake docs not accessible (#323)
| -rw-r--r-- | scripts/apidoc.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/apidoc.ts b/scripts/apidoc.ts index 956e53e6..01606ec5 100644 --- a/scripts/apidoc.ts +++ b/scripts/apidoc.ts @@ -73,8 +73,8 @@ async function build(): Promise<void> { .getChildrenByKind(TypeDoc.ReflectionKind.Class); const modulesPages: Array<{ text: string; link: string }> = []; - modulesPages.push({ text: 'Faker', link: '/api/faker' }); - modulesPages.push({ text: 'Localization', link: '/api/localization' }); + modulesPages.push({ text: 'Fake', link: '/api/fake.html' }); + modulesPages.push({ text: 'Localization', link: '/api/localization.html' }); // Generate module file for (const module of modules) { @@ -83,7 +83,10 @@ async function build(): Promise<void> { moduleName.substring(0, 1).toLowerCase() + moduleName.substring(1); console.log(`Processing Module ${moduleName}`); - modulesPages.push({ text: moduleName, link: '/api/' + lowerModuleName }); + modulesPages.push({ + text: moduleName, + link: `/api/${lowerModuleName}.html`, + }); let content = ` # ${moduleName} |
