Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Make CNAME a proper nanoc item#115

Merged
pengwynn merged 1 commit intogithub:masterfromdenisdefreyne:master
Jun 24, 2012
Merged
Show file tree
Hide file tree
Changes fromall 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 deletionsRakefile
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionsRules
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionscontent/CNAME
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
developer.github.com

[8]ページ先頭

©2009-2025 Movatter.jp