README.md in gollum-lib-1.0.5 vs README.md in gollum-lib-1.0.6
- old
+ new
@@ -200,9 +200,19 @@
```ruby
wiki.delete_page(page, commit)
```
+Register or unregister a hook to be called after a page commit:
+
+```ruby
+Gollum::Hook.register(:post_commit, :hook_id) do |committer, sha1|
+ # Your code here
+end
+
+Gollum::Hook.unregister(:post_commit, :hook_id)
+```
+
## WINDOWS FILENAME VALIDATION
Note that filenames on windows must not contain any of the following characters `\ / : * ? " < > |`. See [this support article](http://support.microsoft.com/kb/177506) for details.
## CONTRIBUTE