Skip to content
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Make CNAME a proper nanoc item #115

Merged
merged 1 commit into from
Jun 24, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ task :publish => [:clean] do

sh "nanoc compile"

# this should not be necessary, but I can't figure out how to
# just keep a goddamn static file in the root with nanoc
File.open("output/CNAME", 'w+') do |f|
f.puts("developer.github.com")
end

ENV['GIT_DIR'] = File.expand_path(`git rev-parse --git-dir`.chomp)
old_sha = `git rev-parse refs/remotes/origin/gh-pages`.chomp
Dir.chdir('output') do
Expand Down
7 changes: 7 additions & 0 deletions Rules
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
compile '/static/*' do
end

compile '/CNAME/' do
end

compile '*' do
filter :erb
filter :kramdown
Expand All @@ -25,6 +28,10 @@ route '/static/*' do
item.identifier[7..-2]
end

route '/CNAME/' do
'/CNAME'
end

route '*' do
item.identifier + 'index.html'
end
Expand Down
1 change: 1 addition & 0 deletions content/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
developer.github.com
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy