Skip to content

Commit 77a0ee8

Browse files
hawkgspkozlowski-opensource
authored andcommitted
feat(docs-infra): use angular-ts and angular-html shiki highlighting (angular#59004)
Use `angular-ts` instead of `typescript` and `angular-html` instead of `html`. PR Close angular#59004
1 parent 0a399e7 commit 77a0ee8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

adev/shared-docs/pipeline/api-gen/extraction/interpolate_code_examples.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ type FileType = 'ts' | 'js' | 'html';
2828
type RegionStartToken = {name: string; startIdx: number};
2929

3030
const MD_CTYPE_MAP: {[key in FileType]: string} = {
31-
'ts': 'typescript',
31+
'ts': 'angular-ts',
3232
'js': 'javascript',
33-
'html': 'html',
33+
'html': 'angular-html',
3434
};
3535

3636
/**

adev/shared-docs/pipeline/api-gen/extraction/test/interpolate_code_examples.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import {interpolateCodeExamples} from '../interpolate_code_examples';
1111
import {DocEntry} from '@angular/compiler-cli';
1212
import {mockReadFileSync} from './fake-examples';
1313

14-
const tsMdBlock = (code: string) => '```typescript\n' + code + '\n```';
15-
const htmlMdBlock = (code: string) => '```html\n' + code + '\n```';
14+
const tsMdBlock = (code: string) => '```angular-ts\n' + code + '\n```';
15+
const htmlMdBlock = (code: string) => '```angular-html\n' + code + '\n```';
1616

1717
const entriesBuilder = (comment: string): DocEntry[] => [
1818
{jsdocTags: [], rawComment: comment} as unknown as DocEntry,

0 commit comments

Comments
 (0)