mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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:
parent
e18adff76d
commit
7ad1f27d83
2 changed files with 4 additions and 4 deletions
|
|
@ -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',
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue