-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Docs Site] Move deprecations to new page, move date header on change…
…logs (#18246)
- Loading branch information
1 parent
7be8bef
commit de02459
Showing
3 changed files
with
92 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
import StarlightPage from "@astrojs/starlight/components/StarlightPage.astro"; | ||
import { marked } from "marked"; | ||
import { getChangelogs } from "~/util/changelogs"; | ||
const { changelogs } = await getChangelogs({ | ||
deprecationsOnly: true, | ||
}); | ||
--- | ||
|
||
<StarlightPage frontmatter={{ title: "Deprecations", template: "splash" }}> | ||
<p> | ||
Unless otherwise noted, all dates refer to the release date of the change. | ||
</p> | ||
<br /> | ||
{ | ||
changelogs.map(([date, entries]) => ( | ||
<div> | ||
<h2>{date}</h2> | ||
{entries?.map((entry) => ( | ||
<div | ||
data-product={entry.product.toLowerCase()} | ||
data-productArea={entry.productAreaName.toLowerCase()} | ||
> | ||
<h3> | ||
<a href={entry.link}>{entry.product}</a> | ||
</h3> | ||
<p set:html={marked.parse(entry.description ?? "")} /> | ||
</div> | ||
))} | ||
</div> | ||
)) | ||
} | ||
</StarlightPage> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters