Skip to content

Commit

Permalink
removed links
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Madigan <[email protected]>
  • Loading branch information
jasonmadigan committed Nov 11, 2024
1 parent 75dbd8c commit 274ce21
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 44 deletions.
14 changes: 1 addition & 13 deletions downstream.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,11 @@ const downstreamName = 'Connectivity Link';

const upstreamDocumentation = 'https://docs.kuadrant.io';
const upstreamReleaseNotes = 'https://github.com/Kuadrant/kuadrant-operator/releases';
const upstreamQuickStarts =
'https://docs.kuadrant.io/latest/kuadrant-operator/doc/user-guides/secure-protect-connect/';
const upstreamHighlights = 'https://kuadrant.io/blog/';

const downstreamDocumentation =
'https://docs.redhat.com/en/documentation/red_hat_connectivity_link/1.0';
const downstreamReleaseNotes =
'https://docs.kuadrant.io/html-single/release_notes_for_connectivity_link_1.0/index';
const downstreamQuickStarts =
'https://docs.redhat.com/latest/red-hat-connectivity-link/doc/user-guides/secure-protect-connect/'; // Example
const downstreamHighlights = 'https://connectivity-link.io/blog/'; // Example
'https://docs.redhat.com/html-single/release_notes_for_connectivity_link_1.0/index';

const isUpstream = process.argv.includes('--upstream');

Expand All @@ -32,10 +26,6 @@ const docsLinkToReplace = isUpstream ? downstreamDocumentation : upstreamDocumen
const docsLinkToInsert = isUpstream ? upstreamDocumentation : downstreamDocumentation;
const releaseNotesToReplace = isUpstream ? downstreamReleaseNotes : upstreamReleaseNotes;
const releaseNotesToInsert = isUpstream ? upstreamReleaseNotes : downstreamReleaseNotes;
const quickStartsToReplace = isUpstream ? downstreamQuickStarts : upstreamQuickStarts;
const quickStartsToInsert = isUpstream ? upstreamQuickStarts : downstreamQuickStarts;
const highlightsToReplace = isUpstream ? downstreamHighlights : upstreamHighlights;
const highlightsToInsert = isUpstream ? upstreamHighlights : downstreamHighlights;

function updateJsonValues(filePath, searchValue, replaceValue) {
try {
Expand Down Expand Up @@ -90,8 +80,6 @@ console.log(`Updating constants.links.ts to ${isUpstream ? 'upstream' : 'downstr
updateFileContent(constantsPath, [
{ searchValue: docsLinkToReplace, replaceValue: docsLinkToInsert },
{ searchValue: releaseNotesToReplace, replaceValue: releaseNotesToInsert },
{ searchValue: quickStartsToReplace, replaceValue: quickStartsToInsert },
{ searchValue: highlightsToReplace, replaceValue: highlightsToInsert },
]);

console.log('Update complete!');
3 changes: 0 additions & 3 deletions locales/en/plugin__kuadrant-console-plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"Getting started resources": "Getting started resources",
"Health Check": "Health Check",
"Hide for session": "Hide for session",
"highlights": "highlights",
"HTTPRoute API Target Reference": "HTTPRoute API Target Reference",
"Issuer": "Issuer",
"Issuer API Target Reference": "Issuer API Target Reference",
Expand Down Expand Up @@ -119,9 +118,7 @@
"Unique name of the DNS Policy": "Unique name of the DNS Policy",
"Unique name of the TLSPolicy.": "Unique name of the TLSPolicy.",
"Unit": "Unit",
"View all quick starts": "View all quick starts",
"View Documentation": "View Documentation",
"Visit the blog": "Visit the blog",
"Weight value to apply to weighted endpoints default: 120": "Weight value to apply to weighted endpoints default: 120",
"YAML View": "YAML View",
"You can view and create HTTPRoutes": "You can view and create HTTPRoutes"
Expand Down
28 changes: 0 additions & 28 deletions src/components/KuadrantOverviewPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,15 +228,6 @@ const KuadrantOverviewPage: React.FC = () => {
{t('View Documentation')} <ExternalLinkAltIcon />
</Text>
</StackItem>
<StackItem>
<Text
component="a"
href={EXTERNAL_LINKS.quickStarts}
className="kuadrant-dashboard-resource-link"
>
{t('View all quick starts')} <ExternalLinkAltIcon />
</Text>
</StackItem>
</Stack>
</FlexItem>
<Divider orientation={{ default: 'vertical' }} />
Expand All @@ -250,16 +241,6 @@ const KuadrantOverviewPage: React.FC = () => {
)}
</Text>
<Stack hasGutter className="pf-u-mt-md">
<StackItem>
<Text
target="_blank"
component="a"
href="#"
className="kuadrant-dashboard-resource-link"
>
{t('Kuadrant')} {t('highlights')} <ExternalLinkAltIcon />
</Text>
</StackItem>
<StackItem>
<Text
target="_blank"
Expand All @@ -270,15 +251,6 @@ const KuadrantOverviewPage: React.FC = () => {
{t('Kuadrant')} {t('Release Notes')} <ExternalLinkAltIcon />
</Text>
</StackItem>
<StackItem>
<Text
component="a"
href={EXTERNAL_LINKS.blog}
className="kuadrant-dashboard-resource-link"
>
{t('Visit the blog')} <ExternalLinkAltIcon />
</Text>
</StackItem>
</Stack>
</FlexItem>
<Divider orientation={{ default: 'vertical' }} />
Expand Down

0 comments on commit 274ce21

Please sign in to comment.