jekyll-octopod 0.18.2 → 0.20.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 +4 -4
- data/assets/_config.yml +47 -0
- data/assets/_config.yml.sample +0 -7
- data/bin/octopod +13 -0
- data/lib/jekyll/octopod_filters.rb +0 -25
- data/lib/jekyll/update_config.rb +6 -11
- data/lib/octopod/version.rb +2 -2
- metadata +2 -4
- data/assets/feed.m4a.json +0 -5
- data/assets/feed.mp3.json +0 -5
- data/assets/feed.ogg.json +0 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: af7f39feb92cfb4b4615bc3d7c4122cb463814e37bf8991c3c553784cfa06268
|
|
4
|
+
data.tar.gz: b0d6ebb6e48e8c476526dfb21934efc0ac773e528c48ce23464ee1afeade4e25
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2ae85cc983a4661b5a6cf201cae6bd7c9708ee8c3a15d15134db3947b77ac3af65c0ca584523242f791706852bc3534a087f8eefc9b636543b9dede351a5baaf
|
|
7
|
+
data.tar.gz: 771baf577a1ed85e15db658bfa7c87e01890a5bffaf67708b2d4e5bbda029257cb9faa17421d7ef88627226b75328d329f844ade168b33c87839c3d6ad894dc6
|
data/assets/_config.yml
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# You have to configure this ###################################################
|
|
2
|
+
title: Octopod
|
|
3
|
+
# You should configure this ####################################################
|
|
4
|
+
url: http://localhost:4000
|
|
5
|
+
subtitle: Static Site Podcast Publishing for Geeks
|
|
6
|
+
description: My super duper cool podcast.
|
|
7
|
+
author: Uncle Octopod
|
|
8
|
+
email: octopod@example.com
|
|
9
|
+
keywords: [octopod, podcast, magic]
|
|
10
|
+
itunes_categories: [Technology]
|
|
11
|
+
# additional_feeds:
|
|
12
|
+
# itunes: http://itunes.apple.com/de/podcast/podcast_name/id42424242
|
|
13
|
+
# torrent_m4a: http://bitlove.org/example_user/example_podcast_m4a/feed
|
|
14
|
+
# torrent_mp3: http://bitlove.org/example_user/example_podcast_mp3/feed
|
|
15
|
+
episodes_per_feed_page: 100
|
|
16
|
+
## Rsync Deploy config #########################################################
|
|
17
|
+
### Be sure your public key is listed in your server's ~/.ssh/authorized_keys
|
|
18
|
+
### file.
|
|
19
|
+
ssh_host: user@host.org
|
|
20
|
+
ssh_port: 22
|
|
21
|
+
document_root: /path/to/your/htdocs/
|
|
22
|
+
rsync_delete: true
|
|
23
|
+
# You can configure this #######################################################
|
|
24
|
+
twitter_nick: my_twitter_handle
|
|
25
|
+
language: en
|
|
26
|
+
explicit: 'no' # 'yes'/'no'/clean
|
|
27
|
+
license: CC BY 4.0
|
|
28
|
+
license_url: https://creativecommons.org/licenses/by/4.0/
|
|
29
|
+
license_image_url: https://i.creativecommons.org/l/by/4.0/88x31.png
|
|
30
|
+
## Flattr ######################################################################
|
|
31
|
+
flattr_uid: # Flattr will not be used unless this is set
|
|
32
|
+
flattr_button: compact # compact | default
|
|
33
|
+
flattr_mode: auto # auto | manual(default)
|
|
34
|
+
flattr_popout: 1 # 1 | 0 (show popout when hovering mouse over button)
|
|
35
|
+
flattr_language: en_GB # available languages - https://api.flattr.com/rest/v2/languages.txt
|
|
36
|
+
flattr_category: audio # available categories - https://api.flattr.com/rest/v2/categories.txt
|
|
37
|
+
## Disqus comments #############################################################
|
|
38
|
+
disqus_shortname: # Disqus will not be used unless this is set
|
|
39
|
+
disqus_developer: 0 # 1 / 0
|
|
40
|
+
## Feed links ###########################################################
|
|
41
|
+
itunes_url: https://itunes.apple.com/at/podcast/myname/id#myid#
|
|
42
|
+
bitlove_url: https://bitlove.org/myaccount
|
|
43
|
+
fyyd_url: https://fyyd.de/podcast/myaccount/myid
|
|
44
|
+
gpodder_url: https://gpodder.net/podcast/mypodcast
|
|
45
|
+
|
|
46
|
+
gems: [jekyll-octopod]
|
|
47
|
+
theme: jekyll-bootflat
|
data/assets/_config.yml.sample
CHANGED
|
@@ -9,9 +9,6 @@ subtitle: Static Site Podcast Publishing for Geeks
|
|
|
9
9
|
description: My super duper cool podcast.
|
|
10
10
|
author: Uncle Octopod
|
|
11
11
|
|
|
12
|
-
### author_url: This is the URL of a site owned by the author (see https://jsonfeed.org/version/1)
|
|
13
|
-
author_url: "http://your.fancy.hosting/"
|
|
14
|
-
|
|
15
12
|
email: octopod@example.com
|
|
16
13
|
keywords: [octopod, podcast, magic]
|
|
17
14
|
itunes_categories: [Technology]
|
|
@@ -49,10 +46,6 @@ itunes_url: https://itunes.apple.com/at/podcast/myname/id232323
|
|
|
49
46
|
# torrent_m4a: http://bitlove.org/example_user/example_podcast_m4a/feed
|
|
50
47
|
# torrent_mp3: http://bitlove.org/example_user/example_podcast_mp3/feed
|
|
51
48
|
|
|
52
|
-
### Disqus comments
|
|
53
|
-
disqus_shortname: # Disqus will not be used unless this is set
|
|
54
|
-
disqus_developer: 0 # 1 | 0
|
|
55
|
-
|
|
56
49
|
### Isso comments
|
|
57
50
|
use_isso: "no" # "no" | "yes"
|
|
58
51
|
|
data/bin/octopod
CHANGED
|
@@ -420,6 +420,19 @@ if ARGV.size > 0 && (ARGV[0] == 'episode' || ARGV[0] == 'deploy' || ARGV[0] == '
|
|
|
420
420
|
puts "===== ... done ===== ", ""
|
|
421
421
|
end
|
|
422
422
|
|
|
423
|
+
# As of jekyll-octopod 0.19.0, JSON Feed support is gone outright - not moved to the theme
|
|
424
|
+
# gem, just removed (no real podcast client ever consumed it, and a since-fixed bug in this
|
|
425
|
+
# gem's own :after_init hook meant it silently never even built). Any 'feed.*.json' marker
|
|
426
|
+
# file left over from an older site is now genuinely dead: nothing generates its content, and
|
|
427
|
+
# jekyll-octopod-bulma's sidebar no longer links to it. Removed the same way theme-served
|
|
428
|
+
# files are removed above.
|
|
429
|
+
found_json_feeds = Dir.glob(File.join(PWD, 'feed.*.json'))
|
|
430
|
+
unless found_json_feeds.empty?
|
|
431
|
+
puts "", "===== Removing feed.*.json marker files (JSON Feed support was removed) ====="
|
|
432
|
+
found_json_feeds.each { |path| remove_theme_served_path(path) }
|
|
433
|
+
puts "===== ... done ===== ", ""
|
|
434
|
+
end
|
|
435
|
+
|
|
423
436
|
puts "", "===== Pointing Gemfile/_config.yml at jekyll-octopod-bulma ... ====="
|
|
424
437
|
update_gemfile_and_theme_config
|
|
425
438
|
puts "===== ... done ===== ", ""
|
|
@@ -222,31 +222,6 @@ module Jekyll
|
|
|
222
222
|
"@#{user}@#{uri.host}"
|
|
223
223
|
end
|
|
224
224
|
|
|
225
|
-
# Generates the config for disqus integration
|
|
226
|
-
# If a page object is given, it generates the config variables only for this
|
|
227
|
-
# page. Otherwise it generate only the global config variables.
|
|
228
|
-
#
|
|
229
|
-
# {{ site | disqus_config }}
|
|
230
|
-
# {{ site | disqus_config:page }}
|
|
231
|
-
def disqus_config(site, page = nil)
|
|
232
|
-
if page
|
|
233
|
-
disqus_vars = {
|
|
234
|
-
'disqus_identifier' => page['url'],
|
|
235
|
-
'disqus_url' => "#{site['url']}#{page['url']}",
|
|
236
|
-
'disqus_category_id' => page['disqus_category_id'] || site['disqus_category_id'],
|
|
237
|
-
'disqus_title' => j(page['title'] || site['site'])
|
|
238
|
-
}
|
|
239
|
-
else
|
|
240
|
-
disqus_vars = {
|
|
241
|
-
'disqus_developer' => site['disqus_developer'],
|
|
242
|
-
'disqus_shortname' => site['disqus_shortname']
|
|
243
|
-
}
|
|
244
|
-
end
|
|
245
|
-
|
|
246
|
-
disqus_vars.delete_if { |_, v| v.nil? }
|
|
247
|
-
disqus_vars.map { |k, v| "var #{k} = '#{v}';" }.compact.join("\n")
|
|
248
|
-
end
|
|
249
|
-
|
|
250
225
|
# Returns the hex-encoded hash value of a given string. The optional
|
|
251
226
|
# second argument defines the length of the returned string.
|
|
252
227
|
#
|
data/lib/jekyll/update_config.rb
CHANGED
|
@@ -5,19 +5,14 @@ module Jekyll
|
|
|
5
5
|
site.config.update(
|
|
6
6
|
'episode_feed_formats' => feeds.map { |f| f.match(/episodes\.(\w{3,4})\.rss/)[1] }
|
|
7
7
|
)
|
|
8
|
-
jsonfeeds = Dir["feed.{???,????}.json"]
|
|
9
|
-
site.config.update(
|
|
10
|
-
'json_feed_formats' => jsonfeeds.map { |f| f.match(/feed\.(\w{3,4})\.json/)[1] }
|
|
11
|
-
)
|
|
12
8
|
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
#
|
|
16
|
-
# reader from also turning them into pages, which would otherwise
|
|
9
|
+
# This marker file exists only so the scan above can detect which formats to generate;
|
|
10
|
+
# PagedFeedPageGenerator creates the actual pages at these exact paths. Excluding it here
|
|
11
|
+
# keeps Jekyll's normal reader from also turning it into a page, which would otherwise
|
|
17
12
|
# collide with the generator's output at the same destination.
|
|
18
|
-
# site.exclude (not site.config['exclude']) is what Reader actually
|
|
19
|
-
#
|
|
20
|
-
site.exclude += feeds
|
|
13
|
+
# site.exclude (not site.config['exclude']) is what Reader actually consults, and it's
|
|
14
|
+
# copied from config before this hook runs.
|
|
15
|
+
site.exclude += feeds
|
|
21
16
|
end
|
|
22
17
|
end
|
|
23
18
|
end
|
data/lib/octopod/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-octopod
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.20.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Arne Eilermann
|
|
@@ -105,6 +105,7 @@ extra_rdoc_files: []
|
|
|
105
105
|
files:
|
|
106
106
|
- README.md
|
|
107
107
|
- Rakefile
|
|
108
|
+
- assets/_config.yml
|
|
108
109
|
- assets/_config.yml.sample
|
|
109
110
|
- assets/_posts/2016-03-22-episode0.md
|
|
110
111
|
- assets/_sass/_overrides.scss
|
|
@@ -114,9 +115,6 @@ files:
|
|
|
114
115
|
- assets/episodes/episode0.m4a
|
|
115
116
|
- assets/episodes/episode0.mp3
|
|
116
117
|
- assets/episodes/episode0.ogg
|
|
117
|
-
- assets/feed.m4a.json
|
|
118
|
-
- assets/feed.mp3.json
|
|
119
|
-
- assets/feed.ogg.json
|
|
120
118
|
- assets/general_feed.xml
|
|
121
119
|
- assets/imprint.md
|
|
122
120
|
- assets/index.md
|
data/assets/feed.m4a.json
DELETED
data/assets/feed.mp3.json
DELETED