nitiwiki: add github url for last changes and edit mode
[nit.git] / contrib / nitiwiki / src / wiki_base.nit
index d53a758..09b499b 100644 (file)
@@ -755,6 +755,14 @@ class WikiConfig
                return value_or_default("wiki.auto_summary", "true") == "true"
        end
 
+       # Automatically add breadcrumbs.
+       #
+       # * key: `wiki.auto_breadcrumbs`
+       # * default: `true`
+       var auto_breadcrumbs: Bool is lazy do
+               return value_or_default("wiki.auto_breadcrumbs", "true") == "true"
+       end
+
        # Sidebar position.
        #
        # Position of the sidebar between `left`, `right` and `none`. Any other value
@@ -811,6 +819,18 @@ class WikiConfig
        # * key: `wiki.git_branch`
        # * default: `master`
        var git_branch: String is lazy do return value_or_default("wiki.git_branch", "master")
+
+       # URL to source versionning used to display last changes
+       #
+       # * key: `wiki.last_changes`
+       # * default: ``
+       var last_changes: String is lazy do return value_or_default("wiki.last_changes", "")
+
+       # URL to source edition.
+       #
+       # * key: `wiki.edit`
+       # * default: ``
+       var edit: String is lazy do return value_or_default("wiki.edit", "")
 end
 
 # WikiSection custom configuration.