Skip to content

Commit 596aa0d

Browse files
committed
atom feed
1 parent 96a419b commit 596aa0d

File tree

5 files changed

+24
-1
lines changed

5 files changed

+24
-1
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ gem 'yajl-ruby', '~> 0.8.2'
88
gem 'pygments.rb'
99
gem 'mime-types', '~> 1.16'
1010
gem 'coderay'
11+
gem 'builder'
1112

1213
group :development do
1314
gem 'adsf'

Gemfile.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ GEM
44
adsf (1.1.1)
55
rack (>= 1.0.0)
66
blankslate (2.1.2.4)
7+
builder (3.0.0)
78
coderay (1.0.6)
89
colored (1.2)
910
cri (2.3.0)
@@ -28,6 +29,7 @@ PLATFORMS
2829

2930
DEPENDENCIES
3031
adsf
32+
builder
3133
coderay
3234
kramdown (~> 0.13.2)
3335
mime-types (~> 1.16)

Rules

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ end
1616
compile '/CNAME/' do
1717
end
1818

19+
compile '/feed/' do
20+
filter :erb
21+
filter :kramdown
22+
filter :colorize_syntax,
23+
:colorizers => {:javascript => :pygmentsrb}
24+
end
25+
1926
compile '/changes/*/' do
2027
filter :erb
2128
filter :kramdown
@@ -41,6 +48,10 @@ route '/CNAME/' do
4148
'/CNAME'
4249
end
4350

51+
route '/feed' do
52+
'/changes.atom'
53+
end
54+
4455
route '*' do
4556
item.identifier + 'index.html'
4657
end

config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# A list of file extensions that nanoc will consider to be textual rather than
22
# binary. If an item with an extension not in this list is found, the file
33
# will be considered as binary.
4-
text_extensions: [ 'css', 'erb', 'haml', 'htm', 'html', 'js', 'less', 'markdown', 'md', 'php', 'rb', 'sass', 'scss', 'txt', 'xhtml', 'xml' ]
4+
text_extensions: [ 'css', 'erb', 'haml', 'htm', 'html', 'js', 'less', 'markdown', 'md', 'php', 'rb', 'sass', 'scss', 'txt', 'xhtml', 'xml', 'atom' ]
55

66
# The path to the directory where all generated files will be written to. This
77
# can be an absolute path starting with a slash, but it can also be path

content/feed.atom

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: GitHub API Changes
3+
is_hidden: true
4+
author_name: technoweenie
5+
author_uri: https://github.com/technoweenie
6+
layout: false
7+
---
8+
9+
<%= atom_feed :limit => 30 %>

0 commit comments

Comments
 (0)