{"modulePath":"github.com/RedAFD/code-core","version":"v1.14.0-rc8","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package wiki\n\n## Functions\n\n```go\nfunc AddWikiPage(doer *models.User, repo *models.Repository, wikiName, content, message string) error\n```\nAddWikiPage adds a new wiki page with a given wikiPath.\n\n```go\nfunc DeleteWikiPage(doer *models.User, repo *models.Repository, wikiName string) (err error)\n```\nDeleteWikiPage deletes a wiki page identified by its path.\n\n```go\nfunc EditWikiPage(doer *models.User, repo *models.Repository, oldWikiName, newWikiName, content, message string) error\n```\nEditWikiPage updates a wiki page identified by its wikiPath, optionally also changing wikiPath.\n\n```go\nfunc FilenameToName(filename string) (string, error)\n```\nFilenameToName converts a wiki filename to its corresponding page name.\n\n```go\nfunc InitWiki(repo *models.Repository) error\n```\nInitWiki initializes a wiki for repository, it does nothing when repository already has wiki.\n\n```go\nfunc NameToFilename(name string) string\n```\nNameToFilename converts a wiki name to its corresponding filename.\n\n```go\nfunc NameToSubURL(name string) string\n```\nNameToSubURL converts a wiki name to its corresponding sub-URL.\n\n```go\nfunc NormalizeWikiName(name string) string\n```\nNormalizeWikiName normalizes a wiki name\n\n","path":"github.com/RedAFD/code-core/services/wiki","name":"wiki","synopsis":"","isRedistributable":true}
