/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
adev/shared-docs/pipeline/api-gen/rendering/transforms/constant-transforms.mts
39 строк
1 KB
Matthieu Riegler
docs(docs-infra): Improve formatting of functions (#61154)
16 май 2025, 16:58
16 май 2025, 16:58
ca700e1
Код
Авторство
О чём код?
/*! * @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.mjs'; import {ConstantEntryRenderable} from '../entities/renderables.mjs'; import {addRenderableCodeToc} from './code-transforms.mjs'; import { addHtmlAdditionalLinks, addHtmlDescription, addHtmlJsDocTagComments, addHtmlUsageNotes, setEntryFlags, } from './jsdoc-transforms.mjs'; import {addModuleName} from './module-name.mjs'; import {addRepo} from './repo.mjs'; /** Given an unprocessed constant entry, get the fully renderable constant entry. */ export async function getConstantRenderable( classEntry: ConstantEntry, moduleName: string, repo: string, ): Promise<ConstantEntryRenderable> { return setEntryFlags( await addRenderableCodeToc( addHtmlAdditionalLinks( addHtmlUsageNotes( addHtmlJsDocTagComments( addHtmlDescription(addRepo(addModuleName(classEntry, moduleName), repo)), ), ), ), ), ); }