Allow base path to be specified for wiki links.

This commit is contained in:
Tom Preston-Werner
2010-07-12 17:05:48 -07:00
parent 8f1100fbd6
commit baaa7c6b93
4 changed files with 27 additions and 8 deletions
+4
View File
@@ -231,6 +231,10 @@ Initialize the Gollum::Repo object:
wiki = Gollum::Wiki.new("my-gollum-repo.git")
# => <Gollum::Wiki>
By default, internal wiki links are all absolute from the root. To specify a different base path, you can send specify the `:base_path` option:
wiki = Gollum::Wiki.new("my-gollum-repo.git", :base_path => "/wiki")
Get the latest version of the given human or canonical page name:
page = wiki.page('page-name')