feat(docs-infra): use angular-ts and angular-html shiki highlighting (#59004)

Use `angular-ts` instead of `typescript` and `angular-html` instead of `html`.

PR Close #59004
This commit is contained in:
hawkgs 2024-12-04 11:45:48 +02:00 committed by Pawel Kozlowski
parent e18adff76d
commit 7ad1f27d83
2 changed files with 4 additions and 4 deletions

View file

@ -28,9 +28,9 @@ type FileType = 'ts' | 'js' | 'html';
type RegionStartToken = {name: string; startIdx: number};
const MD_CTYPE_MAP: {[key in FileType]: string} = {
'ts': 'typescript',
'ts': 'angular-ts',
'js': 'javascript',
'html': 'html',
'html': 'angular-html',
};
/**

View file

@ -11,8 +11,8 @@ import {interpolateCodeExamples} from '../interpolate_code_examples';
import {DocEntry} from '@angular/compiler-cli';
import {mockReadFileSync} from './fake-examples';
const tsMdBlock = (code: string) => '```typescript\n' + code + '\n```';
const htmlMdBlock = (code: string) => '```html\n' + code + '\n```';
const tsMdBlock = (code: string) => '```angular-ts\n' + code + '\n```';
const htmlMdBlock = (code: string) => '```angular-html\n' + code + '\n```';
const entriesBuilder = (comment: string): DocEntry[] => [
{jsdocTags: [], rawComment: comment} as unknown as DocEntry,