Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
let GitHub pages use ./htmls as the source directory
  • Loading branch information
ocha- committed Aug 18, 2013
commit 6936c628eca42a51f540d1682c4370bb97015557
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ Running the site locally
$ git clone https://github.com/ruby-hacking-guide/ruby-hacking-guide.github.com
$ gem install jekyll
$ gem install RedCloth
$ jekyll serve # this compiles files and starts a server on localhost:4000.
$ jekyll serve --config _config.local.yml # this compiles files and starts a server on localhost:4000.
```


For Bundler users
```sh
$ git clone https://github.com/ruby-hacking-guide/ruby-hacking-guide.github.com
$ bundle install
$ jekyll serve # this compiles files and starts a server on localhost:4000.
$ jekyll serve --config _config.local.yml # this compiles files and starts a server on localhost:4000.
```


Expand Down
4 changes: 4 additions & 0 deletions _config.htmls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
redcloth:
hard_breaks: false
exclude: ["ebooks", "script", "original_repo", "htmls", "Gemfile", "Gemfile.lock", "dictionary.txt", "README.md"]
destination: htmls
3 changes: 3 additions & 0 deletions _config.local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
redcloth:
hard_breaks: false
exclude: ["ebooks", "script", "original_repo", "htmls", "Gemfile", "Gemfile.lock", "dictionary.txt", "README.md"]
3 changes: 2 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
redcloth:
hard_breaks: false
exclude: ["ebooks", "script", "original_repo"]
exclude: ["ebooks", "script", "original_repo", "htmls", "Gemfile", "Gemfile.lock", "dictionary.txt", "README.md"]
source: htmls
2 changes: 1 addition & 1 deletion script/publish
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ require 'date'
require 'fileutils'

today = Date.today
system("jekyll build")
system("jekyll build --config _config.local.yml")

GUIDE_DIR = File.expand_path("../..", __FILE__)
ORIGINAL_DIR = "#{GUIDE_DIR}/_site"
Expand Down