Skip to content

Commit

Permalink
Cleaning up documentation a little.
Browse files Browse the repository at this point in the history
  • Loading branch information
icco committed Mar 6, 2011
1 parent f1c93d1 commit 099cbc0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 24 deletions.
17 changes: 7 additions & 10 deletions README.md
@@ -1,8 +1,6 @@
# Resume

This started as just a simple place to store a markdown format of my resume,
and now it's turned into an easy way to host your resume using [sinatra][s],
[github-pages][gp] or [Heroku][h].
This started as just a simple place to store a markdown format of my resume, and now it's turned into an easy way to host your resume using [sinatra][s], [github-pages][gp] or [Heroku][h].

[gp]: http://pages.github.com/
[h]: http://heroku.com/
Expand All @@ -14,11 +12,15 @@ and now it's turned into an easy way to host your resume using [sinatra][s],
3. Modify config.yaml so that the data represents you, not icco.
4. Edit views/style.less to make your resume look pretty.
5. Install the gems [sinatra][s], [github-markup][gm], [git][g], [rack-test][rt], [heroku][h] and [less][l]

* install the correct parser for [github-markup][gm], such as [rdiscount][r] for [Markdown][md].

6. type `rake local` or `./resume.rb` to run locally.
7. To deploy to Heroku

* Run `heroku create`
* `rake deploy` to push your resume to the internet.

8. To deploy to [github-pages][gp], run `rake github`.

[g]: http://github.com/schacon/ruby-git
Expand All @@ -31,17 +33,12 @@ and now it's turned into an easy way to host your resume using [sinatra][s],

## Other cool stuff

My idea is pretty simple, I just wanted a plain text resume and an easy way to
host it. [Dan Mayer][dm] took this idea and ran with it. He made a lot of
really cool changes, and although I love simplicity, what I really love is how
much he abstracted my original design. You should really check out his resume,
and some of the forks of it.
My idea is pretty simple, I just wanted a plain text resume and an easy way to host it. [Dan Mayer][dm] took this idea and ran with it. He made a lot of really cool changes, and although I love simplicity, what I really love is how much he abstracted my original design. You should really check out his resume, and some of the forks of it.

[dm]: http://github.com/danmayer/Resume

## License

resume.md is property of Nathaniel "Nat" Welch. You are welcome to use it as a
base structure for your resume, but don't forget, you are not him.
resume.md is property of Nathaniel "Nat" Welch. You are welcome to use it as a base structure for your resume, but don't forget, you are not him.

The rest of the code is licensed CC-GPL. Remember sharing is caring.
5 changes: 2 additions & 3 deletions Rakefile
@@ -1,3 +1,5 @@
# The Rakefile does all of the real work.

task :default => [:github, :heroku]

desc "Run your resume locally."
Expand All @@ -7,8 +9,6 @@ end

desc "Deploy to Heroku."
task :heroku do
#`git push heroku master`

puts "Currently heroku deployment is broken.\n"
end

Expand Down Expand Up @@ -60,4 +60,3 @@ task :github do

puts '--> Commit and Push successful.'
end

4 changes: 1 addition & 3 deletions config.ru
@@ -1,5 +1,3 @@

## Just run the application
require 'resume'
require './resume'
run Sinatra::Application

13 changes: 5 additions & 8 deletions resume.rb
Expand Up @@ -10,12 +10,7 @@
end

# Check all of the gems we need are there.
[
"sinatra",
"less",
"github/markup",
"yaml"
].each {|gem|
[ "sinatra", "less", "github/markup", "yaml" ].each {|gem|
begin
require gem
rescue LoadError
Expand All @@ -24,10 +19,12 @@
end
}

# Include our configurations from config.yaml
configure do
set :config, YAML.load_file('config.yaml')['user_config']
end

# Render the main page.
get '/index.html' do
rfile = settings.config['file']
name = settings.config['name']
Expand All @@ -42,16 +39,17 @@
}
end

# We do this for our static site rendering.
get '/' do
redirect '/index.html'
end

# For the plain text version of our resumes
get '/resume.txt' do
content_type 'text/plain', :charset => 'utf-8'
File.read(settings.config['file'])
end


get '/style.css' do
content_type 'text/css', :charset => 'utf-8'
less :style
Expand All @@ -61,4 +59,3 @@
content_type 'text/css', :charset => 'utf-8'
less :print
end

0 comments on commit 099cbc0

Please sign in to comment.