app/helpers/search_helper.rb
# Autocomplete results for internal help pages
Autocomplete results for internal help pages
Autocomplete results for internal help pages
def help_autocomplete
    [
      { label: "help: API的帮助",           url: help_page_path("api", "README") },
      { label: "help: Markdown的帮助",      url: help_page_path("markdown", "markdown") },
      { label: "help: 权限的帮助",   url: help_page_path("permissions", "permissions") },
      { label: "help: 公共访问的帮助", url: help_page_path("public_access", "public_access") },
      { label: "help: Rake任务帮助",    url: help_page_path("raketasks", "README") },
      { label: "help: SSH密钥的帮助",      url: help_page_path("ssh", "README") },
      { label: "help: 系统钩子帮助",  url: help_page_path("system_hooks", "system_hooks") },
      { label: "help: Web 钩子帮助",     url: help_page_path("web_hooks", "web_hooks") },
      { label: "help: 工作流帮助",      url: help_page_path("workflow", "README") },
    ]
  end
def help_autocomplete [ { label : "help: API的帮助",      elp _ age_path("api" ,  "REA D E") }, { label : "help: Markdown的帮助",      elp _ age_path("mark d own", "mar k own") }, { label : "help: 权限的帮助",   url: h e pag e path("permissi o ns", "permiss i ns") }, { label : "help: 公共访问的帮助", url: help_pa g _pa t ("public_acces s ", "public_acce s ") }, { label : "help: Rake任务帮助",    url : p_p a e_path("raketa s ks", "READM E ) }, { label : "help: SSH密钥的帮助",      url : pag e path("ssh", "R E ADME" ) }, { label : "help: 系统钩子帮助",  url: help _ ge_ p th("system_hoo k s", "system_ho o s") }, { label : "help: Web 钩子帮助",     ur l p_p a e_path("web_ho o ks", "web_h o ks") }, { label : "help: 工作流帮助",      url : pag e path("workflow " , "README" ) }, ] end
Autocomplete results for internal help pages
Autocomplete results for internal help pages