_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
angular/adev/shared-docs/pipeline/api-gen/rendering/regions/region-matchers/inline-c.ts_0_558
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // This comment type is used in C like languages such as JS, TS, etc export const regionStartMatcher = /^\s*\/\/\s*#...
{ "end_byte": 558, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/regions/region-matchers/inline-c.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/regions/region-matchers/inline-c-only.ts_0_583
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // These kind of comments are used in languages that do not support block comments, such as Jade export const region...
{ "end_byte": 583, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/regions/region-matchers/inline-c-only.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/regions/region-matchers/block-c.ts_0_605
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // These kind of comments are used CSS and other languages that do not support inline comments export const regionSt...
{ "end_byte": 605, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/regions/region-matchers/block-c.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/shiki/shiki.ts_0_1472
let highlighter: any; export async function initHighlighter() { const {createHighlighter} = await import('shiki'); highlighter = await createHighlighter({ themes: ['github-light', 'github-dark'], langs: [ 'javascript', 'typescript', 'angular-html', 'angular-ts', 'shell', ...
{ "end_byte": 1472, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/shiki/shiki.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/test/BUILD.bazel_0_768
load("//adev/shared-docs/pipeline/api-gen/rendering:render_api_to_html.bzl", "render_api_to_html") load("//tools:defaults.bzl", "jasmine_node_test", "ts_library") render_api_to_html( name = "test", srcs = [ "fake-cli-entries.json", "fake-entries.json", ], ) ts_library( name = "unit_tes...
{ "end_byte": 768, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/test/BUILD.bazel" }
angular/adev/shared-docs/pipeline/api-gen/rendering/test/marked.spec.ts_0_3017
import {runfiles} from '@bazel/runfiles'; import {readFile} from 'fs/promises'; import {JSDOM} from 'jsdom'; import {renderEntry} from '../rendering'; import {getRenderable} from '../processing'; import {initHighlighter} from '../shiki/shiki'; import {configureMarkedGlobally} from '../marked/configuration'; import {set...
{ "end_byte": 3017, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/test/marked.spec.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/test/cli.spec.ts_0_1406
import {runfiles} from '@bazel/runfiles'; import {readFile} from 'fs/promises'; import {JSDOM} from 'jsdom'; import {renderEntry} from '../rendering'; import {getRenderable} from '../processing'; import {initHighlighter} from '../shiki/shiki'; import {configureMarkedGlobally} from '../marked/configuration'; describe('...
{ "end_byte": 1406, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/test/cli.spec.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/test/transforms/jsdoc-transforms.spec.ts_0_2998
import {setCurrentSymbol, setSymbols} from '../../symbol-context'; import {addHtmlAdditionalLinks} from '../../transforms/jsdoc-transforms'; // @ts-ignore This compiles fine, but Webstorm doesn't like the ESM import in a CJS context. describe('jsdoc transforms', () => { it('should transform links', () => { setCu...
{ "end_byte": 2998, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/test/transforms/jsdoc-transforms.spec.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/marked/renderer.ts_0_2009
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Renderer, Tokens} from 'marked'; import {codeToHtml} from '../shiki/shiki'; /** * Custom renderer for mark...
{ "end_byte": 2009, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/marked/renderer.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/marked/configuration.ts_0_221
import {marked} from 'marked'; import {renderer} from './renderer'; /** Globally configures marked for rendering JsDoc content to HTML. */ export function configureMarkedGlobally() { marked.use({ renderer, }); }
{ "end_byte": 221, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/marked/configuration.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/transforms/decorator-transforms.ts_0_1136
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {DecoratorEntry} from '../entities'; import {DecoratorEntryRenderable} from '../entities/renderables'; import...
{ "end_byte": 1136, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/transforms/decorator-transforms.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/transforms/initializer-api-functions-transform.ts_0_767
import {InitializerApiFunctionEntry} from '../entities'; import {InitializerApiFunctionRenderable} from '../entities/renderables'; import {addRenderableCodeToc} from './code-transforms'; import { addHtmlAdditionalLinks, addHtmlDescription, addHtmlJsDocTagComments, addHtmlUsageNotes, setEntryFlags, } from '....
{ "end_byte": 767, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/transforms/initializer-api-functions-transform.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/transforms/interface-transforms.ts_0_1106
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {InterfaceEntry} from '../entities'; import {InterfaceEntryRenderable} from '../entities/renderables'; import...
{ "end_byte": 1106, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/transforms/interface-transforms.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/transforms/enum-transforms.ts_0_1074
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {EnumEntry} from '../entities'; import {EnumEntryRenderable} from '../entities/renderables'; import {addRende...
{ "end_byte": 1074, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/transforms/enum-transforms.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/transforms/type-alias-transforms.ts_0_1021
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {TypeAliasEntry} from '../entities'; import {TypeAliasEntryRenderable} from '../entities/renderables'; import...
{ "end_byte": 1021, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/transforms/type-alias-transforms.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/transforms/url-transforms.ts_0_1119
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ export const API_PREFIX = 'api'; export const MODULE_NAME_PREFIX = '@angular/'; export function getLinkToModule(mod...
{ "end_byte": 1119, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/transforms/url-transforms.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/transforms/params-transforms.ts_0_669
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {HasModuleName, HasParams, HasRenderableParams} from '../entities/traits'; import {addHtmlDescription} from '...
{ "end_byte": 669, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/transforms/params-transforms.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/transforms/member-transforms.ts_0_2296
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {MemberEntry, MemberTags, MemberType} from '../entities'; import {HasMembers, HasModuleName, HasRenderableMe...
{ "end_byte": 2296, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/transforms/member-transforms.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/transforms/code-transforms.ts_0_8265
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { DocEntry, FunctionSignatureMetadata, MemberEntry, MemberTags, ParameterEntry, PropertyEntry, } ...
{ "end_byte": 8265, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/transforms/code-transforms.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/transforms/code-transforms.ts_8266_15800
function getCodeTocData( members: MemberEntry[], hasPrefixLine: boolean, isDeprecated: boolean, ): CodeTableOfContentsData { const initialMetadata: CodeTableOfContentsData = { contents: '', codeLineNumbersWithIdentifiers: new Map<number, string>(), deprecatedLineNumbers: isDeprecated ? [0] : [], }...
{ "end_byte": 15800, "start_byte": 8266, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/transforms/code-transforms.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/transforms/function-transforms.ts_0_1559
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {FunctionEntry, FunctionSignatureMetadata} from '../entities'; import { FunctionEntryRenderable, Function...
{ "end_byte": 1559, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/transforms/function-transforms.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/transforms/module-name.ts_0_387
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {HasModuleName} from '../entities/traits'; export function addModuleName<T>(entry: T, moduleName: string): T...
{ "end_byte": 387, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/transforms/module-name.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/transforms/cli-transforms.ts_0_2066
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {marked} from 'marked'; import {CliCommand, CliOption} from '../cli-entities'; import { CliCardRenderable,...
{ "end_byte": 2066, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/transforms/cli-transforms.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/transforms/jsdoc-transforms.ts_0_7246
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {marked} from 'marked'; import {JsDocTagEntry} from '../entities'; import { getDeprecatedEntry, isDeprec...
{ "end_byte": 7246, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/transforms/jsdoc-transforms.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/transforms/constant-transforms.ts_0_1004
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {ConstantEntry} from '../entities'; import {ConstantEntryRenderable} from '../entities/renderables'; import {...
{ "end_byte": 1004, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/transforms/constant-transforms.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/transforms/class-transforms.ts_0_1088
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {ClassEntry} from '../entities'; import {ClassEntryRenderable} from '../entities/renderables'; import {addRen...
{ "end_byte": 1088, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/transforms/class-transforms.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/styling/css-classes.ts_0_1180
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // TODO(jelbourn): all of these CSS classes should use the `docs-` prefix. export const PARAM_KEYWORD_CLASS_NAME = ...
{ "end_byte": 1180, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/styling/css-classes.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/templates/cli-reference.tsx_0_2277
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { Fragment, h } from 'preact'; import { CliCommandRenderable } from '../entities/renderables'; import { REFER...
{ "end_byte": 2277, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/templates/cli-reference.tsx" }
angular/adev/shared-docs/pipeline/api-gen/rendering/templates/header-cli.tsx_0_956
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {h} from 'preact'; import {CliCommandRenderable} from '../entities/renderables'; import {HEADER_CLASS_NAME, H...
{ "end_byte": 956, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/templates/header-cli.tsx" }
angular/adev/shared-docs/pipeline/api-gen/rendering/templates/cli-card.tsx_0_1948
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Fragment, h} from 'preact'; import {CliCardRenderable} from '../entities/renderables'; import {DeprecatedLab...
{ "end_byte": 1948, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/templates/cli-card.tsx" }
angular/adev/shared-docs/pipeline/api-gen/rendering/templates/function-reference.tsx_0_2878
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {h} from 'preact'; import {FunctionEntryRenderable, FunctionSignatureMetadataRenderable} from '../entities/re...
{ "end_byte": 2878, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/templates/function-reference.tsx" }
angular/adev/shared-docs/pipeline/api-gen/rendering/templates/class-member-list.tsx_0_574
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {h} from 'preact'; import {MemberEntryRenderable} from '../entities/renderables'; import {ClassMember} from '...
{ "end_byte": 574, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/templates/class-member-list.tsx" }
angular/adev/shared-docs/pipeline/api-gen/rendering/templates/tab-usage-notes.tsx_0_799
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Fragment, h} from 'preact'; import {DocEntryRenderable} from '../entities/renderables'; import {normalizeTab...
{ "end_byte": 799, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/templates/tab-usage-notes.tsx" }
angular/adev/shared-docs/pipeline/api-gen/rendering/templates/constant-reference.tsx_0_792
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {h} from 'preact'; import {ConstantEntryRenderable} from '../entities/renderables'; import {HeaderApi} from '...
{ "end_byte": 792, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/templates/constant-reference.tsx" }
angular/adev/shared-docs/pipeline/api-gen/rendering/templates/class-reference.tsx_0_1154
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Fragment, h} from 'preact'; import {ClassEntryRenderable, DecoratorEntryRenderable} from '../entities/render...
{ "end_byte": 1154, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/templates/class-reference.tsx" }
angular/adev/shared-docs/pipeline/api-gen/rendering/templates/code-line.tsx_0_1142
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {h} from 'preact'; import {CodeLineRenderable} from '../entities/renderables'; export function CodeLine(prop...
{ "end_byte": 1142, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/templates/code-line.tsx" }
angular/adev/shared-docs/pipeline/api-gen/rendering/templates/highlight-ts.tsx_0_615
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {h} from 'preact'; import {RawHtml} from './raw-html'; import {codeToHtml} from '../shiki/shiki'; /** Compon...
{ "end_byte": 615, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/templates/highlight-ts.tsx" }
angular/adev/shared-docs/pipeline/api-gen/rendering/templates/code-symbols.tsx_0_948
import {h} from 'preact'; import {getModuleName} from '../symbol-context'; import {getLinkToModule} from '../transforms/url-transforms'; const symbolRegex = /([a-zA-Z_$][a-zA-Z_$0-9\.]*)/; /** * Component that generates a code block with a link to a Symbol if it's known, * else generates a string code block */ exp...
{ "end_byte": 948, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/templates/code-symbols.tsx" }
angular/adev/shared-docs/pipeline/api-gen/rendering/templates/deprecated-label.tsx_0_968
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Fragment, h} from 'preact'; import {PARAM_KEYWORD_CLASS_NAME} from '../styling/css-classes'; export functio...
{ "end_byte": 968, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/templates/deprecated-label.tsx" }
angular/adev/shared-docs/pipeline/api-gen/rendering/templates/header-api.tsx_0_3287
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {h} from 'preact'; import {EntryType, isDocEntryWithSourceInfo} from '../entities'; import {DocEntryRenderabl...
{ "end_byte": 3287, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/templates/header-api.tsx" }
angular/adev/shared-docs/pipeline/api-gen/rendering/templates/initializer-api-function.tsx_0_2629
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {h, JSX} from 'preact'; import {InitializerApiFunctionRenderable} from '../entities/renderables'; import {Hea...
{ "end_byte": 2629, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/templates/initializer-api-function.tsx" }
angular/adev/shared-docs/pipeline/api-gen/rendering/templates/class-member.tsx_0_2600
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Fragment, h} from 'preact'; import { isClassMethodEntry, isGetterEntry, isPropertyEntry, isSetterEnt...
{ "end_byte": 2600, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/templates/class-member.tsx" }
angular/adev/shared-docs/pipeline/api-gen/rendering/templates/tab-api.tsx_0_835
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {h} from 'preact'; import {DocEntryRenderable} from '../entities/renderables'; import {HasRenderableToc} from...
{ "end_byte": 835, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/templates/tab-api.tsx" }
angular/adev/shared-docs/pipeline/api-gen/rendering/templates/parameter.tsx_0_986
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {h} from 'preact'; import {ParameterEntryRenderable} from '../entities/renderables'; import {RawHtml} from '....
{ "end_byte": 986, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/templates/parameter.tsx" }
angular/adev/shared-docs/pipeline/api-gen/rendering/templates/enum-reference.tsx_0_1195
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {h, Fragment} from 'preact'; import {EnumEntryRenderable, MemberEntryRenderable} from '../entities/renderable...
{ "end_byte": 1195, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/templates/enum-reference.tsx" }
angular/adev/shared-docs/pipeline/api-gen/rendering/templates/type-alias-reference.tsx_0_797
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {h} from 'preact'; import {TypeAliasEntryRenderable} from '../entities/renderables'; import {HeaderApi} from ...
{ "end_byte": 797, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/templates/type-alias-reference.tsx" }
angular/adev/shared-docs/pipeline/api-gen/rendering/templates/docs-pill-row.tsx_0_707
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Fragment, h} from 'preact'; import {LinkEntryRenderable} from '../entities/renderables'; /** Component to r...
{ "end_byte": 707, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/templates/docs-pill-row.tsx" }
angular/adev/shared-docs/pipeline/api-gen/rendering/templates/code-table-of-contents.tsx_0_850
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {h} from 'preact'; import {renderToString} from 'preact-render-to-string'; import {CodeLineGroup} from './cod...
{ "end_byte": 850, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/templates/code-table-of-contents.tsx" }
angular/adev/shared-docs/pipeline/api-gen/rendering/templates/tab-description.tsx_0_1346
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Fragment, h} from 'preact'; import {DocEntryRenderable} from '../entities/renderables'; import {normalizeTab...
{ "end_byte": 1346, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/templates/tab-description.tsx" }
angular/adev/shared-docs/pipeline/api-gen/rendering/templates/docs-reference.tsx_0_634
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {h} from 'preact'; import {DocEntryRenderable} from '../entities/renderables'; import {HeaderApi} from './hea...
{ "end_byte": 634, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/templates/docs-reference.tsx" }
angular/adev/shared-docs/pipeline/api-gen/rendering/templates/raw-html.tsx_0_575
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {h} from 'preact'; /** Convenience component to render raw html */ export function RawHtml(props: {value: st...
{ "end_byte": 575, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/templates/raw-html.tsx" }
angular/adev/shared-docs/pipeline/api-gen/rendering/templates/class-method-info.tsx_0_1967
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Fragment, h} from 'preact'; import { FunctionEntryRenderable, FunctionSignatureMetadataRenderable, Met...
{ "end_byte": 1967, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/templates/class-method-info.tsx" }
angular/adev/shared-docs/pipeline/api-gen/rendering/templates/code-line-group.tsx_0_654
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {h} from 'preact'; import {CodeLineRenderable} from '../entities/renderables'; import {CodeLine} from './code...
{ "end_byte": 654, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/templates/code-line-group.tsx" }
angular/adev/shared-docs/pipeline/api-gen/rendering/entities/traits.ts_0_2311
import {JsDocTagEntry, MemberEntry, ParameterEntry} from '../entities'; import { CodeLineRenderable, JsDocTagRenderable, LinkEntryRenderable, MemberEntryRenderable, ParameterEntryRenderable, } from './renderables'; /** A doc entry that has jsdoc tags. */ export interface HasJsDocTags { jsdocTags: JsDocTag...
{ "end_byte": 2311, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/entities/traits.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/entities/categorization.ts_0_5735
import { ClassEntry, ConstantEntry, DecoratorEntry, DocEntry, EntryType, EnumEntry, FunctionEntry, InitializerApiFunctionEntry, InterfaceEntry, MemberEntry, MemberType, MethodEntry, PropertyEntry, TypeAliasEntry, } from '../entities'; import {CliCommand} from '../cli-entities'; import { ...
{ "end_byte": 5735, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/entities/categorization.ts" }
angular/adev/shared-docs/pipeline/api-gen/rendering/entities/renderables.ts_0_4180
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { ClassEntry, ConstantEntry, DecoratorEntry, DocEntry, EnumEntry, FunctionEntry, FunctionSignat...
{ "end_byte": 4180, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/rendering/entities/renderables.ts" }
angular/adev/shared-docs/pipeline/api-gen/extraction/extract_api_to_json.bzl_0_4383
load("@build_bazel_rules_nodejs//:providers.bzl", "run_node") def _extract_api_to_json(ctx): """Implementation of the extract_api_to_json rule""" # Define arguments that will be passed to the underlying nodejs program. args = ctx.actions.args() # Use a param file because we may have a large number of...
{ "end_byte": 4383, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/extraction/extract_api_to_json.bzl" }
angular/adev/shared-docs/pipeline/api-gen/extraction/BUILD.bazel_0_1795
load("@angular//tools/esm-interop:index.bzl", "nodejs_binary") load("@npm//@angular/build-tooling/bazel/esbuild:index.bzl", "esbuild") load("@npm//@angular/build-tooling/bazel:defaults.bzl", "ts_library") package(default_visibility = ["//adev/shared-docs/pipeline/api-gen:__subpackages__"]) esbuild( name = "bin", ...
{ "end_byte": 1795, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/extraction/BUILD.bazel" }
angular/adev/shared-docs/pipeline/api-gen/extraction/index.ts_0_3712
import {readFileSync, writeFileSync} from 'fs'; import path from 'path'; // @ts-ignore This compiles fine, but Webstorm doesn't like the ESM import in a CJS context. import { NgtscProgram, CompilerOptions, createCompilerHost, DocEntry, EntryCollection, InterfaceEntry, ClassEntry, } from '@angular/compiler...
{ "end_byte": 3712, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/extraction/index.ts" }
angular/adev/shared-docs/pipeline/api-gen/extraction/test/fake-source.ts_0_450
// @ts-ignore Intentionally nonexistent path for testing purposes. import {Version} from '@angular/dummy-package'; /** * I have a description with some `Code`. */ export class UserProfile { /** The user's name */ name: string = 'Morgan'; } // By using an implicit type coming from a path-mapped import, // we tes...
{ "end_byte": 450, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/extraction/test/fake-source.ts" }
angular/adev/shared-docs/pipeline/api-gen/extraction/test/BUILD.bazel_0_1247
load("//adev/shared-docs/pipeline/api-gen/extraction:extract_api_to_json.bzl", "extract_api_to_json") package(default_visibility = ["//adev/shared-docs/pipeline/api-gen:__subpackages__"]) extract_api_to_json( name = "test", srcs = [ "fake-source.ts", "//adev/shared-docs/pipeline/api-gen/extrac...
{ "end_byte": 1247, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/extraction/test/BUILD.bazel" }
angular/adev/shared-docs/pipeline/api-gen/extraction/test/dummy-entry-point/BUILD.bazel_0_153
package(default_visibility = ["//adev/shared-docs/pipeline/api-gen:__subpackages__"]) filegroup( name = "dummy_package", srcs = ["index.ts"], )
{ "end_byte": 153, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/extraction/test/dummy-entry-point/BUILD.bazel" }
angular/adev/shared-docs/pipeline/api-gen/extraction/test/dummy-entry-point/index.ts_0_114
export class Version { constructor(public sha: string = '') {} } export const VERSION = new Version('123abc');
{ "end_byte": 114, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/api-gen/extraction/test/dummy-entry-point/index.ts" }
angular/adev/shared-docs/pipeline/guides/state.ts_0_1398
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ const headerIds = new Map<string, number>(); export const getHeaderId = (heading: string): string => { const numb...
{ "end_byte": 1398, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/state.ts" }
angular/adev/shared-docs/pipeline/guides/helpers.ts_0_586
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** Whether the link provided is external to the application. */ export function isExternalLink(href: string | undef...
{ "end_byte": 586, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/helpers.ts" }
angular/adev/shared-docs/pipeline/guides/parse.ts_0_2246
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {marked} from 'marked'; import {hooks} from './hooks'; import {Renderer} from './renderer'; import {docsAlert...
{ "end_byte": 2246, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/parse.ts" }
angular/adev/shared-docs/pipeline/guides/utils.ts_0_1644
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {existsSync, readFileSync} from 'fs'; import {join} from 'path'; import {cwd} from 'process'; // TODO(joseph...
{ "end_byte": 1644, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/utils.ts" }
angular/adev/shared-docs/pipeline/guides/walk-tokens.ts_0_886
import {Token} from 'marked'; import {DocsCodeToken} from './extensions/docs-code/docs-code'; /** * Describe a HANDLE_MERMAID value which esbuild will use at build time to determine if the mermaid * related code should be included in the bundle. * THIS VALUE IS NOT AVAILABLE AT RUNTIME. */ export declare const HAN...
{ "end_byte": 886, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/walk-tokens.ts" }
angular/adev/shared-docs/pipeline/guides/BUILD.bazel_0_853
load("//tools:defaults.bzl", "ts_library") ts_library( name = "guides", srcs = glob( [ "**/*.ts", ], exclude = ["index.ts"], ), visibility = [ "//adev/shared-docs:__subpackages__", ], deps = [ "@npm//@bazel/runfiles", "@npm//@types/dif...
{ "end_byte": 853, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/BUILD.bazel" }
angular/adev/shared-docs/pipeline/guides/renderer.ts_0_730
import {Renderer as _Renderer} from 'marked'; import {linkRender} from './tranformations/link'; import {tableRender} from './tranformations/table'; import {listRender} from './tranformations/list'; import {imageRender} from './tranformations/image'; import {textRender} from './tranformations/text'; import {headingRende...
{ "end_byte": 730, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/renderer.ts" }
angular/adev/shared-docs/pipeline/guides/index.ts_0_1399
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {readFileSync, writeFileSync} from 'fs'; import path from 'path'; import {parseMarkdown} from './parse'; impo...
{ "end_byte": 1399, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/index.ts" }
angular/adev/shared-docs/pipeline/guides/index.d.ts_0_427
// This definition file is a temporary workaround until the toolchain is able to read d.mts definition files // TODO: delete this file when the toolchains supports .d.mts files declare module 'shiki' { function createHighlighter(params: { themes: any[]; langs: string[]; cssVariablePrefix?: string; def...
{ "end_byte": 427, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/index.d.ts" }
angular/adev/shared-docs/pipeline/guides/hooks.ts_0_627
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {MarkedExtension} from 'marked'; import {resetHeaderIdsOfCurrentDocument} from './state'; /** * Custom hook...
{ "end_byte": 627, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/hooks.ts" }
angular/adev/shared-docs/pipeline/guides/extensions/docs-alert.ts_0_2053
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {RendererThis, Token, TokenizerThis, Tokens} from 'marked'; /** Enum of all available alert severities. */ e...
{ "end_byte": 2053, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/extensions/docs-alert.ts" }
angular/adev/shared-docs/pipeline/guides/extensions/docs-callout.ts_0_2312
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Tokens, Token, TokenizerThis, RendererThis} from 'marked'; /** Enum of all available callout severities. */...
{ "end_byte": 2312, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/extensions/docs-callout.ts" }
angular/adev/shared-docs/pipeline/guides/extensions/docs-video.ts_0_1856
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Tokens, TokenizerThis, RendererThis} from 'marked'; interface DocsVideoToken extends Tokens.Generic { typ...
{ "end_byte": 1856, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/extensions/docs-video.ts" }
angular/adev/shared-docs/pipeline/guides/extensions/docs-decorative-header.ts_0_2347
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {TokenizerThis, Tokens, RendererThis} from 'marked'; import {getPageTitle, loadWorkspaceRelativeFile} from '....
{ "end_byte": 2347, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/extensions/docs-decorative-header.ts" }
angular/adev/shared-docs/pipeline/guides/extensions/docs-workflow/docs-workflow.ts_0_1287
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Token, Tokens, RendererThis, TokenizerThis} from 'marked'; interface DocsWorkflowToken extends Tokens.Gener...
{ "end_byte": 1287, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/extensions/docs-workflow/docs-workflow.ts" }
angular/adev/shared-docs/pipeline/guides/extensions/docs-workflow/docs-step.ts_0_1657
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Token, Tokens, RendererThis, TokenizerThis} from 'marked'; import {formatHeading, headingRender} from '../.....
{ "end_byte": 1657, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/extensions/docs-workflow/docs-step.ts" }
angular/adev/shared-docs/pipeline/guides/extensions/docs-card/docs-card-container.ts_0_1297
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Tokens, Token, RendererThis, TokenizerThis} from 'marked'; interface DocsCardContainerToken extends Tokens....
{ "end_byte": 1297, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/extensions/docs-card/docs-card-container.ts" }
angular/adev/shared-docs/pipeline/guides/extensions/docs-card/docs-card.ts_0_3592
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Tokens, Token, RendererThis, TokenizerThis} from 'marked'; import {anchorTarget} from '../../helpers'; impor...
{ "end_byte": 3592, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/extensions/docs-card/docs-card.ts" }
angular/adev/shared-docs/pipeline/guides/extensions/docs-pill/docs-pill-row.ts_0_1312
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Token, Tokens, RendererThis, TokenizerThis} from 'marked'; interface DocsPillRowToken extends Tokens.Generi...
{ "end_byte": 1312, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/extensions/docs-pill/docs-pill-row.ts" }
angular/adev/shared-docs/pipeline/guides/extensions/docs-pill/docs-pill.ts_0_1689
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Token, Tokens, RendererThis, TokenizerThis} from 'marked'; import {anchorTarget, isExternalLink} from '../.....
{ "end_byte": 1689, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/extensions/docs-pill/docs-pill.ts" }
angular/adev/shared-docs/pipeline/guides/extensions/docs-code/docs-code.ts_0_2798
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {TokenizerThis, RendererThis} from 'marked'; import {CodeToken, formatCode} from './format/index'; import {Fi...
{ "end_byte": 2798, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/extensions/docs-code/docs-code.ts" }
angular/adev/shared-docs/pipeline/guides/extensions/docs-code/docs-code-block.ts_0_1566
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {TokenizerThis, RendererThis} from 'marked'; import {CodeToken, formatCode} from './format/index'; export in...
{ "end_byte": 1566, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/extensions/docs-code/docs-code-block.ts" }
angular/adev/shared-docs/pipeline/guides/extensions/docs-code/docs-code-multifile.ts_0_2287
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Tokens, Token, TokenizerThis, RendererThis} from 'marked'; import {JSDOM} from 'jsdom'; /** Marked token fo...
{ "end_byte": 2287, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/extensions/docs-code/docs-code-multifile.ts" }
angular/adev/shared-docs/pipeline/guides/extensions/docs-code/regions/region-parser.ts_0_6114
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // Region parsing is done within this pipeline to allow for retrieving a subset of a file // by extracting only the ...
{ "end_byte": 6114, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/extensions/docs-code/regions/region-parser.ts" }
angular/adev/shared-docs/pipeline/guides/extensions/docs-code/regions/region-matchers/inline-hash.ts_0_565
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // These type of comments are used in hash comment based languages such as bash and Yaml export const regionStartMat...
{ "end_byte": 565, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/extensions/docs-code/regions/region-matchers/inline-hash.ts" }
angular/adev/shared-docs/pipeline/guides/extensions/docs-code/regions/region-matchers/html.ts_0_562
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // These kind of comments are used in HTML export const regionStartMatcher = /^\s*<!--\s*#docregion\s*(.*?)\s*(?:--...
{ "end_byte": 562, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/extensions/docs-code/regions/region-matchers/html.ts" }
angular/adev/shared-docs/pipeline/guides/extensions/docs-code/regions/region-matchers/inline-c.ts_0_558
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // This comment type is used in C like languages such as JS, TS, etc export const regionStartMatcher = /^\s*\/\/\s*#...
{ "end_byte": 558, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/extensions/docs-code/regions/region-matchers/inline-c.ts" }
angular/adev/shared-docs/pipeline/guides/extensions/docs-code/regions/region-matchers/inline-c-only.ts_0_583
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // These kind of comments are used in languages that do not support block comments, such as Jade export const region...
{ "end_byte": 583, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/extensions/docs-code/regions/region-matchers/inline-c-only.ts" }
angular/adev/shared-docs/pipeline/guides/extensions/docs-code/regions/region-matchers/block-c.ts_0_605
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // These kind of comments are used CSS and other languages that do not support inline comments export const regionSt...
{ "end_byte": 605, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/extensions/docs-code/regions/region-matchers/block-c.ts" }
angular/adev/shared-docs/pipeline/guides/extensions/docs-code/sanitizers/eslint.ts_0_1845
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ export type FileType = | 'ts' | 'js' | 'mjs' | 'es6' | 'html' | 'svg' | 'css' | 'conf' | 'yaml' ...
{ "end_byte": 1845, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/extensions/docs-code/sanitizers/eslint.ts" }
angular/adev/shared-docs/pipeline/guides/extensions/docs-code/format/highlight.ts_0_3845
import {decode} from 'html-entities'; import {CodeToken} from './index'; import {expandRangeStringValues} from './range'; import {JSDOM} from 'jsdom'; import {createHighlighter, HighlighterGeneric} from 'shiki'; const lineNumberClassName: string = 'shiki-ln-number'; const lineAddedClassName: string = 'add'; const line...
{ "end_byte": 3845, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/extensions/docs-code/format/highlight.ts" }
angular/adev/shared-docs/pipeline/guides/extensions/docs-code/format/diff.ts_0_1352
import {diffLines, Change as DiffChange} from 'diff'; import {CodeToken} from './index'; import {loadWorkspaceRelativeFile} from '../../../utils'; export interface DiffMetadata { code: string; linesAdded: number[]; linesRemoved: number[]; } /** * Updates the provided token with diff information if a path to a ...
{ "end_byte": 1352, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/extensions/docs-code/format/diff.ts" }
angular/adev/shared-docs/pipeline/guides/extensions/docs-code/format/range.ts_0_1326
/** * Expand a provided set of range values into a singel array of all values in the range. * * For example, [[1,3], [12-13]] is expanded to [1,2,3,12,13]. */ export function expandRangeStringValues(rangeString: string | undefined): number[] { if (rangeString === undefined) { return []; } const getAllVal...
{ "end_byte": 1326, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/extensions/docs-code/format/range.ts" }
angular/adev/shared-docs/pipeline/guides/extensions/docs-code/format/region.ts_0_930
import {CodeToken} from './index'; import {regionParser} from '../regions/region-parser'; import {FileType} from '../sanitizers/eslint'; /** * Updates the provided token to include the extracted region as the visible lines for the token. */ export function extractRegions(token: CodeToken) { const fileType: FileTyp...
{ "end_byte": 930, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/extensions/docs-code/format/region.ts" }
angular/adev/shared-docs/pipeline/guides/extensions/docs-code/format/index.ts_0_2651
import {Tokens} from 'marked'; import {DiffMetadata, calculateDiff} from './diff'; import {highlightCode} from './highlight'; import {extractRegions} from './region'; import {JSDOM} from 'jsdom'; import {expandRangeStringValues} from './range'; /** Marked token for a custom docs element. */ export interface CodeToken ...
{ "end_byte": 2651, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/extensions/docs-code/format/index.ts" }
angular/adev/shared-docs/pipeline/guides/testing/bootstrap.init.ts_0_112
// Set HANDLE_MERMAID to false as unit testing does not handle mermaid. (global as any).HANDLE_MERMAID = false;
{ "end_byte": 112, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/testing/bootstrap.init.ts" }
angular/adev/shared-docs/pipeline/guides/testing/BUILD.bazel_0_702
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library") ts_library( name = "unit_test_lib", testonly = True, srcs = glob([ "**/*.spec.ts", ]), deps = [ "//adev/shared-docs/pipeline/guides", "@npm//@bazel/runfiles", "@npm//@types/jsdom", "@npm//jsdom",...
{ "end_byte": 702, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipeline/guides/testing/BUILD.bazel" }