Documentation ¶
Index ¶
- func AddWikiPage(doer *models.User, repo *models.Repository, wikiName, content, message string) error
- func DeleteWikiPage(doer *models.User, repo *models.Repository, wikiName string) (err error)
- func EditWikiPage(doer *models.User, repo *models.Repository, ...) error
- func FilenameToName(filename string) (string, error)
- func InitWiki(repo *models.Repository) error
- func NameToFilename(name string) string
- func NameToSubURL(name string) string
- func NormalizeWikiName(name string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddWikiPage ¶
func AddWikiPage(doer *models.User, repo *models.Repository, wikiName, content, message string) error
AddWikiPage adds a new wiki page with a given wikiPath.
func DeleteWikiPage ¶
DeleteWikiPage deletes a wiki page identified by its path.
func EditWikiPage ¶
func EditWikiPage(doer *models.User, repo *models.Repository, oldWikiName, newWikiName, content, message string) error
EditWikiPage updates a wiki page identified by its wikiPath, optionally also changing wikiPath.
func FilenameToName ¶
FilenameToName converts a wiki filename to its corresponding page name.
func InitWiki ¶
func InitWiki(repo *models.Repository) error
InitWiki initializes a wiki for repository, it does nothing when repository already has wiki.
func NameToFilename ¶
NameToFilename converts a wiki name to its corresponding filename.
func NameToSubURL ¶
NameToSubURL converts a wiki name to its corresponding sub-URL.
func NormalizeWikiName ¶
NormalizeWikiName normalizes a wiki name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.