Skip to content

Commit 0358c5f

Browse files
committed
Add downloads links to the download page
1 parent 2c2a0b9 commit 0358c5f

14 files changed

+383
-98
lines changed

_config.yml

+7
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,10 @@ snow: 0
1111

1212
plugins:
1313
- jekyll-redirect-from
14+
15+
collections:
16+
platforms:
17+
output: true
18+
19+
download_mirror: https://alpha.de.repo.voidlinux.org/live/current
20+
download_build_date: 2019-11-09

_includes/download_arm.html

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<div class="split-section">
2+
<div>
3+
<h3 id="{{ page.name }}">{{ page.name }}</h3>
4+
{{ include.content | markdownify }}
5+
</div>
6+
<div>
7+
{% for device in page.devices %}
8+
<div class="download-device-title">
9+
<h4>{{ device }}</h4>
10+
<small>{{ site.download_build_date }}</small>
11+
</div>
12+
<ul class="inline-download-links">
13+
<li>
14+
<a
15+
href="{{ site.download_mirror }}/void-{{ device }}-ROOTFS-{{ site.download_build_date | date: '%Y%m%d' }}.tar.xz"
16+
>rootfs tarball</a
17+
>
18+
<span class="label label-default">glibc</span>
19+
</li>
20+
<li>
21+
<a
22+
href="{{ site.download_mirror }}/void-{{ device }}-musl-ROOTFS-{{ site.download_build_date | date: '%Y%m%d' }}.tar.xz"
23+
>rootfs tarball</a
24+
>
25+
<span class="label label-warning">musl</span>
26+
</li>
27+
</ul>
28+
{% endfor %}
29+
</div>
30+
</div>

_includes/download_details_pc.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Installable live images support a local installation (with the included packages) or a network installation (packages are downloaded from official repository).
2+
3+
You can log into these images as `anon` or `root`, and the password is `voidlinux`.
4+
5+
To start the installer, execute the `void-installer` utility with appropriate permissions (i.e., `sudo void-installer`).

_includes/download_pc.html

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<div class="split-section">
2+
<div>
3+
<h3 id="{{ page.name }}">{{ page.name }}</h3>
4+
{{ include.content | markdownify }}
5+
<div class="alert alert-warning" role="alert">
6+
To install the packages for the desktop environment, DON'T choose "install
7+
from network" choose the "local install" option.
8+
</div>
9+
</div>
10+
<div>
11+
<div class="download-device-title">
12+
<h4>base</h4>
13+
<small>{{ site.download_build_date }}</small>
14+
</div>
15+
<ul class="inline-download-links">
16+
<li>
17+
<a
18+
href="{{ site.download_mirror }}/void-live-{{ page.name }}-{{ site.download_build_date | date: '%Y%m%d' }}.iso"
19+
>Live image</a
20+
>
21+
<span class="label label-default">glibc</span>
22+
</li>
23+
{% if page.supports_musl %}
24+
<li>
25+
<a
26+
href="{{ site.download_mirror }}/void-live-{{ page.name }}-musl-{{ site.download_build_date | date: '%Y%m%d' }}.iso"
27+
>Live image</a
28+
>
29+
<span class="label label-warning">musl</span>
30+
</li>
31+
{% endif %}
32+
<li>
33+
<a
34+
href="{{ site.download_mirror }}/void-{{ page.name }}-ROOTFS-{{ site.download_build_date | date: '%Y%m%d' }}.tar.xz"
35+
>rootfs tarball</a
36+
>
37+
<span class="label label-default">glibc</span>
38+
</li>
39+
{% if page.supports_musl %}
40+
<li>
41+
<a
42+
href="{{ site.download_mirror }}/void-{{ page.name }}-musl-ROOTFS-{{ site.download_build_date | date: '%Y%m%d' }}.tar.xz"
43+
>rootfs tarball</a
44+
>
45+
<span class="label label-warning">musl</span>
46+
</li>
47+
{% endif %}
48+
</ul>
49+
50+
{% for flavor in page.flavors %}
51+
<div class="download-device-title">
52+
<h4>{{ flavor | downcase }}</h4>
53+
<small>{{ site.download_build_date }}</small>
54+
</div>
55+
<ul class="inline-download-links">
56+
<li>
57+
<a
58+
href="{{ site.download_mirror }}/void-live-{{ page.name }}-{{ site.download_build_date | date: '%Y%m%d' }}-{{ flavor | downcase }}.iso"
59+
>Live image</a
60+
>
61+
<span class="label label-default">glibc</span>
62+
</li>
63+
{% if page.supports_musl %}
64+
<li>
65+
<a
66+
href="{{ site.download_mirror }}/void-live-{{ page.name }}-musl-{{ site.download_build_date | date: '%Y%m%d' }}-{{ flavor | downcase }}.iso"
67+
>Live image</a
68+
>
69+
<span class="label label-warning">musl</span>
70+
</li>
71+
{% endif %}
72+
</ul>
73+
{% endfor %}
74+
</div>
75+
</div>

_includes/download_sbc.html

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<div class="split-section">
2+
<div>
3+
<h3 id="{{ page.name }}">{{ page.name }}</h3>
4+
{{ include.content | markdownify }}
5+
</div>
6+
<div>
7+
{% for device in page.devices %}
8+
<div class="download-device-title">
9+
<h4>
10+
{{ device.name }}
11+
{% if device.arch %}
12+
({{ device.arch }})
13+
{% endif %}
14+
</h4>
15+
<small>{{ site.download_build_date }}</small>
16+
</div>
17+
<ul class="inline-download-links">
18+
<li>
19+
<a
20+
href="{{ site.download_mirror }}/void-{{ device.name }}-{{ site.download_build_date | date: '%Y%m%d' }}.img.xz"
21+
>Live image</a
22+
>
23+
<span class="label label-default">glibc</span>
24+
</li>
25+
<li>
26+
<a
27+
href="{{ site.download_mirror }}/void-{{ device.name }}-musl-{{ site.download_build_date | date: '%Y%m%d' }}.img.xz"
28+
>Live image</a
29+
>
30+
<span class="label label-warning">musl</span>
31+
</li>
32+
<li>
33+
<a
34+
href="{{ site.download_mirror }}/void-{{ device.name }}-PLATFORMFS-{{ site.download_build_date | date: '%Y%m%d' }}.tar.xz"
35+
>rootfs tarball</a
36+
>
37+
<span class="label label-default">glibc</span>
38+
</li>
39+
<li>
40+
<a
41+
href="{{ site.download_mirror }}/void-{{ device.name }}-musl-PLATFORMFS-{{ site.download_build_date | date: '%Y%m%d' }}.tar.xz"
42+
>rootfs tarball</a
43+
>
44+
<span class="label label-warning">musl</span>
45+
</li>
46+
</ul>
47+
{% endfor %}
48+
</div>
49+
</div>

_layouts/default.html

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<link rel="alternate" type="application/atom+xml" title="Atom feed" href="/atom.xml" />
1616
<script src="/assets/js/jquery.min.js"></script>
1717
<script src="/assets/js/bootstrap.min.js"></script>
18+
<script src="/assets/js/tabbar.js"></script>
1819
</head>
1920
<body role="document">
2021
<nav class="navbar navbar-default navbar-inverse navbar-fixed-top" role="navigation">

_layouts/download.html

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
layout: default
3+
---
4+
5+
<div class="container">
6+
{{ content }}
7+
8+
<ul class="tab-bar" id="tab-bar">
9+
{% for platform in site.platforms %}
10+
<li>
11+
<a href="#{{ platform.name }}">{{ platform.name }}</a>
12+
</li>
13+
{% endfor %}
14+
</ul>
15+
16+
<div id="tab-content">
17+
{% for platform in site.platforms %}
18+
<div>
19+
{{ platform.content }}
20+
<noscript>
21+
<hr />
22+
</noscript>
23+
</div>
24+
{% endfor %}
25+
</div>
26+
<section id="tab-content"></section>
27+
</div>

_platforms/arm.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: arm
3+
date: 1970-01-01 04:00:00
4+
devices: [armv6l, armv7l, aarch64]
5+
---
6+
7+
{% capture download_details %}
8+
ROOTFS tarballs can be extracted to a previously prepared partition scheme or
9+
used for chroot installation.
10+
11+
General and platform specific instructions are available [in the
12+
documentation](https://docs.voidlinux.org/installation/guides/arm-devices/index.html).
13+
{% endcapture %}
14+
15+
{% include download_arm.html content=download_details %}

_platforms/i686.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: i686
3+
date: 1970-01-01 03:00:00
4+
flavors: [enlightenment, cinnamon, lxde, lxqt, mate, xfce]
5+
supports_musl: false
6+
---
7+
8+
{% capture download_details %}
9+
{% include download_details_pc.md %}
10+
{% endcapture %}
11+
12+
{% include download_pc.html content=download_details %}

_platforms/sbc.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: arm platforms
3+
date: 1970-01-01 05:00:00
4+
devices:
5+
- name: beaglebone
6+
arch: armv7
7+
- name: cubieboard2
8+
arch: armv7
9+
- name: odroid-c2
10+
arch: armv7
11+
- name: rpi
12+
arch: armv6
13+
- name: rpi2
14+
arch: armv7
15+
- name: rpi3
16+
arch: aarch64
17+
- name: usbarmory
18+
arch: armv7
19+
---
20+
21+
{% capture download_details %}
22+
Live images can be written onto an SD card (i.e. using `dd`) and they provide you with a ready to boot system. These images are prepared for 2GB SD cards. Alternatively, use the ROOTFS tarballs if you want to customize the partitions and filesystems.
23+
24+
Connect to the system using a virtual terminal or SSH and log in as `root` with password `voidlinux`.
25+
26+
Platform specific instructions for these images are available [in the documentation](https://docs.voidlinux.org/installation/guides/arm-devices/platforms.html).
27+
28+
Deprecated instructions for the following platforms can be found in these wiki pages (you can help by porting them over to the [Void Handbook](https://github.com/void-linux/void-docs/blob/master/CONTRIBUTING.md)):
29+
30+
- [BeagleBone/BeagleBone Black](https://wiki.voidlinux.org/Beaglebone)
31+
- [Cubieboard2](https://wiki.voidlinux.org/Cubieboard2_SD-Card)
32+
- [Odroid U2/U3](https://wiki.voidlinux.org/Odroid_U2)
33+
- [USB Armory](https://wiki.voidlinux.org/USB_Armory)
34+
{% endcapture %}
35+
36+
{% include download_sbc.html content=download_details %}

_platforms/x86_64.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: x86_64
3+
date: 1970-01-01 01:00:00
4+
flavors: [enlightenment, cinnamon, lxde, lxqt, mate, xfce]
5+
supports_musl: true
6+
---
7+
8+
{% capture download_details %}
9+
{% include download_details_pc.md %}
10+
{% endcapture %}
11+
12+
{% include download_pc.html content=download_details %}

assets/css/misc.css

+88
Original file line numberDiff line numberDiff line change
@@ -173,3 +173,91 @@ h1[id], h2[id], h3[id], h4[id], h5[id], h6[id] {
173173
background-color: black;
174174
border-color: black;
175175
}
176+
177+
.tab-bar {
178+
list-style: none;
179+
display: flex;
180+
padding: 0;
181+
margin: 0;
182+
border-bottom: 1px solid #ddd;
183+
}
184+
.tab-bar li {
185+
padding: 1em 2em;
186+
cursor: pointer;
187+
border-bottom: 2px solid white;
188+
transition: border-color 0.4s;
189+
}
190+
.tab-bar li:hover {
191+
border-bottom: 2px solid #ddd;
192+
}
193+
.tab-bar li.active {
194+
font-weight: bold;
195+
border-bottom: 2px solid #478061;
196+
}
197+
@media (max-width: 500px) {
198+
.tab-bar li {
199+
padding: 1em;
200+
}
201+
}
202+
.tab-bar li a {
203+
color: inherit;
204+
}
205+
.tab-bar li a:focus {
206+
text-decoration: none;
207+
}
208+
209+
.split-section {
210+
display: flex;
211+
flex-wrap: wrap;
212+
}
213+
.split-section h3 {
214+
margin-top: 20px;
215+
padding-top: 0;
216+
}
217+
.split-section > div {
218+
flex: 1;
219+
}
220+
.split-section > div:first-of-type {
221+
padding-right: 4rem;
222+
}
223+
@media (max-width: 600px) {
224+
.split-section {
225+
flex-direction: column;
226+
}
227+
.split-section > div:first-of-type {
228+
padding-right: 0;
229+
}
230+
}
231+
232+
.download-device-title {
233+
display: flex;
234+
justify-content: space-between;
235+
align-items: baseline;
236+
}
237+
.download-device-title h4 {
238+
margin-top: 2rem;
239+
}
240+
241+
.inline-download-links {
242+
list-style: none;
243+
display: flex;
244+
flex-wrap: wrap;
245+
margin: 0;
246+
padding: 0;
247+
border-bottom: 1px solid #ddd;
248+
}
249+
.inline-download-links:last-of-type {
250+
border-bottom: none;
251+
}
252+
.inline-download-links li {
253+
margin-right: 1.5em;
254+
margin-bottom: 2rem;
255+
}
256+
.inline-download-links .label-warning {
257+
background-color: #fdf6e3;
258+
color: #535353;
259+
}
260+
.inline-download-links .label-default {
261+
background-color: #ddd;
262+
color: #535353;
263+
}

0 commit comments

Comments
 (0)