Skip to content

Draft: Let `HelpController#show` support rendering the doc under jh

Background

Issue link: #348 (closed)

Depend on Upstream MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/73947

What does this MR do

In Upstream, we can use help_page_url('user/project/integrations/zentao') to fetch a self-managed doc link,

and can view the doc by http://127.0.0.1:3000/help/user/project/integrations/zentao

(https://docs.gitlab.com/ee/user/project/integrations/zentao.html on SaaS).

I'd like to extend the HelpController#show to support the rendering the doc under jh.

Proposal

  • If jh/user/project/integrations/zentao exists, use help_page_url('user/project/integrations/zentao') to fetch the link, and render JH doc by http://127.0.0.1:3000/help/user/project/integrations/zentao .

  • If jh/user/project/integrations/zentao not exists and user/project/integrations/zentao exists, use help_page_url('user/project/integrations/zentao') to fetch the link, and render CE/EE doc by http://127.0.0.1:3000/help/user/project/integrations/zentao .

Demo case

截屏2021-11-10_10.49.58

Baodong 编辑于

合并请求报告

加载中