kibana/x-pack/plugins/lens/public/help_menu_util.tsx
Tim Roes ebbc062689
Move Lens frontend to Kibana Platform (#62965)
* Move Lens frontend to Kibana platform

* Fix line breaks

* Fix jest tests

* Fix remaining test

* Remove old Lens plugin entry

* Fix i18n prefix

* Add config schema

* Address review
2020-04-15 12:22:37 +02:00

25 lines
727 B
TypeScript

/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { ChromeStart, DocLinksStart } from 'kibana/public';
export function addHelpMenuToAppChrome(chrome: ChromeStart, docLinks: DocLinksStart) {
chrome.setHelpExtension({
appName: 'Lens',
links: [
{
linkType: 'documentation',
href: `${docLinks.ELASTIC_WEBSITE_URL}guide/en/kibana/${docLinks.DOC_LINK_VERSION}/lens.html`,
},
{
linkType: 'github',
title: '[Lens]',
labels: ['Feature:Lens'],
},
],
});
}