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

@@ -55,5 +55,5 @@ VITE_BACKEND_WS_URL=wss://localhost:3170/graphql
VITE_BACKEND_API_URL=http://localhost:3170/v1 VITE_BACKEND_API_URL=http://localhost:3170/v1
# Terms Of Service And Privacy Policy Links (Optional) # Terms Of Service And Privacy Policy Links (Optional)
VITE_APP_TOS_LINK=https://docs.hoppscotch.io/terms VITE_APP_TOS_LINK=https://docs.hoppscotch.io/support/terms
VITE_APP_PRIVACY_POLICY_LINK=https://docs.hoppscotch.io/privacy VITE_APP_PRIVACY_POLICY_LINK=https://docs.hoppscotch.io/support/privacy

View File

@@ -161,7 +161,7 @@ _Collections are synced with cloud / local session storage_
- Access APIs served in non-HTTPS (`http://`) endpoints - Access APIs served in non-HTTPS (`http://`) endpoints
- Use your Proxy URL - Use your Proxy URL
_Official proxy server is hosted by Hoppscotch - **[GitHub](https://github.com/hoppscotch/proxyscotch)** - **[Privacy Policy](https://docs.hoppscotch.io/privacy)**_ _Official proxy server is hosted by Hoppscotch - **[GitHub](https://github.com/hoppscotch/proxyscotch)** - **[Privacy Policy](https://docs.hoppscotch.io/support/privacy)**_
📜 **Pre-Request Scripts β:** Snippets of code associated with a request that is executed before the request is sent. 📜 **Pre-Request Scripts β:** Snippets of code associated with a request that is executed before the request is sent.
@@ -178,7 +178,7 @@ _Official proxy server is hosted by Hoppscotch - **[GitHub](https://github.com/h
⌨️ **Keyboard Shortcuts:** Optimized for efficiency. ⌨️ **Keyboard Shortcuts:** Optimized for efficiency.
> **[Read our documentation on Keyboard Shortcuts](https://docs.hoppscotch.io/features/shortcuts)** > **[Read our documentation on Keyboard Shortcuts](https://docs.hoppscotch.io/documentation/features/shortcuts)**
🌎 **i18n:** Experience the app in your language. 🌎 **i18n:** Experience the app in your language.
@@ -278,7 +278,8 @@ _Add-ons are developed and maintained under **[Hoppscotch Organization](https://
- [Vite](https://vitejs.dev) - [Vite](https://vitejs.dev)
## **Developing** ## **Developing**
Follow the guide in the [Self Hosted Docs](https://docs.hoppscotch.io/documentation/self-host/getting-started).
Follow our [self-hosting guide](https://docs.hoppscotch.io/documentation/self-host/getting-started) to get started with the development environment.
## **Contributing** ## **Contributing**

View File

@@ -17,7 +17,7 @@ const CLI_BEFORE_ALL_TXT = `hopp: The ${accent(
)}) ${chalk.black.bold.bgYellowBright(" ALPHA ")} \n`; )}) ${chalk.black.bold.bgYellowBright(" ALPHA ")} \n`;
const CLI_AFTER_ALL_TXT = `\nFor more help, head on to ${accent( 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 program
@@ -59,7 +59,9 @@ program
.description("running hoppscotch collection.json file") .description("running hoppscotch collection.json file")
.addHelpText( .addHelpText(
"after", "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)()); .action(async (path, options) => await test(path, options)());

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -9,7 +9,7 @@
<div class="flex"> <div class="flex">
<HoppButtonSecondary <HoppButtonSecondary
v-tippy="{ theme: 'tooltip' }" 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 blank
:title="t('app.wiki')" :title="t('app.wiki')"
:icon="IconHelpCircle" :icon="IconHelpCircle"
@@ -41,7 +41,7 @@
</div> </div>
<HoppSmartAnchor <HoppSmartAnchor
:label="`${t('preRequest.learn')}`" :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 blank
/> />
<h4 class="pt-6 font-bold text-secondaryLight"> <h4 class="pt-6 font-bold text-secondaryLight">

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -106,7 +106,9 @@ onMounted(() => {
onClick: (_, toastObject) => { onClick: (_, toastObject) => {
setLocalConfig("cookiesAllowed", "yes") setLocalConfig("cookiesAllowed", "yes")
toastObject.goAway(0) 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>
<template #suffix> <template #suffix>
<span <span
class="text-green-600 text-[8px] group-hover:hidden w-4"
v-if="tab.document.isDirty" 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"> <svg viewBox="0 0 24 24" width="1.2em" height="1.2em">
<circle cx="12" cy="12" r="10" fill="currentColor"></circle> <circle cx="12" cy="12" r="10" fill="currentColor"></circle>

View File

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

View File

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

View File

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

View File

@@ -2,9 +2,19 @@
<Story title="Anchor"> <Story title="Anchor">
<div class="text-secondaryLight text-tiny"> <div class="text-secondaryLight text-tiny">
By signing in, you are agreeing to our 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 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> </div>
</Story> </Story>
</template> </template>
@@ -12,4 +22,3 @@
<script setup lang="ts"> <script setup lang="ts">
import { HoppSmartAnchor } from "../components/smart" import { HoppSmartAnchor } from "../components/smart"
</script> </script>