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, usehelp_page_url('user/project/integrations/zentao')
to fetch the link, and render JH doc byhttp://127.0.0.1:3000/help/user/project/integrations/zentao
. -
If
jh/user/project/integrations/zentao
not exists anduser/project/integrations/zentao
exists, usehelp_page_url('user/project/integrations/zentao')
to fetch the link, and render CE/EE doc byhttp://127.0.0.1:3000/help/user/project/integrations/zentao
.