diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-20 18:40:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-20 18:40:28 +0300 |
commit | b595cb0c1dec83de5bdee18284abe86614bed33b (patch) | |
tree | 8c3d4540f193c5ff98019352f554e921b3a41a72 /app/assets/javascripts/helpers | |
parent | 2f9104a328fc8a4bddeaa4627b595166d24671d0 (diff) |
Add latest changes from gitlab-org/gitlab@15-2-stable-eev15.2.0-rc42
Diffstat (limited to 'app/assets/javascripts/helpers')
-rw-r--r-- | app/assets/javascripts/helpers/help_page_helper.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/assets/javascripts/helpers/help_page_helper.js b/app/assets/javascripts/helpers/help_page_helper.js index 0e824548646..21d27b5fea9 100644 --- a/app/assets/javascripts/helpers/help_page_helper.js +++ b/app/assets/javascripts/helpers/help_page_helper.js @@ -7,9 +7,10 @@ const HELP_PAGE_URL_ROOT = '/help/'; * * This is designed to mirror the Ruby `help_page_path` helper function, so that * the two can be used interchangeably. - * @param {String} path - Path to doc file relative to the doc/ directory in the GitLab repository. - * Optionally, including `.md` or `.html` prefix - * @param {String} options.anchor - Name of the anchor to scroll to on the documentation page. + * @param {string} path - Path to doc file relative to the doc/ directory in the GitLab repository. + * Optionally, including `.md` or `.html` prefix + * @param {object} [options] + * @param {string} [options.anchor] - Name of the anchor to scroll to on the documentation page. */ export const helpPagePath = (path, { anchor = '' } = {}) => { let helpPath = joinPaths(gon.relative_url_root || '/', HELP_PAGE_URL_ROOT, path); |