From 5d8b55e96b2c74c0e6e695c0b49bdbb76f41c0e6 Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Tue, 18 Apr 2023 19:44:06 +0200 Subject: [PATCH] docs: fixed broken documentation links (#2997) --- .env.example | 4 ++-- README.md | 7 ++++--- packages/hoppscotch-cli/src/index.ts | 6 ++++-- .../src/components/app/Footer.vue | 4 ++-- .../src/components/app/Options.vue | 4 ++-- .../src/components/app/ShortcutsPrompt.vue | 2 +- .../src/components/app/Support.vue | 2 +- .../src/components/collections/MyCollections.vue | 2 +- .../components/collections/TeamCollections.vue | 2 +- .../src/components/collections/graphql/index.vue | 2 +- .../src/components/environments/my/index.vue | 2 +- .../src/components/environments/teams/index.vue | 2 +- .../src/components/graphql/Authorization.vue | 6 +++--- .../src/components/graphql/RequestOptions.vue | 6 +++--- .../src/components/graphql/Sidebar.vue | 4 ++-- .../src/components/history/index.vue | 2 +- .../src/components/http/Authorization.vue | 6 +++--- .../src/components/http/Body.vue | 2 +- .../src/components/http/BodyParameters.vue | 2 +- .../src/components/http/Headers.vue | 2 +- .../src/components/http/Parameters.vue | 2 +- .../src/components/http/PreRequestScript.vue | 4 ++-- .../src/components/http/RawBody.vue | 2 +- .../src/components/http/TestResult.vue | 2 +- .../src/components/http/Tests.vue | 4 ++-- .../src/components/http/URLEncodedParams.vue | 2 +- .../src/components/realtime/Communication.vue | 2 +- .../hoppscotch-common/src/layouts/default.vue | 4 +++- packages/hoppscotch-common/src/pages/index.vue | 2 +- .../hoppscotch-common/src/pages/realtime/mqtt.vue | 2 +- .../src/pages/realtime/socketio.vue | 6 +++--- packages/hoppscotch-common/src/pages/settings.vue | 2 +- .../hoppscotch-ui/src/stories/Anchor.story.vue | 15 ++++++++++++--- 33 files changed, 66 insertions(+), 52 deletions(-) diff --git a/.env.example b/.env.example index 21e367dcf..754ef0000 100644 --- a/.env.example +++ b/.env.example @@ -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 diff --git a/README.md b/README.md index f0ff85457..f1d1f397e 100644 --- a/README.md +++ b/README.md @@ -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** diff --git a/packages/hoppscotch-cli/src/index.ts b/packages/hoppscotch-cli/src/index.ts index aa6b0269f..3ba4f022d 100644 --- a/packages/hoppscotch-cli/src/index.ts +++ b/packages/hoppscotch-cli/src/index.ts @@ -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)()); diff --git a/packages/hoppscotch-common/src/components/app/Footer.vue b/packages/hoppscotch-common/src/components/app/Footer.vue index d79cc79fe..f82912b61 100644 --- a/packages/hoppscotch-common/src/components/app/Footer.vue +++ b/packages/hoppscotch-common/src/components/app/Footer.vue @@ -91,7 +91,7 @@ @@ -130,7 +130,7 @@ diff --git a/packages/hoppscotch-common/src/components/app/Options.vue b/packages/hoppscotch-common/src/components/app/Options.vue index 5816dd658..590fdcf97 100644 --- a/packages/hoppscotch-common/src/components/app/Options.vue +++ b/packages/hoppscotch-common/src/components/app/Options.vue @@ -43,7 +43,7 @@ diff --git a/packages/hoppscotch-common/src/components/graphql/RequestOptions.vue b/packages/hoppscotch-common/src/components/graphql/RequestOptions.vue index 17c22ce72..8751ef025 100644 --- a/packages/hoppscotch-common/src/components/graphql/RequestOptions.vue +++ b/packages/hoppscotch-common/src/components/graphql/RequestOptions.vue @@ -39,7 +39,7 @@ /> diff --git a/packages/hoppscotch-common/src/components/http/Body.vue b/packages/hoppscotch-common/src/components/http/Body.vue index a592f3f5c..8c1e91211 100644 --- a/packages/hoppscotch-common/src/components/http/Body.vue +++ b/packages/hoppscotch-common/src/components/http/Body.vue @@ -116,7 +116,7 @@

diff --git a/packages/hoppscotch-common/src/components/http/RawBody.vue b/packages/hoppscotch-common/src/components/http/RawBody.vue index 0d442d920..790c57c69 100644 --- a/packages/hoppscotch-common/src/components/http/RawBody.vue +++ b/packages/hoppscotch-common/src/components/http/RawBody.vue @@ -9,7 +9,7 @@

diff --git a/packages/hoppscotch-common/src/components/http/URLEncodedParams.vue b/packages/hoppscotch-common/src/components/http/URLEncodedParams.vue index 7ba5cdc77..7d75c7531 100644 --- a/packages/hoppscotch-common/src/components/http/URLEncodedParams.vue +++ b/packages/hoppscotch-common/src/components/http/URLEncodedParams.vue @@ -9,7 +9,7 @@
{ 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() }, }, { diff --git a/packages/hoppscotch-common/src/pages/index.vue b/packages/hoppscotch-common/src/pages/index.vue index 954737ccd..cd215db30 100644 --- a/packages/hoppscotch-common/src/pages/index.vue +++ b/packages/hoppscotch-common/src/pages/index.vue @@ -37,8 +37,8 @@ @@ -12,4 +22,3 @@ -