Skip to content

Commit

Permalink
Host documentation at gofreerange.com/recap/docs
Browse files Browse the repository at this point in the history
It's quite simple to upload the files to our server; in the virtual host
for Apache, I've added the following configuration:

    AliasMatch ^/recap/docs(.*)$ /home/freerange/docs/recap$1
    <Directory "/home/freerange/docs/recap">
      PassengerEnabled off
      AllowOverride all
      allow from all
      Options +Indexes
    </Directory>

Since with this change we wouldn't use github to host the docs, we don't
need the documentation in git, so I've also removed the files and
ignored the `doc` directory. If this is acceptable, we can also remove
the gh-pages branch.
  • Loading branch information
lazyatom committed May 4, 2012
1 parent 17e5c7c commit c3cd8c5
Show file tree
Hide file tree
Showing 21 changed files with 3 additions and 2,421 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -4,4 +4,5 @@
Gemfile.lock
pkg/*
/test-vm/share/*
capistrano.log
capistrano.log
doc
6 changes: 1 addition & 5 deletions Rakefile
Expand Up @@ -22,11 +22,7 @@ end

desc 'publish docs'
task :publish do
sha = `git ls-tree -d HEAD doc | awk '{print $3}'`.strip
commit = `echo "Publishing docs from master branch" | git commit-tree #{sha} -p refs/heads/gh-pages`.strip
`git update-ref refs/heads/gh-pages #{commit}`
puts "The gh-pages branch now points to the latest version of the docs."
puts "All that remains is for you to push gh-pages to github."
`scp -r doc/* gofreerange.com:/home/freerange/docs/recap`
end

RSpec::Core::RakeTask.new(:spec) do |t|
Expand Down
1 change: 0 additions & 1 deletion doc/index.html

This file was deleted.

223 changes: 0 additions & 223 deletions doc/recap.html

This file was deleted.

70 changes: 0 additions & 70 deletions doc/recap/recipes/rails.html

This file was deleted.

0 comments on commit c3cd8c5

Please sign in to comment.