Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitad8d8dc

Browse files
committed
Support pre-release builds in What's New page
1 parentbe2fbc0 commitad8d8dc

File tree

5 files changed

+31
-21
lines changed

5 files changed

+31
-21
lines changed

‎_data/releases.yml‎

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
# This lists all the releases so the front page can automatically reference the
22
# release number and our "What's New" page works.
3-
-178
4-
-177
5-
-176
6-
-174
7-
-173
8-
-172
9-
-171
10-
-170
11-
-169
12-
-166
13-
-165
3+
4+
# The prereleases list should only be filled if there's an active prerelease.
5+
# Otherwise it should be empty.
6+
prereleases:
7+
8+
releases:
9+
-178
10+
-177
11+
-176
12+
-174
13+
-173
14+
-172
15+
-171
16+
-170
17+
-169
18+
-166
19+
-165

‎_includes/releases/r176.1.html‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
<p>MacVim r176.1 (prerelease)</p>
2-
31
<p>Updated to Vim 9.0.1403</p>
42

53
<ul>

‎index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
---
33
<!DOCTYPE html>
4-
{% assign latest_release=site.data.releases[0] %}
4+
{% assign latest_release=site.data.releases.releases[0] %}
55
<htmllang="en-us">
66
<head>
77
<metacharset="UTF-8">

‎javascripts/main.js‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎release-notes/whatsnew.html‎

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,14 @@
7474
</style>
7575
</head>
7676
<body>
77-
{% for release in site.data.releases %}
77+
{% for release in site.data.releases.prereleases %}
78+
<sectionid={{release}}>
79+
<header><h1>MacVim r{{ release }} (prerelease)</h1></header>
80+
{% include releases/r{{ release }}.html %}
81+
</section>
82+
{% endfor %}
83+
84+
{% for release in site.data.releases.releases %}
7885

7986
{% comment %}
8087
We try to show more than 1 releases in case the user is doing a multiple
@@ -100,18 +107,18 @@
100107
letfromRev=NaN;
101108
lettoRev=NaN;
102109
if(params.has('from')&&params.has('to')){
103-
fromRev=parseInt(params.get('from'));
104-
toRev=parseInt(params.get('to'));
110+
fromRev=parseFloat(params.get('from'));
111+
toRev=parseFloat(params.get('to'));
105112
}
106113
elseif(params.has('version')){
107-
toRev=parseInt(params.get('version'));
114+
toRev=parseFloat(params.get('version'));
108115
fromRev=toRev-1;
109116
}
110117
if(!isNaN(fromRev)&&!isNaN(toRev)){
111118
letfoundOne=false;
112119
letsections=document.getElementsByTagName('section');
113120
for(leti=0;i<sections.length;i++){
114-
constsecRev=parseInt(sections[i].id);
121+
constsecRev=parseFloat(sections[i].id);
115122
if(!isNaN(secRev)){
116123
if(secRev<=fromRev||secRev>toRev)
117124
sections[i].style.display='none';
@@ -122,7 +129,7 @@
122129
}
123130
}
124131
if(!foundOne){
125-
sections[0].style.display='block';// Just show the latest if the input range is not valid so we don't show an empty page
132+
document.getElementsByClassName('item-0')[0].style.display='block';// Just show the latest if the input range is not valid so we don't show an empty page
126133
}
127134
}
128135
</script>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp