jekyll-theme-appcast 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +87 -0
- data/_layouts/appcast.html +25 -0
- data/_layouts/changelog.html +20 -0
- data/_layouts/default.html +44 -0
- data/_layouts/post.html +5 -0
- metadata +92 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: a358221f1341e074df000e458da294ba3d334447
|
|
4
|
+
data.tar.gz: 485e51038fcd6011f6d00f8af06f671d24e9a010
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 7953cdf826a9847a46ec3d08d822fac9bc0e4b2310363774b0e3a97ee5e0f62d5d17a44caf6975e842a41e60c834c9a6114085f9bebbd037e2536463e1d1e040
|
|
7
|
+
data.tar.gz: 5b299ef6a8d481e1d19f199f6086f301c3d86056729011eac96b4cb200890a04f0b50ec35b170baf4d08e127ec0da4228ade194685b916d968eb42f93543bf6e
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017 Reda Lemeden
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
A Jekyll theme to generate macOS appcast feeds and changelog pages.
|
|
2
|
+
|
|
3
|
+
## Installation
|
|
4
|
+
|
|
5
|
+
Add this line to your Jekyll site's `Gemfile`:
|
|
6
|
+
|
|
7
|
+
```ruby
|
|
8
|
+
gem "jekyll-theme-appcast"
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
And add this line to your Jekyll site's `_config.yml`:
|
|
12
|
+
|
|
13
|
+
```yaml
|
|
14
|
+
theme: jekyll-theme-appcast
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
And then execute:
|
|
18
|
+
|
|
19
|
+
$ bundle
|
|
20
|
+
|
|
21
|
+
Or install it yourself as:
|
|
22
|
+
|
|
23
|
+
$ gem install jekyll-theme-appcast
|
|
24
|
+
|
|
25
|
+
## Usage
|
|
26
|
+
|
|
27
|
+
This theme comes with 2 layouts:
|
|
28
|
+
|
|
29
|
+
- *_layouts/appcast*: A template of an XML-based, [Sparkle](https://sparkle-project.org)-compatible appcast.
|
|
30
|
+
- *_layouts/changelog*: A template of an HTML list of all past releases.
|
|
31
|
+
|
|
32
|
+
To use these layouts, create a new file withe the desired extension (`.xml` for the appcast and `.html` or `.md` for the HTML) and add the name of the layput in the YAML front matter.
|
|
33
|
+
|
|
34
|
+
Example:
|
|
35
|
+
|
|
36
|
+
```yaml
|
|
37
|
+
---
|
|
38
|
+
layout: appcast
|
|
39
|
+
---
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
You can also configure the pages using one of the templates with the following settings:
|
|
43
|
+
|
|
44
|
+
For `appcast`:
|
|
45
|
+
|
|
46
|
+
```yaml
|
|
47
|
+
---
|
|
48
|
+
layout: appcast
|
|
49
|
+
custom_feed_title: "My custom feed title"
|
|
50
|
+
custom_feed_description: "My custom feed description"
|
|
51
|
+
default_minimum_system_version: 10.10
|
|
52
|
+
language_code: "jp"
|
|
53
|
+
---
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
For `changelog`:
|
|
57
|
+
|
|
58
|
+
```yaml
|
|
59
|
+
---
|
|
60
|
+
layout: changelog
|
|
61
|
+
custom_title: "My Demo App's Changelog"
|
|
62
|
+
custom_css_class: "demp-app"
|
|
63
|
+
---
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
To add an entry, simply create a post with the following format:
|
|
67
|
+
|
|
68
|
+
```yaml
|
|
69
|
+
---
|
|
70
|
+
date: 2017-02-04 00:00:00 +0100
|
|
71
|
+
enclosure_url: https://someeclosure.example.com/mydemoapp.zip
|
|
72
|
+
minimum_system_version: 10.10
|
|
73
|
+
short_version_string: 1.5.0
|
|
74
|
+
size: 7340
|
|
75
|
+
subtitle: "Awesome Update Subtitle"
|
|
76
|
+
title: "Version 1.5.0"
|
|
77
|
+
version: 100
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
- *NEW* New feature goes here.
|
|
81
|
+
- *FIX* Bug fix goes here.
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## License
|
|
85
|
+
|
|
86
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
|
87
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: null
|
|
3
|
+
---
|
|
4
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
5
|
+
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
|
6
|
+
<channel>
|
|
7
|
+
<title>{% if page.custom_feed_title %}{{ page.custom_feed_title }}{% else %}{{ site.title }} Changelog{% endif %}</title>
|
|
8
|
+
<description>{% if page.custom_feed_description %}{{ page.custom_feed_description }}{% else %}Most recent {{ site.title }} releases{% endif %}</description>
|
|
9
|
+
<link>{{ site.url }}{{ site.baseurl }}/feed.xml</link>
|
|
10
|
+
<language>{% if page.language_code %}{{ page.language_code }}{% else %}en{% endif %}</language>
|
|
11
|
+
{% for post in site.posts %}
|
|
12
|
+
<item>
|
|
13
|
+
<title>{{ post.title | xml_escape }} ({{ post.version }})</title>
|
|
14
|
+
<description>{{ post.content | xml_escape }}</description>
|
|
15
|
+
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
|
|
16
|
+
<enclosure url="{{ post.enclosure_url }}" sparkle:version="{{ post.build }}" sparkle:shortVersionString="{{ post.short_version_string }}" length="{{ post.size }}" type="application/octet-stream"{% if post.dsa_signature %} sparkle:dsaSignature="{{ post.dsaSignature }}"{% endif %}/>
|
|
17
|
+
{% if post.minimum_system_version %}
|
|
18
|
+
<sparkle:minimumSystemVersion>{{ post.minimum_system_version }}</sparkle:minimumSystemVersion>
|
|
19
|
+
{% elsif page.default_minimum_system_version %}
|
|
20
|
+
<sparkle:minimumSystemVersion>{{ page.default_minimum_system_version }}</sparkle:minimumSystemVersion>
|
|
21
|
+
{% endif %}
|
|
22
|
+
</item>
|
|
23
|
+
{% endfor %}
|
|
24
|
+
</channel>
|
|
25
|
+
</rss>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: default
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<h1>{% if page.custom_title %}{{ page.custom_title }}{% else %}{{ site.title }} Changelog{% endif %}</h1>
|
|
6
|
+
|
|
7
|
+
<ol>
|
|
8
|
+
{% for post in site.posts %}
|
|
9
|
+
<li>
|
|
10
|
+
<h2>
|
|
11
|
+
{{ post.title }} ({{ post.version }})
|
|
12
|
+
<time>{{ post.date | date: "%b %-d, %Y" }}</time>
|
|
13
|
+
<small>
|
|
14
|
+
<a href="{{ post.url }}">Permalink</a>
|
|
15
|
+
</small>
|
|
16
|
+
</h2>
|
|
17
|
+
<p>{{ post.content }}</p>
|
|
18
|
+
</li>
|
|
19
|
+
{% endfor %}
|
|
20
|
+
</ol>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<style type="text/css">
|
|
5
|
+
body {
|
|
6
|
+
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
|
|
7
|
+
font-size: 0.9em;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
ol {
|
|
11
|
+
list-style-type: disc;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
main {
|
|
15
|
+
margin: auto;
|
|
16
|
+
max-width: 1024px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
h1 {
|
|
20
|
+
font-size: 1.45rem;
|
|
21
|
+
font-weight: 600;
|
|
22
|
+
letter-spacing: 0.1em;
|
|
23
|
+
margin: 2em 0;
|
|
24
|
+
text-transform: uppercase;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
h2 {
|
|
28
|
+
font-size: 1.3rem;
|
|
29
|
+
font-weight: 500;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
time {
|
|
33
|
+
font-size: 0.7em;
|
|
34
|
+
font-style: italic;
|
|
35
|
+
opacity: 0.6;
|
|
36
|
+
}
|
|
37
|
+
</style>
|
|
38
|
+
</head>
|
|
39
|
+
<body{% if page.custom_css_class %} class="{{ page.custom_css_class }}"{% endif %}>
|
|
40
|
+
<main>
|
|
41
|
+
{{ content }}
|
|
42
|
+
</main>
|
|
43
|
+
</body>
|
|
44
|
+
</html>
|
data/_layouts/post.html
ADDED
metadata
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: jekyll-theme-appcast
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Reda Lemeden
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2017-05-21 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: jekyll
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '3.4'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '3.4'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: bundler
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '1.12'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '1.12'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: rake
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - "~>"
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '10.0'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - "~>"
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '10.0'
|
|
55
|
+
description:
|
|
56
|
+
email:
|
|
57
|
+
- hello@redalemeden.com
|
|
58
|
+
executables: []
|
|
59
|
+
extensions: []
|
|
60
|
+
extra_rdoc_files: []
|
|
61
|
+
files:
|
|
62
|
+
- LICENSE.txt
|
|
63
|
+
- README.md
|
|
64
|
+
- _layouts/appcast.html
|
|
65
|
+
- _layouts/changelog.html
|
|
66
|
+
- _layouts/default.html
|
|
67
|
+
- _layouts/post.html
|
|
68
|
+
homepage: https://github.com/kaishin/jekyll-theme-appcast
|
|
69
|
+
licenses:
|
|
70
|
+
- MIT
|
|
71
|
+
metadata: {}
|
|
72
|
+
post_install_message:
|
|
73
|
+
rdoc_options: []
|
|
74
|
+
require_paths:
|
|
75
|
+
- lib
|
|
76
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
77
|
+
requirements:
|
|
78
|
+
- - ">="
|
|
79
|
+
- !ruby/object:Gem::Version
|
|
80
|
+
version: '0'
|
|
81
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
|
+
requirements:
|
|
83
|
+
- - ">="
|
|
84
|
+
- !ruby/object:Gem::Version
|
|
85
|
+
version: '0'
|
|
86
|
+
requirements: []
|
|
87
|
+
rubyforge_project:
|
|
88
|
+
rubygems_version: 2.5.1
|
|
89
|
+
signing_key:
|
|
90
|
+
specification_version: 4
|
|
91
|
+
summary: A Jekyll theme to generate macOS appcasts.
|
|
92
|
+
test_files: []
|