Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
caixw committed Jul 8, 2016
2 parents df79c73 + 75d376f commit cd87c66
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const (
// 版本号
//
// 版本号按照 http://semver.org 中的规则
Version = "2.15.3+20160707"
Version = "2.15.5+20160708"

// 程序的正式名称
Name = "apidoc"
Expand All @@ -26,7 +26,7 @@ const (
RepoURL = "https://github.com/caixw/apidoc"

// 官网
OfficialURL = "https://caixw.github.io/apidoc"
OfficialURL = "http://apidoc.tools"

// 配置文件名称。
ConfigFilename = ".apidoc.json"
Expand Down Expand Up @@ -54,6 +54,7 @@ func Message(out int, color colors.Color, prefix string, v ...interface{}) {
colors.Print(out, colors.Default, colors.Default, v...)
}

// Messageln 向终端输出不同颜色的提示信息,带换行符
func Messageln(out int, color colors.Color, prefix string, v ...interface{}) {
colors.Print(out, color, colors.Default, prefix)
colors.Println(out, colors.Default, colors.Default, v...)
Expand Down
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type config struct {
type syntaxWriter struct {
}

func (w *syntaxWriter) Write(bs []byte) (size int, err error) {
func (w *syntaxWriter) Write(bs []byte) (int, error) {
app.Error(string(bs))
return len(bs), nil
}
Expand Down
2 changes: 1 addition & 1 deletion output/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func buildHTMLPage(docs *doc.Doc, opt *Options) *htmlPage {
// 编译模板
//
// tplDir 模板所在的路径,其目录下所有的 .html 文件会被编译,不查找子目录。
// 若 tplDir 这空,则使用系统默认的模板。
// 若 tplDir 为空,则使用系统默认的模板。
func compileHTMLTemplate(tplDir string) (*template.Template, error) {
t := template.New("html").
Funcs(template.FuncMap{
Expand Down

0 comments on commit cd87c66

Please sign in to comment.