fix(site): resolve api reference slug mismatch on airplay and hlsjs pages (#1755)

This commit is contained in:
Wesley Luyten
2026-06-26 14:10:25 -07:00
committed by GitHub
parent d321522cf0
commit 29b3f0f00a
7 changed files with 62 additions and 15 deletions
@@ -8,6 +8,7 @@ import * as fs from 'node:fs';
import * as path from 'node:path';
import * as ts from 'typescript';
import * as tae from 'typescript-api-extractor';
import { NAME_OVERRIDES } from '../../../src/utils/api-reference-overrides.js';
import { extractCore } from './core-handler.js';
import { extractCSSVars } from './css-vars-handler.js';
import { extractDataAttrs } from './data-attrs-handler.js';
@@ -31,10 +32,9 @@ import { kebabToPascal, partKebabFromSource, sortProps } from './utils.js';
// ─── Overrides ─────────────────────────────────────────────────────
// Components whose PascalCase name doesn't match simple kebab-to-pascal conversion.
export const NAME_OVERRIDES: Record<string, string> = {
'pip-button': 'PiPButton',
};
// `NAME_OVERRIDES` is the source of truth shared with the site's reference
// pages — re-exported here for the builder's existing import surface.
export { NAME_OVERRIDES };
// Parts whose HTML element file doesn't follow the `{component}-{part}-element.ts` convention.
// Key: `{component}/{part-kebab}`, Value: element file basename (without `.ts`).