Skip to content

Commit 8fc4622

Browse files
authored
Merge pull request #4 from macvim-dev/appcast-multiple-release
Support showing multiple releases in appcast
2 parents 02ef087 + d2a30b3 commit 8fc4622

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

appcast/_appcast_style.css

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<style>
22
:root { supported-color-schemes: light dark; color-scheme: light dark; }
3-
h1 { padding-bottom: .3em; border-bottom: 1px solid gray; }
3+
div h1 { padding-bottom: .3em; border-bottom: 1px solid gray; }
4+
5+
/* Older versions' release notes. Will be optionally shown in collapsed form if the user has upgraded across multiple versions. */
6+
div > details.oldVersionToggle > summary {
7+
font-size: 1.2em;
8+
border-radius: 5px;
9+
border-bottom: 3px solid #57c4d0;
10+
cursor: pointer;
11+
padding: 10px;
12+
}
13+
.toc {
14+
/* Sparkle does not seem to allow anchor links. Just disable the TOC. */
15+
display: none;
16+
}
17+
div.sparkle-installed-version { display:none; }
18+
div.sparkle-installed-version ~ section { display: none; }
419
</style>

appcast/_prerelease.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
<title>MacVim prerelease-180.2</title>
44
<description><![CDATA[
55
{% include_relative _appcast_style.css %}
6+
<div>
67
{% include releases/r180.2.html %}
8+
</div>
79
<p><br /><small><a href="https://github.com/macvim-dev/macvim/releases/">Latest release notes &gt;</a></small></p>
810
]]></description>
911
<sparkle:fullReleaseNotesLink>https://github.com/macvim-dev/macvim/releases</sparkle:fullReleaseNotesLink>

appcast/_release.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
<title>MacVim release-180</title>
33
<description><![CDATA[
44
{% include_relative _appcast_style.css %}
5+
<div>
56
{% include releases/r180.html %}
7+
</div>
68
<p><br /><small><a href="https://github.com/macvim-dev/macvim/releases/latest">Latest release notes &gt;</a></small></p>
79
]]></description>
810
<sparkle:fullReleaseNotesLink>https://github.com/macvim-dev/macvim/releases</sparkle:fullReleaseNotesLink>

appcast/_release_legacy.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
<title>MacVim release-180</title>
33
<description><![CDATA[
44
{% include_relative _appcast_style.css %}
5+
<div>
56
{% include releases/r180.html %}
7+
</div>
68
<p><br /><small><a href="https://github.com/macvim-dev/macvim/releases/latest">Latest release notes &gt;</a></small></p>
79
]]></description>
810
<sparkle:fullReleaseNotesLink>https://github.com/macvim-dev/macvim/releases</sparkle:fullReleaseNotesLink>

0 commit comments

Comments
 (0)