diff --git a/base/web/serve.go b/base/web/serve.go index f1bc7cf3..228bef95 100644 --- a/base/web/serve.go +++ b/base/web/serve.go @@ -10,6 +10,7 @@ import ( ice "shylinux.com/x/icebergs" "shylinux.com/x/icebergs/base/aaa" "shylinux.com/x/icebergs/base/cli" + "shylinux.com/x/icebergs/base/ctx" "shylinux.com/x/icebergs/base/mdb" "shylinux.com/x/icebergs/base/tcp" kit "shylinux.com/x/toolkits" @@ -296,5 +297,11 @@ func init() { "/require/": {Name: "/require/", Help: "公有云", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { _share_repos(m, path.Join(arg[0], arg[1], arg[2]), arg[3:]...) }}, + "/help/": {Name: "/help/", Help: "帮助", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { + if len(arg) > 0 && arg[0] != ctx.ACTION { + arg[0] = "src/help/" + arg[0] + } + m.Cmdy("web.chat./cmd/", arg) + }}, }}) } diff --git a/core/chat/action.go b/core/chat/action.go index d5057399..de0506ac 100644 --- a/core/chat/action.go +++ b/core/chat/action.go @@ -149,7 +149,9 @@ const ACTION = "action" func init() { Index.Merge(&ice.Context{Configs: map[string]*ice.Config{ - ACTION: {Name: ACTION, Help: "应用", Value: kit.Data(DOMAIN, kit.Dict())}, + ACTION: {Name: ACTION, Help: "应用", Value: kit.Data( + MENUS, `[["help", "tutor", "manual", "service", "devops", "refer"]]`, + )}, }, Commands: map[string]*ice.Command{ ice.CTX_INIT: {Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { for _, cmd := range []string{ diff --git a/misc/git/git.shy b/misc/git/git.shy index b211dc03..05bac193 100644 --- a/misc/git/git.shy +++ b/misc/git/git.shy @@ -3,6 +3,7 @@ refer ` 官网 https://git-scm.com/ 文档 https://git-scm.com/docs 源码 https://github.com/git/git +私服 https://github.com/go-gitea/gitea ` chapter "源码"