wiki

package
v1.17.0-dev Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2022 License: MIT Imports: 16 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddWikiPage

func AddWikiPage(doer *user_model.User, repo *repo_model.Repository, wikiName, content, message string) error

AddWikiPage adds a new wiki page with a given wikiPath.

func DeleteWiki added in v1.16.0

func DeleteWiki(repo *repo_model.Repository) error

DeleteWiki removes the actual and local copy of repository wiki.

func DeleteWikiPage

func DeleteWikiPage(doer *user_model.User, repo *repo_model.Repository, wikiName string) (err error)

DeleteWikiPage deletes a wiki page identified by its path.

func EditWikiPage

func EditWikiPage(doer *user_model.User, repo *repo_model.Repository, oldWikiName, newWikiName, content, message string) error

EditWikiPage updates a wiki page identified by its wikiPath, optionally also changing wikiPath.

func FilenameToName

func FilenameToName(filename string) (string, error)

FilenameToName converts a wiki filename to its corresponding page name.

func InitWiki

func InitWiki(repo *repo_model.Repository) error

InitWiki initializes a wiki for repository, it does nothing when repository already has wiki.

func NameToFilename

func NameToFilename(name string) string

NameToFilename converts a wiki name to its corresponding filename.

func NameToSubURL

func NameToSubURL(name string) string

NameToSubURL converts a wiki name to its corresponding sub-URL.

func NormalizeWikiName

func NormalizeWikiName(name string) string

NormalizeWikiName normalizes a wiki name

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL