Merge: lib/github: implements caching to maximize rate limit.
[nit.git] / contrib / nitiwiki / src / wiki_base.nit
index 2c0276b..3dec44f 100644 (file)
@@ -54,6 +54,7 @@ class Nitiwiki
                sys.system "rsync -vr --delete {root}/ {config.rsync_dir}"
        end
 
+       # Pull data from git repository.
        fun fetch do
                sys.system "git pull {config.git_origin} {config.git_branch}"
        end
@@ -116,7 +117,6 @@ class Nitiwiki
                while not pipe.eof do
                        var file = pipe.read_line
                        if file == "" then break # last line
-                       file = file.substring(0, file.length - 1) # strip last oef
                        var name = file.basename(".md")
                        if name == "header" or name == "footer" or name == "menu" then continue
                        files.add file
@@ -212,6 +212,9 @@ class Nitiwiki
                return path.simplify_path
        end
 
+       # Transform an id style name into a pretty printed name.
+       #
+       # Used to translate ids in beautiful page names.
        fun pretty_name(name: String): String do
                name = name.replace("_", " ")
                name = name.capitalized