wiki

package
v1.14.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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

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

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

func FilenameToName(filename string) (string, error)

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

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