Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added find rake task, for grepping source files

  • Loading branch information...
commit 9a9f92e0934d6dddea4448cc259541c84955c686 1 parent 528845e
@akollegger akollegger authored
Showing with 16 additions and 4 deletions.
  1. +10 −4 README.markdown
  2. +6 −0 Rakefile
View
14 README.markdown
@@ -30,16 +30,21 @@ Otherwise you'll need to install bundler, then ask it to install some extra thin
Phew. OK, now you really should be ready.
-### How-to
+## How-to
The project uses a ruby `rakefile` to do perform operations. A `rakefile` is like the
classic `C` `makefile` but for ruby.
+### Raking the website:
- create a blog post: `rake new_post["title"]`
-- create a page: `rake new_page[super-awesome/page.html]`
+- create a page: `rake new_page[super-awesome]`
- preview the site: `rake preview`
+- find files containing text: `rake find["some interesting text"]
+- all of rake's tasks: `rake -T`
-Staying up to date, or publishing your changes is done with `git`:
+Web pages are just partial, but normal, html. Or [markdown](http://daringfireball.net/projects/markdown/).
+
+### git'ing things done:
- update local: `git pull origin master`
- commit local changes: `git commit -am 'hooray for updates'`
- share changes: `git push origin master`
@@ -54,8 +59,9 @@ See [Octopress Blogging](http://octopress.org/docs/blogging/) for details.
- [./source](neo4j-website/tree/master/source) : raw html, markup, css, images and javascript files. edit these
- [./public](neo4j-website/tree/master/public) : the generated website. **do not edit**
+______________________
-## What is Octopress?
+### What is Octopress?
Octopress is [Jekyll](https://github.com/mojombo/jekyll) blogging at its finest.
View
6 Rakefile
@@ -375,3 +375,9 @@ task :list do
puts "Tasks: #{(Rake::Task.tasks - [Rake::Task[:list]]).join(', ')}"
puts "(type rake -T for more detail)\n\n"
end
+
+# usage rake find['some text to look for']
+desc "Find files containing text in #{source_dir}"
+task :find, :what do |t, args|
+ system "find #{source_dir} -type f -print0 | xargs -0 grep -l #{args.what}"
+end
Please sign in to comment.
Something went wrong with that request. Please try again.