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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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
# Terms Of Service And Privacy Policy Links (Optional)
VITE_APP_TOS_LINK=https://docs.hoppscotch.io/terms
VITE_APP_PRIVACY_POLICY_LINK=https://docs.hoppscotch.io/privacy
VITE_APP_TOS_LINK=https://docs.hoppscotch.io/support/terms
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
- 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.
@ -178,7 +178,7 @@ _Official proxy server is hosted by Hoppscotch - **[GitHub](https://github.com/h
⌨️ **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.
@ -278,7 +278,8 @@ _Add-ons are developed and maintained under **[Hoppscotch Organization](https://
- [Vite](https://vitejs.dev)
## **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**

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>