Skip to content

Commit be387e1

Browse files
committed
news: add link to Changelog where applicable
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
1 parent 09f3cbd commit be387e1

File tree

5 files changed

+64
-9
lines changed

5 files changed

+64
-9
lines changed

_data/announces.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# DO NOT EDIT MANUALLY: it is generated by a script (website-doc.sh)
2+
- {version: 'v6.5.7-rc2', link: 'offlineimap-v657-rc2-2015-01-18'}
3+
- {version: 'v6.5.7-rc1', link: 'offlineimap-v657-rc1-2015-01-07'}
4+
- {version: 'v6.5.6', link: 'offlineimap-v656-2014-05-14'}
5+
- {version: 'v6.5.6-rc1', link: 'offlineimap-v656-rc1-2014-05-14'}
6+
- {version: 'v6.5.5', link: 'offlineimap-v655-2013-10-07'}
7+
- {version: 'v6.5.4', link: 'offlineimap-v654-2012-06-02'}
8+
- {version: 'v6.5.3.1', link: 'offlineimap-v6531-2012-04-03'}
9+
- {version: 'v6.5.3', link: 'offlineimap-v653-2012-04-02'}
10+
- {version: 'v6.5.2.1', link: 'offlineimap-v6521-2012-04-04'}
11+
- {version: 'v6.5.2', link: 'offlineimap-v652-2012-01-17'}
12+
- {version: 'v6.5.1.2', link: 'offlineimap-v6512-2012-01-07---baby-steps'}
13+
- {version: 'v6.5.1.1', link: 'offlineimap-v6511-2012-01-07---das-machine-control-is-nicht-fur-gerfinger-poken-und-mittengrabben'}
14+
- {version: 'v6.5.1', link: 'offlineimap-v651-2012-01-07---quest-for-stability'}
15+
- {version: 'v6.5.0', link: 'offlineimap-v650-2012-01-06'}
16+
- {version: 'v6.4.4', link: 'offlineimap-v644-2012-01-06'}
17+
- {version: 'v6.4.3', link: 'offlineimap-v643-2012-01-04'}
18+
- {version: 'v6.4.2', link: 'offlineimap-v642-2011-12-01'}
19+
- {version: 'v6.4.1', link: 'offlineimap-v641-2011-11-17'}
20+
- {version: 'v6.4.0', link: 'offlineimap-v640-2011-09-29'}
21+
- {version: 'v6.3.5-rc3', link: 'offlineimap-v635-rc3-2011-09-21'}
22+
- {version: 'v6.3.5-rc2', link: 'offlineimap-v635-rc2-2011-09-19'}
23+
- {version: 'v6.3.5-rc1', link: 'offlineimap-v635-rc1-2011-09-12'}
24+
- {version: 'v6.3.4', link: 'offlineimap-v634-2011-08-10'}
25+
- {version: 'v6.3.4-rc4', link: 'offlineimap-v634-rc4-2011-07-27'}
26+
- {version: 'v6.3.4-rc3', link: 'offlineimap-v634-rc3-2011-07-07'}
27+
- {version: 'v6.3.4-rc2', link: 'offlineimap-v634-rc2-2011-06-15'}
28+
- {version: 'v6.3.4-rc1', link: 'offlineimap-v634-rc1-2011-05-16'}
29+
- {version: 'v6.3.3', link: 'offlineimap-v633-2011-04-24'}
30+
- {version: 'v6.3.3-rc3', link: 'offlineimap-v633-rc3-2011-04-19'}
31+
- {version: 'v6.3.3-rc2', link: 'offlineimap-v633-rc2-2011-04-07'}
32+
- {version: 'v6.3.3-rc1', link: 'offlineimap-v633-rc1-2011-03-16'}
33+
- {version: 'v6.3.2', link: 'offlineimap-v632-2010-02-21'}
34+
- {version: 'v6.3.2-rc3', link: 'offlineimap-v632-rc3-2010-02-06'}
35+
- {version: 'v6.3.2-rc2', link: 'offlineimap-v632-rc2-2010-12-21'}
36+
- {version: 'v6.3.2-rc1', link: 'offlineimap-v632-rc1-2010-12-19'}
37+
- {version: 'v6.3.1', link: 'offlineimap-v631-2010-12-11'}
38+
- {version: 'v6.3.0', link: 'offlineimap-v630-2010-12-09'}

_doc/Changelog.maint.md

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ layout: page
33
title: Changelog of the stable branch
44
---
55

6+
* The following excerpt is only usefull when rendered in the website.
7+
{:toc}
8+
69
This is the Changelog of the maintenance branch.
710

811
**NOTE FROM THE MAINTAINER:**

_doc/Changelog.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@ layout: page
33
title: Changelog of mainline
44
---
55

6-
* junk
6+
* The following excerpt is only usefull when rendered in the website.
77
{:toc}
88

9-
---
10-
11-
### OfflineIMAP v6.5.7-rc3 (2015- - )
12-
139

1410

1511
### OfflineIMAP v6.5.7-rc2 (2015-01-18)

assets/js/news.coffee

+16-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
---
33

4+
45
# Allow exporting variables via 'root'.
56
root = exports ? this
67

@@ -32,6 +33,14 @@ class NsJSON extends NsFeed
3233
@data = json
3334

3435
class Releases extends NsJSON
36+
changelogPage: '/doc/Changelog.html#'
37+
38+
getChangelogLink: (version) =>
39+
pageLink = $('div[id=\'' + version + '\']').attr('link')
40+
if pageLink
41+
return @changelogPage + pageLink
42+
return undefined
43+
3544
format: =>
3645
content = ''
3746
for item in @items
@@ -43,10 +52,13 @@ class Releases extends NsJSON
4352

4453
line += '<a href="' + version_url + '">' + version + '</a> '
4554

46-
downloads = ''
47-
downloads += '(<a href="' + tarball + '">tarball</a>) '
48-
downloads += '(<a href="' + zipball + '">zipball</a>)'
49-
line += '<i>' + downloads + '</i>'
55+
links = ''
56+
links += '(<a href="' + tarball + '">tarball</a>) '
57+
links += '(<a href="' + zipball + '">zipball</a>) '
58+
changelogLink = @getChangelogLink(version)
59+
if changelogLink
60+
links += '(<a href="' + changelogLink + '">announe</a>) '
61+
line += '<i>' + links + '</i>'
5062

5163
line = '<li>' + line + '</li>'
5264
content += line

news.html

+6
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@
44
---
55

66
{% assign links = site.data.links %}
7+
{% assign announces = site.data.announces %}
78

89

910
<h3>Lastest Releases</h3>
1011
<div id='releases'></div>
12+
<!-- Put the announces we know hidden in the page. -->
13+
{% for announce in announces %}
14+
<div id='{{ announce.version }}' link='{{ announce.link }}' style='display=none'></div>
15+
{% endfor %}
1116

1217
<h3>Lastest commits</h3>
1318
<div id='feed-commits'></div>
@@ -23,6 +28,7 @@ <h3>Lastest commits</h3>
2328
2429
-->
2530

31+
<!-- See assets/js -->
2632
<script type="text/javascript">
2733
$(document).ready(fillNews);
2834
$(document).ready(newsRSS("#feed-commits",

0 commit comments

Comments
 (0)