docs: fixed broken documentation links (#2997)

This commit is contained in:
Liyas Thomas
2023-04-18 19:44:06 +02:00
committed by GitHub
parent eab4893aa2
commit 5d8b55e96b
33 changed files with 66 additions and 52 deletions

View File

@@ -17,7 +17,7 @@ const CLI_BEFORE_ALL_TXT = `hopp: The ${accent(
)}) ${chalk.black.bold.bgYellowBright(" ALPHA ")} \n`;
const CLI_AFTER_ALL_TXT = `\nFor more help, head on to ${accent(
"https://docs.hoppscotch.io/cli"
"https://docs.hoppscotch.io/documentation/clients/cli"
)}`;
program
@@ -59,7 +59,9 @@ program
.description("running hoppscotch collection.json file")
.addHelpText(
"after",
`\nFor help, head on to ${accent("https://docs.hoppscotch.io/cli#test")}`
`\nFor help, head on to ${accent(
"https://docs.hoppscotch.io/documentation/clients/cli#commands"
)}`
)
.action(async (path, options) => await test(path, options)());

View File

@@ -91,7 +91,7 @@
<HoppSmartItem
:icon="IconGift"
:label="`${t('app.whats_new')}`"
to="https://docs.hoppscotch.io/changelog"
to="https://docs.hoppscotch.io/documentation/changelog"
blank
@click="hide()"
/>
@@ -130,7 +130,7 @@
<HoppSmartItem
:icon="IconLock"
:label="`${t('app.terms_and_privacy')}`"
to="https://docs.hoppscotch.io/privacy"
to="https://docs.hoppscotch.io/support/privacy"
blank
@click="hide()"
/>

View File

@@ -43,7 +43,7 @@
<HoppSmartItem
:icon="IconGift"
:label="t('app.whats_new')"
to="https://docs.hoppscotch.io/changelog"
to="https://docs.hoppscotch.io/documentation/changelog"
:description="t('support.changelog')"
:info-icon="IconChevronRight"
active
@@ -63,7 +63,7 @@
<HoppSmartItem
:icon="IconLock"
:label="`${t('app.terms_and_privacy')}`"
to="https://docs.hoppscotch.io/privacy"
to="https://docs.hoppscotch.io/support/privacy"
blank
:description="t('app.terms_and_privacy')"
:info-icon="IconChevronRight"

View File

@@ -34,7 +34,7 @@
</div>
<HoppButtonSecondary
:label="`${t('app.documentation')}`"
to="https://docs.hoppscotch.io/features/response"
to="https://docs.hoppscotch.io/documentation/features/rest-api-testing#response"
:icon="IconExternalLink"
blank
outline

View File

@@ -29,7 +29,7 @@
<HoppSmartItem
:icon="IconGift"
:label="t('app.whats_new')"
to="https://docs.hoppscotch.io/changelog"
to="https://docs.hoppscotch.io/documentation/changelog"
:description="t('support.changelog')"
:info-icon="IconChevronRight"
active

View File

@@ -17,7 +17,7 @@
<span class="flex">
<HoppButtonSecondary
v-tippy="{ theme: 'tooltip' }"
to="https://docs.hoppscotch.io/features/collections"
to="https://docs.hoppscotch.io/documentation/features/collections"
blank
:title="t('app.wiki')"
:icon="IconHelpCircle"

View File

@@ -27,7 +27,7 @@
<span class="flex">
<HoppButtonSecondary
v-tippy="{ theme: 'tooltip' }"
to="https://docs.hoppscotch.io/features/collections"
to="https://docs.hoppscotch.io/documentation/features/collections"
blank
:title="t('app.wiki')"
:icon="IconHelpCircle"

View File

@@ -25,7 +25,7 @@
<div class="flex">
<HoppButtonSecondary
v-tippy="{ theme: 'tooltip' }"
to="https://docs.hoppscotch.io/features/collections"
to="https://docs.hoppscotch.io/documentation/features/collections"
blank
:title="t('app.wiki')"
:icon="IconHelpCircle"

View File

@@ -12,7 +12,7 @@
<div class="flex">
<HoppButtonSecondary
v-tippy="{ theme: 'tooltip' }"
to="https://docs.hoppscotch.io/features/environments"
to="https://docs.hoppscotch.io/documentation/features/environments"
blank
:title="t('app.wiki')"
:icon="IconHelpCircle"

View File

@@ -22,7 +22,7 @@
<div class="flex">
<HoppButtonSecondary
v-tippy="{ theme: 'tooltip' }"
to="https://docs.hoppscotch.io/features/environments"
to="https://docs.hoppscotch.io/documentation/features/environments"
blank
:title="t('app.wiki')"
:icon="IconHelpCircle"

View File

@@ -101,7 +101,7 @@
</HoppSmartCheckbox>
<HoppButtonSecondary
v-tippy="{ theme: 'tooltip' }"
to="https://docs.hoppscotch.io/features/authorization"
to="https://docs.hoppscotch.io/documentation/features/authorization"
blank
:title="t('app.wiki')"
:icon="IconHelpCircle"
@@ -130,7 +130,7 @@
<HoppButtonSecondary
outline
:label="t('app.documentation')"
to="https://docs.hoppscotch.io/features/authorization"
to="https://docs.hoppscotch.io/documentation/features/authorization"
blank
:icon="IconExternalLink"
reverse
@@ -236,7 +236,7 @@
class="link"
:label="t('authorization.learn')"
:icon="IconExternalLink"
to="https://docs.hoppscotch.io/features/authorization"
to="https://docs.hoppscotch.io/documentation/features/authorization"
blank
reverse
/>

View File

@@ -39,7 +39,7 @@
/>
<HoppButtonSecondary
v-tippy="{ theme: 'tooltip' }"
to="https://docs.hoppscotch.io/graphql"
to="https://docs.hoppscotch.io/documentation/features/graphql-api-testing"
blank
:title="t('app.wiki')"
:icon="IconHelpCircle"
@@ -87,7 +87,7 @@
<div class="flex">
<HoppButtonSecondary
v-tippy="{ theme: 'tooltip' }"
to="https://docs.hoppscotch.io/graphql"
to="https://docs.hoppscotch.io/documentation/features/graphql-api-testing"
blank
:title="t('app.wiki')"
:icon="IconHelpCircle"
@@ -137,7 +137,7 @@
<div class="flex">
<HoppButtonSecondary
v-tippy="{ theme: 'tooltip' }"
to="https://docs.hoppscotch.io/graphql"
to="https://docs.hoppscotch.io/documentation/features/graphql-api-testing"
blank
:title="t('app.wiki')"
:icon="IconHelpCircle"

View File

@@ -57,7 +57,7 @@
<div class="flex">
<HoppButtonSecondary
v-tippy="{ theme: 'tooltip' }"
to="https://docs.hoppscotch.io/quickstart/graphql"
to="https://docs.hoppscotch.io/documentation/protocols/graphql"
blank
:title="t('app.wiki')"
:icon="IconHelpCircle"
@@ -141,7 +141,7 @@
<div class="flex">
<HoppButtonSecondary
v-tippy="{ theme: 'tooltip' }"
to="https://docs.hoppscotch.io/quickstart/graphql"
to="https://docs.hoppscotch.io/documentation/protocols/graphql"
blank
:title="t('app.wiki')"
:icon="IconHelpCircle"

View File

@@ -15,7 +15,7 @@
<div class="flex">
<HoppButtonSecondary
v-tippy="{ theme: 'tooltip' }"
to="https://docs.hoppscotch.io/features/history"
to="https://docs.hoppscotch.io/documentation/features/history"
blank
:title="t('app.wiki')"
:icon="IconHelpCircle"

View File

@@ -100,7 +100,7 @@
>
<HoppButtonSecondary
v-tippy="{ theme: 'tooltip' }"
to="https://docs.hoppscotch.io/features/authorization"
to="https://docs.hoppscotch.io/documentation/features/authorization"
blank
:title="t('app.wiki')"
:icon="IconHelpCircle"
@@ -127,7 +127,7 @@
<HoppButtonSecondary
outline
:label="t('app.documentation')"
to="https://docs.hoppscotch.io/features/authorization"
to="https://docs.hoppscotch.io/documentation/features/authorization"
blank
:icon="IconExternalLink"
reverse
@@ -164,7 +164,7 @@
class="link"
:label="t('authorization.learn')"
:icon="IconExternalLink"
to="https://docs.hoppscotch.io/features/authorization"
to="https://docs.hoppscotch.io/documentation/features/authorization"
blank
reverse
/>

View File

@@ -116,7 +116,7 @@
<HoppButtonSecondary
outline
:label="`${t('app.documentation')}`"
to="https://docs.hoppscotch.io/features/body"
to="https://docs.hoppscotch.io/documentation/getting-started/rest/uploading-data"
blank
:icon="IconExternalLink"
reverse

View File

@@ -9,7 +9,7 @@
<div class="flex">
<HoppButtonSecondary
v-tippy="{ theme: 'tooltip' }"
to="https://docs.hoppscotch.io/features/body"
to="https://docs.hoppscotch.io/documentation/getting-started/rest/uploading-data"
blank
:title="t('app.wiki')"
:icon="IconHelpCircle"

View File

@@ -9,7 +9,7 @@
<div class="flex">
<HoppButtonSecondary
v-tippy="{ theme: 'tooltip' }"
to="https://docs.hoppscotch.io/features/headers"
to="https://docs.hoppscotch.io/documentation/features/rest-api-testing"
blank
:title="t('app.wiki')"
:icon="IconHelpCircle"

View File

@@ -9,7 +9,7 @@
<div class="flex">
<HoppButtonSecondary
v-tippy="{ theme: 'tooltip' }"
to="https://docs.hoppscotch.io/features/parameters"
to="https://docs.hoppscotch.io/documentation/getting-started/rest/using-parameters"
blank
:title="t('app.wiki')"
:icon="IconHelpCircle"

View File

@@ -9,7 +9,7 @@
<div class="flex">
<HoppButtonSecondary
v-tippy="{ theme: 'tooltip' }"
to="https://docs.hoppscotch.io/features/pre-request-script"
to="https://docs.hoppscotch.io/documentation/getting-started/rest/pre-request-scripts"
blank
:title="t('app.wiki')"
:icon="IconHelpCircle"
@@ -41,7 +41,7 @@
</div>
<HoppSmartAnchor
:label="`${t('preRequest.learn')}`"
to="https://docs.hoppscotch.io/features/pre-request-script"
to="https://docs.hoppscotch.io/documentation/getting-started/rest/pre-request-scripts"
blank
/>
<h4 class="pt-6 font-bold text-secondaryLight">

View File

@@ -9,7 +9,7 @@
<div class="flex">
<HoppButtonSecondary
v-tippy="{ theme: 'tooltip' }"
to="https://docs.hoppscotch.io/features/body"
to="https://docs.hoppscotch.io/documentation/getting-started/rest/uploading-data"
blank
:title="t('app.wiki')"
:icon="IconHelpCircle"

View File

@@ -189,7 +189,7 @@
<HoppButtonSecondary
outline
:label="`${t('action.learn_more')}`"
to="https://docs.hoppscotch.io/features/tests"
to="https://docs.hoppscotch.io/documentation/getting-started/rest/tests"
blank
:icon="IconExternalLink"
reverse

View File

@@ -9,7 +9,7 @@
<div class="flex">
<HoppButtonSecondary
v-tippy="{ theme: 'tooltip' }"
to="https://docs.hoppscotch.io/features/tests"
to="https://docs.hoppscotch.io/documentation/getting-started/rest/tests"
blank
:title="t('app.wiki')"
:icon="IconHelpCircle"
@@ -41,7 +41,7 @@
</div>
<HoppSmartAnchor
:label="`${t('test.learn')}`"
to="https://docs.hoppscotch.io/features/tests"
to="https://docs.hoppscotch.io/documentation/getting-started/rest/tests"
blank
/>
<h4 class="pt-6 font-bold text-secondaryLight">

View File

@@ -9,7 +9,7 @@
<div class="flex">
<HoppButtonSecondary
v-tippy="{ theme: 'tooltip' }"
to="https://docs.hoppscotch.io/features/body"
to="https://docs.hoppscotch.io/documentation/getting-started/rest/uploading-data"
blank
:title="t('app.wiki')"
:icon="IconHelpCircle"

View File

@@ -85,7 +85,7 @@
</HoppSmartCheckbox>
<HoppButtonSecondary
v-tippy="{ theme: 'tooltip' }"
to="https://docs.hoppscotch.io/realtime"
to="https://docs.hoppscotch.io/documentation/features/realtime-api-testing"
blank
:title="t('app.wiki')"
:icon="IconHelpCircle"

View File

@@ -106,7 +106,9 @@ onMounted(() => {
onClick: (_, toastObject) => {
setLocalConfig("cookiesAllowed", "yes")
toastObject.goAway(0)
window.open("https://docs.hoppscotch.io/privacy", "_blank")?.focus()
window
.open("https://docs.hoppscotch.io/support/privacy", "_blank")
?.focus()
},
},
{

View File

@@ -37,8 +37,8 @@
</template>
<template #suffix>
<span
class="text-green-600 text-[8px] group-hover:hidden w-4"
v-if="tab.document.isDirty"
class="text-green-600 text-[8px] group-hover:hidden w-4"
>
<svg viewBox="0 0 24 24" width="1.2em" height="1.2em">
<circle cx="12" cy="12" r="10" fill="currentColor"></circle>

View File

@@ -128,7 +128,7 @@
<span class="flex">
<HoppButtonSecondary
v-tippy="{ theme: 'tooltip' }"
to="https://docs.hoppscotch.io/features/mqtt"
to="https://docs.hoppscotch.io/documentation/getting-started/realtime/mqtt"
blank
:title="t('app.wiki')"
:icon="IconHelpCircle"

View File

@@ -177,7 +177,7 @@
</HoppSmartCheckbox>
<HoppButtonSecondary
v-tippy="{ theme: 'tooltip' }"
to="https://docs.hoppscotch.io/features/authorization"
to="https://docs.hoppscotch.io/documentation/features/authorization"
blank
:title="t('app.wiki')"
:icon="IconHelpCircle"
@@ -206,7 +206,7 @@
<HoppButtonSecondary
outline
:label="t('app.documentation')"
to="https://docs.hoppscotch.io/features/authorization"
to="https://docs.hoppscotch.io/documentation/features/authorization"
blank
:icon="IconExternalLink"
reverse
@@ -233,7 +233,7 @@
class="link"
:label="t('authorization.learn')"
:icon="IconExternalLink"
to="https://docs.hoppscotch.io/features/authorization"
to="https://docs.hoppscotch.io/documentation/features/authorization"
blank
reverse
/>

View File

@@ -177,7 +177,7 @@
}}
<HoppSmartAnchor
class="link"
to="https://docs.hoppscotch.io/privacy"
to="https://docs.hoppscotch.io/support/privacy"
blank
:label="t('app.proxy_privacy_policy')"
/>.

View File

@@ -2,9 +2,19 @@
<Story title="Anchor">
<div class="text-secondaryLight text-tiny">
By signing in, you are agreeing to our
<HoppSmartAnchor class="text-red-800 link" to="https://docs.hoppscotch.io/terms" blank label="Terms of Service" />
<HoppSmartAnchor
class="text-red-800 link"
to="https://docs.hoppscotch.io/support/terms"
blank
label="Terms of Service"
/>
and
<HoppSmartAnchor class="text-red-600 link" to="https://docs.hoppscotch.io/privacy" blank label="Privacy Policy" />
<HoppSmartAnchor
class="text-red-600 link"
to="https://docs.hoppscotch.io/support/privacy"
blank
label="Privacy Policy"
/>
</div>
</Story>
</template>
@@ -12,4 +22,3 @@
<script setup lang="ts">
import { HoppSmartAnchor } from "../components/smart"
</script>