Add wiki pages.

This commit is contained in:
takezoe
2013-05-02 09:17:14 +09:00
parent ac1b42eb5d
commit 613f03ef32
6 changed files with 47 additions and 14 deletions

View File

@@ -68,8 +68,12 @@ object WikiUtil {
}
}
// TODO
// def getPageList(owner: String, repository: String): List[WikiPageHistoryInfo]
def getPageList(owner: String, repository: String): List[String] = {
JGitUtil.getFileList(Git.open(getWikiRepositoryDir(owner, repository)), "master", ".")
.filter(_.name.endsWith(".md"))
.map(_.name.replaceFirst("\\.md$", ""))
.sortBy(x => x)
}
// TODO
//def getPageHistory(owner: String, repository: String, pageName: String): List[WikiPageHistoryInfo]