Skip to content

Commit

Permalink
add documentation links
Browse files Browse the repository at this point in the history
Signed-off-by: Yibo Wang <yibow@amazon.com>
  • Loading branch information
yibow98 committed Oct 5, 2022
1 parent 8a74d5c commit c0a2537
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .lycheeexclude
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ https://opensearch.org/cool/path
https://opensearch.org/redirect
http://www.opensearch.org/painlessDocs
https://www.hostedgraphite.com/
https://connectionurl.com

# External urls
https://www.zeek.org/
Expand Down Expand Up @@ -114,3 +115,4 @@ https://a.tile.openstreetmap.org/
http://www.creedthoughts.gov
https://media-for-the-masses.theacademyofperformingartsandscience.org/
https://yarnpkg.com/latest.msi
https://forum.opensearch.org/t/feedback-experimental-feature-connect-to-external-data-sources/11144
3 changes: 3 additions & 0 deletions src/core/public/doc_links/doc_links_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,8 @@ export class DocLinksService {
functionbeat: `https://opensearch.org/docs/latest/downloads/beats/functionbeat`,
winlogbeat: `${OPENSEARCH_WEBSITE_DOCS}`,
siem: `${OPENSEARCH_WEBSITE_DOCS}`,
openSearchForum:
'https://forum.opensearch.org/t/feedback-experimental-feature-connect-to-external-data-sources/11144',
indexPatterns: {
loadingData: `${OPENSEARCH_WEBSITE_DOCS}`,
introduction: `${OPENSEARCH_WEBSITE_DOCS}`,
Expand Down Expand Up @@ -752,6 +754,7 @@ export interface DocLinksStart {
readonly functionbeat: string;
readonly winlogbeat: string;
readonly siem: string;
readonly openSearchForum: string;
readonly indexPatterns: {
readonly loadingData: string;
readonly introduction: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import React from 'react';
import { EuiCallOut, EuiLink, EuiSpacer } from '@elastic/eui';
import { DocLinksStart } from 'opensearch-dashboards/public';
import {
EXPERIMENTAL_FEATURE,
EXPERIMENTAL_FEATURE_CALL_OUT_DESCRIPTION,
Expand All @@ -13,17 +14,17 @@ import {
DATA_SOURCE_OPEN_FORUM_TEXT,
} from '../../../components/text_content';

export const ExperimentalCallOut = () => {
export const ExperimentalCallOut = ({ docLinks }: { docLinks: DocLinksStart }) => {
return (
<>
<EuiCallOut title={EXPERIMENTAL_FEATURE} iconType="iInCircle">
<p>
{EXPERIMENTAL_FEATURE_CALL_OUT_DESCRIPTION}
<EuiLink href="https://opensearch.org/docs/latest" target="_blank">
<EuiLink href={docLinks.links.noDocumentation.indexPatterns.introduction} target="_blank">
{DATA_SOURCE_DOCUMENTATION_TEXT}
</EuiLink>{' '}
{DATA_SOURCE_LEAVE_FEEDBACK_TEXT}
<EuiLink href="https://forum.opensearch.org" target="_blank">
<EuiLink href={docLinks.links.noDocumentation.openSearchForum} target="_blank">
{DATA_SOURCE_OPEN_FORUM_TEXT}
</EuiLink>
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export async function mountManagementSection(
ReactDOM.render(
<OpenSearchDashboardsContextProvider services={deps}>
<I18nProvider>
<ExperimentalCallOut />
<ExperimentalCallOut docLinks={docLinks} />
<Router history={params.history}>
<Switch>
<Route path={['/create']}>
Expand Down

0 comments on commit c0a2537

Please sign in to comment.