setting

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2014 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WIKINAME_ARGNAME = "wikiname"
	WIKINAME_USAGE   = "Name of wiki."
	WIKINAME_DEFAULT = "Syaro Wiki"
)
View Source
const (
	WIKIROOT_ARGNAME = "wikiroot"
	WIKIROOT_USAGE   = "Root folder of wiki."
	WIKIROOT_DEFAULT = "./"
)
View Source
const (
	SYARO_DIR_ARGNAME = "syaro-dir"
	SYARO_DIR_USAGE   = "Directory for HTML, css, js etc."
	SYARO_DIR_DEFAULT = ""
)
View Source
const (
	PORT_ARGNAME = "port"
	PORT_USAGE   = "Port."
	PORT_DEFAULT = 8080
)
View Source
const (
	URL_PREFIX_ARGNAME = "url-prefix"
	URL_PREFIX_USAGE   = "URL prefix (ex. if prefix is syarowiki, URL is localhost:PORT/syarowiki/)."
	URL_PREFIX_DEFAULT = ""
)
View Source
const (
	FCGI_ARGNAME = "fcgi"
	FCGI_USAGE   = "If true, syaro runs on fast cgi mode."
	FCGI_DEFAULT = false
)
View Source
const (
	MATHJAX_ARGNAME = "mathjax"
	MATHJAX_USAGE   = "Enable MathJax (Internet connection is required)"
	MATHJAX_DEFAULT = false
)
View Source
const (
	HIGHLIGHT_ARGNAME = "highlight"
	HIGHLIGHT_USAGE   = "Enable syntax highlighting in <code> (Internet connection is required)"
	HIGHLIGHT_DEFAULT = false
)
View Source
const (
	READONLY_ARGNAME = "readonly"
	READONLY_USAGE   = "Enable readonly mode."
	READONLY_DEFAULT = false
)

TODO

View Source
const (
	VERBOSE_ARGNAME  = "verbose"
	VERBOSE_ARGNAMES = "v"
	VERBOSE_USAGE    = "Verbose output."
	VERBOSE_DEFAULT  = false
)

Variables

View Source
var (
	WikiName  string
	WikiRoot  string
	SyaroDir  string
	Port      int
	UrlPrefix string
	FCGI      bool
	MathJax   bool
	Highlight bool
	Verbose   bool
)

TODO wikiname

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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