Skip to content

Commit f95f216

Browse files
committed
chore: mark deprecated functions on API
1 parent 3f297fa commit f95f216

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

build/src/php/FileGenerator/Application/ApiMarkdownGenerator.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ public function generate(): array
3939
/** @var PhelFunction $fn */
4040
foreach ($fns as $fn) {
4141
$result[] = "### `{$fn->nameWithNamespace()}`";
42+
if (isset($fn->meta['deprecated'])) {
43+
$result[] = sprintf(
44+
'<small><span style="color: red; font-weight: bold;">Deprecated</span>: %s</small>',
45+
$fn->meta['deprecated']
46+
);
47+
}
4248
$result[] = $fn->doc;
4349
if ($fn->githubUrl !== '') {
4450
$result[] = sprintf('<small>[[View source](%s)]</small>', $fn->githubUrl);

composer.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)