mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
This commit is contained in:
parent
cd622af391
commit
e7aef42036
5 changed files with 10 additions and 10 deletions
|
@ -12,6 +12,7 @@ readonly links: {
|
|||
readonly apm: {
|
||||
readonly kibanaSettings: string;
|
||||
readonly supportedServiceMaps: string;
|
||||
readonly customLinks: string;
|
||||
readonly droppedTransactionSpans: string;
|
||||
readonly upgrading: string;
|
||||
readonly metaData: string;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -34,6 +34,7 @@ export class DocLinksService {
|
|||
apm: {
|
||||
kibanaSettings: `${KIBANA_DOCS}apm-settings-in-kibana.html`,
|
||||
supportedServiceMaps: `${KIBANA_DOCS}service-maps.html#service-maps-supported`,
|
||||
customLinks: `${KIBANA_DOCS}custom-links.html`,
|
||||
droppedTransactionSpans: `${APM_DOCS}get-started/${DOC_LINK_VERSION}/transaction-spans.html#dropped-spans`,
|
||||
upgrading: `${APM_DOCS}server/${DOC_LINK_VERSION}/upgrading.html`,
|
||||
metaData: `${APM_DOCS}get-started/${DOC_LINK_VERSION}/metadata.html`,
|
||||
|
@ -464,6 +465,7 @@ export interface DocLinksStart {
|
|||
readonly apm: {
|
||||
readonly kibanaSettings: string;
|
||||
readonly supportedServiceMaps: string;
|
||||
readonly customLinks: string;
|
||||
readonly droppedTransactionSpans: string;
|
||||
readonly upgrading: string;
|
||||
readonly metaData: string;
|
||||
|
|
|
@ -477,6 +477,7 @@ export interface DocLinksStart {
|
|||
readonly apm: {
|
||||
readonly kibanaSettings: string;
|
||||
readonly supportedServiceMaps: string;
|
||||
readonly customLinks: string;
|
||||
readonly droppedTransactionSpans: string;
|
||||
readonly upgrading: string;
|
||||
readonly metaData: string;
|
||||
|
|
|
@ -6,19 +6,14 @@
|
|||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { ElasticDocsLink } from '../../../../../shared/Links/ElasticDocsLink';
|
||||
import { EuiLink } from '@elastic/eui';
|
||||
import { useApmPluginContext } from '../../../../../../context/apm_plugin/use_apm_plugin_context';
|
||||
|
||||
interface Props {
|
||||
label: string;
|
||||
}
|
||||
|
||||
export function Documentation({ label }: Props) {
|
||||
return (
|
||||
<ElasticDocsLink
|
||||
section="/kibana"
|
||||
path="/custom-links.html"
|
||||
target="_blank"
|
||||
>
|
||||
{label}
|
||||
</ElasticDocsLink>
|
||||
);
|
||||
const { docLinks } = useApmPluginContext().core;
|
||||
return <EuiLink href={docLinks.links.apm.customLinks}>{label}</EuiLink>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue