The minimalistic document archiving platform.
---
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
import rawChangelog from '../../../../packages/app/CHANGELOG.md?raw';
import { parseChangelog } from '../changelog-parser';
import { renderMarkdown } from '../markdown';
const changelog = parseChangelog(rawChangelog);
---
<StarlightPage
frontmatter={{
title: 'Papra changelog',
description: 'View the changelogs of the Docker images released by Papra.',
tableOfContents: false,
}}
>
<p>
Here are the changelogs for Docker images released by Papra.
<br />
Papra application versions use the format <code>YY.MINOR.PATCH</code>. <code>YY</code>{' '}
identifies the release year, <code>MINOR</code> increments for feature releases, and{' '}
<code>PATCH</code> increments for maintenance releases. Papra publishes fixes only for the
latest version.
</p>
{changelog.map(({ entries, version }) => (
<section>
<h2 id={version} class="pb-1 mt-14">
v{version}
</h2>
<ul>
{entries.map((entry) => (
<li>
<div class="flex flex-col">
<div
class="text-foreground lh-normal changelog-entry"
set:html={renderMarkdown(entry.content)}
/>
<div class="text-xs mt-1 flex gap-1 flex-wrap">
<a
href={entry.pr.url}
class="text-muted-foreground hover:bg-muted transition border border-muted border-solid rounded-md no-underline px-1 py-0.5"
>
PR #{entry.pr.number}
</a>
<a
href={entry.commit.url}
class="text-muted-foreground hover:bg-muted transition border border-muted border-solid rounded-md no-underline px-1 py-0.5"
>
{entry.commit.hash.slice(0, 7)}
</a>
<a
href={entry.contributor.url}
class="text-muted-foreground hover:bg-muted transition border border-muted border-solid rounded-md no-underline px-1 py-0.5"
>
By @{entry.contributor.username}
</a>
</div>
</div>
</li>
))}
</ul>
</section>
))}
</StarlightPage>
<style is:global>
.changelog-entry pre {
border-radius: 6px;
color: hsl(var(--muted-foreground) / var(--un-text-opacity));
}
</style>