Skip to content

Add archive links - #431

Merged
wu-sheng merged 2 commits into
apache:masterfrom
Jtrust:archive
Apr 17, 2022
Merged

Add archive links#431
wu-sheng merged 2 commits into
apache:masterfrom
Jtrust:archive

Conversation

@Jtrust

@Jtrust Jtrust commented Apr 17, 2022

Copy link
Copy Markdown
Member

screenshot:
image

@Jtrust
Jtrust requested a review from wu-sheng April 17, 2022 04:24
@wu-sheng
wu-sheng merged commit 90843de into apache:master Apr 17, 2022
@Jtrust
Jtrust deleted the archive branch November 9, 2022 12:15
wu-sheng added a commit that referenced this pull request Aug 16, 2026
…ottom (#900)

* Restore the archive links the redesign dropped from Archived Releases

#431 added "- type: Archive" to releases.yml purely so the section got a nav
chip, and put the actual content in a hardcoded container-archived block in
downloads-block.html: a note that older releases are unmaintained but still
downloadable, plus links to the ASF archive and the incubator archive.

The redesign (#844) rewrote downloads-block.html and dropped that block, but
left the now-renamed "Archived Releases" entry in releases.yml behind. Since
that entry has never had a list, the chip and the <h2> have rendered above an
empty grid ever since.

Restores the text as the category description so it is data-driven rather than
hardcoded, and renders any category description under its heading. Every other
category has a null description, so nothing else changes.

* Fold archived releases and move them below the Docker images

Most people on the downloads page are looking for something current, so an
archived category no longer sits in the middle of the page: it renders last,
after the Docker images, as a <details> that is shut by default and shows
only its title and a component count until opened.

Categories opt in with `archived: true` in releases.yml, so this is a
property of the data rather than a special case for one hard-coded section.
The chip strip and the "Latest releases" aside follow the same flag — chips
for archived categories move after the Docker chip, and archived components
no longer compete for a slot in the aside.

The card grid moves to partials/downloads-cards.html so the live and folded
paths render identical markup.

Anchors keep working: a <details> holding the target of location.hash is
opened on load and on hashchange, so /downloads/#BanyanDBJavaClient and the
Archived Releases chip both land on an expanded section.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants