Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the Rakefile to serve with Jekyll #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# PNWScala

This is the code for the PNWScala website. It's just raw code, at the moment. We should probably use a static site generator at some point. One day....
This is the code for the PNWScala website.

## Install dependencies

ruby 2.x
gem install jekyll

To preview the website, run `rake serve`. To deploy, run `rake deploy`.

Expand Down
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ task :deploy do
system "s3cmd sync #{DIR}/src/site/ s3://pnwscala.org"
end

desc "Serve the website using a local Python server"
desc "Serve the website using a local Jekyll server"
task :serve do
print "Serving the site from #{DIR}/src/site/\n"
print " use ctrl-C to stop\n"
Dir.chdir("src/site") do
system "python -m SimpleHTTPServer"
system "jekyll serve"
end
end

Expand Down
2 changes: 1 addition & 1 deletion src/site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<head>
</head>
<body>
The site is actually <a href="/2014/index.html">here</a>!
The site is actually <a href="/2016/index.html">here</a>!
</body>
</html>