Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ export interface Props {
}

const { versions, currentVersion, locale, latestVersion, t } = Astro.props;

// Only the latest version is listed in the dropdown. Older versions stay reachable
// by URL (e.g. /whitepaper/v0.3.3). To list them again, map over `versions` below
// instead of `shownVersions`.
const shownVersions = versions.filter(
({ version }) => version === latestVersion,
);
---

<div class="relative inline-block" data-version-selector>
Expand Down Expand Up @@ -48,7 +55,7 @@ const { versions, currentVersion, locale, latestVersion, t } = Astro.props;
data-version-list
>
{
versions.map(({ version, date }) => {
shownVersions.map(({ version, date }) => {
const isLatest = version === latestVersion;
const isCurrent = version === currentVersion;
const href = isLatest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,12 @@ const displayDate = updatedDate ?? publishedDate;
/>
)
}
<DownloadButton href={pdfHref} label={t("whitepaper.download_pdf")} />
{
/* PDF download hidden until the v0.4.0 PDF is produced. Re-enable by restoring the line below. */
}
{
/* <DownloadButton href={pdfHref} label={t("whitepaper.download_pdf")} /> */
}
</div>
</div>
</header>
Loading