Skip to content

Commit 5be2c5c

Browse files
committed
Replace Download section with Releases
1 parent f8a8d4c commit 5be2c5c

7 files changed

Lines changed: 70 additions & 72 deletions

File tree

README.md

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ This will print a localhost URL which you can open in your browser.
2323

2424
RPM releases are represented as a Jekyll
2525
[collection](https://jekyllrb.com/docs/collections/) in the `_releases/`
26-
directory. The collection is used to generate individual release notes pages
27-
as well as release announcements on the Home page and entries on the Download
28-
page.
26+
directory. The collection is used to generate individual release pages as well
27+
as release announcements on the Home page.
2928

3029
Each document in the collection is named after the version it represents (e.g.
3130
`4.20.1.md`) and contains a YAML front matter describing the release's
@@ -59,25 +58,19 @@ Drafts don't require a `checksum` field. The semantics of the `date` field is
5958
### Prereleases
6059

6160
We also publish prereleases ("snapshots") for upcoming major releases. These
61+
documents are named after the actual version from CMake (e.g. `5.99.92.md`) and
6262
are marked by setting the `snapshot` field to one of `alphaN`, `betaN` or `rcN`
63-
(where `N` is the respin number, starting at `1`). The `version` field is set
64-
to the target version (e.g. `4.20.0`), not the one from CMake (e.g. `4.19.93`),
65-
and the `baseline` field is set to the previous snapshot's name (if any).
63+
(where `N` is the respin number, starting at `1`).
6664

67-
Snapshot pages aren't directly linked to from the Home page but they're used to
68-
generate announcements and download entries. Both of these link to the final
69-
version's page which must exist and be a draft.
70-
71-
Draft pages automatically inherit some of the metadata from the latest snapshot
72-
with the same `version`, such as the title, tarball and checksum information.
73-
This allows for only having one release notes page that's continuously updated
74-
until the final release.
65+
The `version` field is set to the target version (e.g. `4.20.0`), for which a
66+
draft document must exist. The `baseline` field is set to the name of the
67+
previous snapshot (if any).
7568

7669
### Supported releases
7770

7871
The stable series (e.g. `4.19.x`) currently in support are configured in the
7972
`_data/projects.yml` file. This determines which releases are shown on the
80-
Download pages.
73+
Releases page.
8174

8275
### Markdown flavour
8376

_layouts/default.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@
2525
<body>
2626
<div id="wrapper">
2727
<div id="header">
28-
<a href="{{ site.homeurl }}/index.html">
28+
<a href="{{ site.homeurl }}/">
2929
<div id="logo">
3030
</div>
3131
</a>
3232
</div>
3333
<!-- end #header -->
3434
<div id="menu">
3535
<ul>
36-
<li><a href="{{ site.homeurl }}/index.html">Home</a></li>
36+
<li><a href="{{ site.homeurl }}/">Home</a></li>
37+
<li><a href="{{ site.homeurl }}/releases/">Releases</a></li>
3738
<li><a href="{{ site.homeurl }}/docs/">Documentation</a></li>
38-
<li><a href="{{ site.homeurl }}/download.html">Download</a></li>
3939
<li><a href="{{ site.homeurl }}/community.html">Community</a></li>
4040
<li><a href="{{ site.homeurl }}/contribute.html">Contribute</a></li>
4141
<li><a href="{{ site.homeurl }}/roadmap.html">Roadmap</a></li>

download.html

Lines changed: 3 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,5 @@
11
---
2-
layout: default
3-
title: rpm.org - Download
2+
layout: redirected
3+
sitemap: false
4+
redirect_to: /releases
45
---
5-
6-
{% assign project = site.data.projects | where: "name", "rpm" | first %}
7-
8-
<h2>Download</h2>
9-
<p>Source tarballs of the stable (supported) and development RPM releases.</p>
10-
11-
<h3>Stable Releases</h3>
12-
{% assign series_list = site.releases |
13-
where: "draft", false |
14-
where: "snapshot", false |
15-
where: "supported", true |
16-
sort: "series" | reverse | group_by: "series" %}
17-
{% for series in series_list %}
18-
<h4>{{ project.title }} {{ series.name }}</h4>
19-
<ul>
20-
{% for release in series.items %}
21-
<li><a href="{{ release.tarball }}">{{ release.title }}</a>
22-
(<a href="releases/{{ release.version }}">Release notes</a>)
23-
</li>
24-
{% endfor %}
25-
</ul>
26-
{% else %}
27-
<li>N/A</li>
28-
{% endfor %}
29-
30-
<h3>Development</h3>
31-
{% assign series_list = site.releases |
32-
where: "draft", true |
33-
sort: "series" | reverse | group_by: "series" %}
34-
<ul>
35-
{% for series in series_list %}
36-
{% for release in series.items %}
37-
<li><a href="{{ release.parent.tarball }}">{{ release.parent.title }}</a>
38-
(<a href="releases/{{ release.parent.slug }}">Release notes</a>)
39-
</li>
40-
{% endfor %}
41-
{% else %}
42-
<li>N/A</li>
43-
{% endfor %}
44-
</ul>
45-
46-
<h3>POPT</h3>
47-
<ul>
48-
<li><a href="https://ftp.osuosl.org/pub/rpm/popt/releases/popt-1.x/popt-1.19.tar.gz">POPT 1.19</a>
49-
(<a href="https://github.com/rpm-software-management/popt/releases/tag/popt-1.19-release">Release notes</a>)
50-
</li>
51-
</ul>
52-
53-
<p>For older releases, head over to the <a href="timeline.html">timeline.</a></p>

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ <h2>News</h2>
1818

1919
{% include timeline.html %}
2020

21-
<p>For older news, head over to <a href="timeline">RPM timeline</a>.</p>
21+
<p>For older news, head over to the <a href="timeline">timeline</a>.</p>

releases/index.html

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
layout: default
3+
title: rpm.org - Releases
4+
---
5+
6+
{% assign project = site.data.projects | where: "name", "rpm" | first %}
7+
8+
<h2>Releases</h2>
9+
10+
<h3>Stable</h3>
11+
{% assign series_list = site.releases |
12+
where: "draft", false |
13+
where: "snapshot", false |
14+
where: "supported", true |
15+
sort: "series" | reverse | group_by: "series" %}
16+
{% for series in series_list %}
17+
<h4>{{ project.title }} {{ series.name }}</h4>
18+
<ul>
19+
{% for release in series.items %}
20+
<li>
21+
<a href="{{ release.version }}">{{ release.title }}</a>
22+
</li>
23+
{% endfor %}
24+
</ul>
25+
{% else %}
26+
<li>N/A</li>
27+
{% endfor %}
28+
29+
<h3>Development</h3>
30+
{% assign series_list = site.releases |
31+
where: "draft", true |
32+
sort: "series" | reverse | group_by: "series" %}
33+
<ul>
34+
{% for series in series_list %}
35+
{% for release in series.items %}
36+
<li>
37+
<a href="{{ release.parent.slug }}">
38+
{{ release.parent.title }}
39+
</a>
40+
</li>
41+
{% endfor %}
42+
{% else %}
43+
<li>N/A</li>
44+
{% endfor %}
45+
</ul>
46+
47+
<h3>POPT</h3>
48+
<ul>
49+
<li><a href="https://github.com/rpm-software-management/popt/releases/tag/popt-1.19-release">POPT 1.19</a>
50+
</li>
51+
</ul>
52+
53+
<p>For older releases, head over to the <a href="/timeline">timeline</a>.</p>

software.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Here you can find links to software related to RPM such as frontends, packaging
4444
* [perl-RPM4](http://search.cpan.org/~tvignaud/RPM4/) provides an object-oriented interface to RPM facilities for Perl.
4545
* [RPM-Specfile](http://search.cpan.org/dist/RPM-Specfile/) is a Perl extension for creating RPM specfiles.
4646
* [python-specfile](https://github.com/packit/specfile) is a Python library for parsing and manipulating RPM spec files. Main focus is on modifying existing spec files, any change should result in a minimal diff.
47-
* Python bindings for RPM are distributed as part of [RPM releases](download).
47+
* Python bindings for RPM are distributed as part of [RPM releases](releases).
4848
* [JRPM](http://jrpm.sourceforge.net/) is a java library to manipule and create RPM archives.
4949
* [Redline](http://www.introspectrum.com/oss/) is a pure Java library for manipulating RPM Package Manager packages.
5050
* [php-rpminfo](https://git.remirepo.net/cgit/tools/php-rpminfo.git/) allows to retrieve information from RPM files or from the installed RPMs database from PHP. See [docs](https://www.php.net/rpminfo) for details.

wiki/Download.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
22
layout: redirected
33
sitemap: false
4-
redirect_to: /download
4+
redirect_to: /releases
55
---

0 commit comments

Comments
 (0)