diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-11-26 11:11:03 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-11-26 11:11:03 +0100 |
commit | 7646e5cdcd8cf34092664cf12641b5f96cf9d4ee (patch) | |
tree | ae95455165e178a4b35b979cfc497f4420881d7b | |
parent | 82040b0fcaa785a10267c276df56bdc934443e66 (diff) | |
download | mksite-alpine-7646e5cdcd8cf34092664cf12641b5f96cf9d4ee.tar.bz2 mksite-alpine-7646e5cdcd8cf34092664cf12641b5f96cf9d4ee.tar.xz |
downloads: add flavor title and description
We embed the definitions in the lua code for now
-rw-r--r-- | _scripts/generate_releases.lua | 25 | ||||
-rw-r--r-- | downloads/index.md | 23 |
2 files changed, 28 insertions, 20 deletions
diff --git a/_scripts/generate_releases.lua b/_scripts/generate_releases.lua index e3c72c9..e1503fd 100644 --- a/_scripts/generate_releases.lua +++ b/_scripts/generate_releases.lua @@ -5,6 +5,24 @@ yaml = require("yaml") url_prefix="http://wiki.alpinelinux.org/cgi-bin/dl.cgi" t = { flavors={} } +flavor_def = { + ["alpine"] = { + title = "Standard", + desc = "Most common used packages included. Use this for" + .." routers and servers that run from RAM." }, + ["alpine-mini"] = { + title = "Mini", + desc = "Only the basic packages included. Use this for disk" + .." installs from network." }, + ["alpine-vanilla"] = { + title = "Vanilla", + desc = "Similar to 'Mini' but with a vanilla kernel. This is" + .." for troubleshooting kernel issues." }, + ["alpine-xen"] = { + title = "Xen", + desc = "Xen Dom0 LiveCD and Xen packages." }, +} + for i = 1,#arg do local f = assert(io.open(arg[i])) @@ -20,7 +38,12 @@ for i = 1,#arg do local flavor = t[v.flavor] if flavor == nil then - flavor = { archs = {}, flavor_name=v.flavor} + local def = flavor_def[v.flavor] or {title="", desc=""} + flavor = { + archs = {}, + flavor_title = def.title, + flavor_desc = def.desc, + } table.insert(t.flavors, flavor) end flavor[v.arch] = v diff --git a/downloads/index.md b/downloads/index.md index aefec1c..66a71b2 100644 --- a/downloads/index.md +++ b/downloads/index.md @@ -1,18 +1,5 @@ --- title: Downloads -flavor: - alpine: - title: Standard - desc: Most common used packages included. Use this for routers and servers that run from RAM. - alpine-mini: - title: Mini - desc: Only the basic packages included. Use this for disk installs from network. - alpine-vanilla: - title: Vanilla - desc: Similar to 'Mini' but with a vanilla kernel. This is for troubleshooting kernel issues. - alpine-xen: - title: Xen - desc: Xen Dom0 LiveCD and Xen packages. --- Downloads @@ -30,17 +17,15 @@ Released {{releases.default.datestr}} </tr> {{#releases.flavors}} -<tr><td>{{flavor_name}}</td><td></td><td></td></tr> +<tr title="{{flavor_desc}}"><td>{{flavor_title}}</td><td></td><td></td></tr> {{#archs}} -<tr title="{{flavor.alpine.desc}}"> +<tr title="{{flavor_desc}}"> <td class="iso"><a href="{{iso_url}}">{{iso}}</a></td> <td class="size">{{size_mb}} MB</td> <td class="checksums"> - <a title="{{sha1}}" - href="{{sha1_url}}">sha1</a> + <a title="{{sha1}}" href="{{sha1_url}}">sha1</a> | - <a title="{{sha256}}" - href="{{sha256_url}}">sha256</a> + <a title="{{sha256}}" href="{{sha256_url}}">sha256</a> </td> </tr> {{/archs}} |