fix: api reference build should allow navigation

Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
This commit is contained in:
aramissennyeydd
2025-11-09 09:36:00 -05:00
parent 39591f4c27
commit 3903ad694b
2 changed files with 12 additions and 0 deletions
@@ -23,6 +23,7 @@ import { mkdirp } from 'fs-extra';
import { PackageDocsCache } from './Cache';
import { Lockfile } from '@backstage/cli-node';
import { glob } from 'glob';
import { existsSync } from 'fs';
const limit = pLimit(8);
@@ -220,6 +221,9 @@ export default async function packageDocs(paths: string[] = [], opts: any) {
...HIGHLIGHT_LANGUAGES.flatMap(e => ['--highlightLanguages', e]),
'--out',
cliPaths.resolveTargetRoot('type-docs'),
...(existsSync(cliPaths.resolveTargetRoot('typedoc.json'))
? ['--options', cliPaths.resolveTargetRoot('typedoc.json')]
: []),
].join(' '),
{
cwd: cliPaths.targetRoot,
+8
View File
@@ -0,0 +1,8 @@
{
"$schema": "https://typedoc.org/schema.json",
"name": "Backstage",
"navigationLinks": {
"Docs": "https://backstage.io/docs",
"Github": "https://github.com/backstage/backstage"
}
}