diff --git a/apps/liquidity-provision-dashboard/src/app/components/dashboard/intro/intro.tsx b/apps/liquidity-provision-dashboard/src/app/components/dashboard/intro/intro.tsx
index 8e407330e..d253d01d5 100644
--- a/apps/liquidity-provision-dashboard/src/app/components/dashboard/intro/intro.tsx
+++ b/apps/liquidity-provision-dashboard/src/app/components/dashboard/intro/intro.tsx
@@ -6,15 +6,15 @@ const LINKS = {
testnet: [
{
label: 'Learn about liquidity fees',
- url: 'https://docs.vega.xyz/docs/testnet/tutorials/providing-liquidity#resources',
+ url: 'https://docs.vega.xyz/testnet/tutorials/providing-liquidity#resources',
},
{
label: 'Provide liquidity',
- url: 'https://docs.vega.xyz/docs/testnet/tutorials/providing-liquidity#overview',
+ url: 'https://docs.vega.xyz/testnet/tutorials/providing-liquidity#overview',
},
{
label: 'View your liquidity provisions',
- url: 'https://docs.vega.xyz/docs/testnet/tutorials/providing-liquidity#viewing-existing-liquidity-provisions',
+ url: 'https://docs.vega.xyz/testnet/tutorials/providing-liquidity#viewing-existing-liquidity-provisions',
},
{
label: 'Amend or remove liquidity',
diff --git a/apps/token/.env.mainnet b/apps/token/.env.mainnet
index 8c4b4b983..dd7c1f50d 100644
--- a/apps/token/.env.mainnet
+++ b/apps/token/.env.mainnet
@@ -7,4 +7,4 @@ NX_ETHEREUM_PROVIDER_URL=https://mainnet.infura.io/v3/4f846e79e13f44d1b51bbd7ed9
NX_ETHERSCAN_URL=https://etherscan.io
NX_GITHUB_FEEDBACK_URL=https://github.com/vegaprotocol/feedback/discussions
NX_VEGA_EXPLORER_URL=https://explorer.vega.xyz
-NX_VEGA_DOCS_URL=https://docs.vega.xyz/docs/mainnet
+NX_VEGA_DOCS_URL=https://docs.vega.xyz/mainnet
diff --git a/apps/token/src/routes/governance/components/propose/proposal-form-terms.tsx b/apps/token/src/routes/governance/components/propose/proposal-form-terms.tsx
index 0ffb259f1..fa1552858 100644
--- a/apps/token/src/routes/governance/components/propose/proposal-form-terms.tsx
+++ b/apps/token/src/routes/governance/components/propose/proposal-form-terms.tsx
@@ -5,6 +5,7 @@ import {
ExternalLink,
TextArea,
} from '@vegaprotocol/ui-toolkit';
+import { createDocsLinks } from '@vegaprotocol/react-helpers';
import { useEnvironment } from '@vegaprotocol/environment';
import type { UseFormRegisterReturn } from 'react-hook-form';
@@ -32,9 +33,13 @@ export const ProposalFormTerms = ({
{t('ProposalTermsText')}
{`${VEGA_DOCS_URL}/tutorials/proposals${docsLink}`}
+ >
+ {`${createDocsLinks(VEGA_DOCS_URL).PROPOSALS_GUIDE}${docsLink}`}
+
)}
diff --git a/apps/token/src/routes/governance/propose/freeform/propose-freeform.tsx b/apps/token/src/routes/governance/propose/freeform/propose-freeform.tsx
index 1ee29fbd6..c22c182ce 100644
--- a/apps/token/src/routes/governance/propose/freeform/propose-freeform.tsx
+++ b/apps/token/src/routes/governance/propose/freeform/propose-freeform.tsx
@@ -18,7 +18,11 @@ import { ProposalMinRequirements } from '../../components/shared';
import { AsyncRenderer, ExternalLink } from '@vegaprotocol/ui-toolkit';
import { Heading } from '../../../../components/heading';
import { VegaWalletContainer } from '../../../../components/vega-wallet-container';
-import { NetworkParams, useNetworkParams } from '@vegaprotocol/react-helpers';
+import {
+ createDocsLinks,
+ NetworkParams,
+ useNetworkParams,
+} from '@vegaprotocol/react-helpers';
import { ProposalUserAction } from '../../components/shared';
export interface FreeformProposalFormFields {
@@ -29,7 +33,7 @@ export interface FreeformProposalFormFields {
proposalReference: string;
}
-const DOCS_LINK = 'freeform-proposal';
+const DOCS_LINK = '/freeform-proposal';
export const ProposeFreeform = () => {
const { params, loading, error } = useNetworkParams([
@@ -96,9 +100,13 @@ export const ProposeFreeform = () => {
{t('ProposalTermsText')}
{`${VEGA_DOCS_URL}/tutorials/proposals/${DOCS_LINK}`}
+ >{`${
+ createDocsLinks(VEGA_DOCS_URL).PROPOSALS_GUIDE
+ }${DOCS_LINK}`}
)}
diff --git a/apps/token/src/routes/governance/propose/network-parameter/propose-network-parameter.tsx b/apps/token/src/routes/governance/propose/network-parameter/propose-network-parameter.tsx
index 04fe118eb..b30bcb74e 100644
--- a/apps/token/src/routes/governance/propose/network-parameter/propose-network-parameter.tsx
+++ b/apps/token/src/routes/governance/propose/network-parameter/propose-network-parameter.tsx
@@ -2,6 +2,7 @@ import { useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useForm } from 'react-hook-form';
import {
+ createDocsLinks,
suitableForSyntaxHighlighter,
useNetworkParams,
} from '@vegaprotocol/react-helpers';
@@ -168,9 +169,13 @@ export const ProposeNetworkParameter = () => {
{t('ProposalTermsText')}
{`${VEGA_DOCS_URL}/tutorials/proposals${DOCS_LINK}`}
+ >{`${
+ createDocsLinks(VEGA_DOCS_URL).PROPOSALS_GUIDE
+ }${DOCS_LINK}`}
)}
diff --git a/apps/token/src/routes/governance/propose/new-asset/propose-new-asset.tsx b/apps/token/src/routes/governance/propose/new-asset/propose-new-asset.tsx
index 176633e0e..b3bb3103e 100644
--- a/apps/token/src/routes/governance/propose/new-asset/propose-new-asset.tsx
+++ b/apps/token/src/routes/governance/propose/new-asset/propose-new-asset.tsx
@@ -9,6 +9,7 @@ import {
} from '@vegaprotocol/governance';
import { useEnvironment } from '@vegaprotocol/environment';
import {
+ createDocsLinks,
NetworkParams,
useNetworkParams,
validateJson,
@@ -135,9 +136,13 @@ export const ProposeNewAsset = () => {
{t('ProposalTermsText')}
{`${VEGA_DOCS_URL}/tutorials/proposals${DOCS_LINK}`}
+ >{`${
+ createDocsLinks(VEGA_DOCS_URL).PROPOSALS_GUIDE
+ }${DOCS_LINK}`}
)}
diff --git a/apps/token/src/routes/governance/propose/new-market/propose-new-market.tsx b/apps/token/src/routes/governance/propose/new-market/propose-new-market.tsx
index 33c244649..53a50f4cc 100644
--- a/apps/token/src/routes/governance/propose/new-market/propose-new-market.tsx
+++ b/apps/token/src/routes/governance/propose/new-market/propose-new-market.tsx
@@ -8,6 +8,7 @@ import {
} from '@vegaprotocol/governance';
import { useEnvironment } from '@vegaprotocol/environment';
import {
+ createDocsLinks,
NetworkParams,
useNetworkParams,
validateJson,
@@ -125,9 +126,13 @@ export const ProposeNewMarket = () => {
{t('ProposalTermsText')}
{`${VEGA_DOCS_URL}/tutorials/proposals${DOCS_LINK}`}
+ >{`${
+ createDocsLinks(VEGA_DOCS_URL).PROPOSALS_GUIDE
+ }${DOCS_LINK}`}
)}
diff --git a/apps/token/src/routes/governance/propose/propose.tsx b/apps/token/src/routes/governance/propose/propose.tsx
index 69ed56ad2..747fa508d 100644
--- a/apps/token/src/routes/governance/propose/propose.tsx
+++ b/apps/token/src/routes/governance/propose/propose.tsx
@@ -4,6 +4,7 @@ import { Link } from 'react-router-dom';
import { ExternalLink } from '@vegaprotocol/ui-toolkit';
import { useEnvironment } from '@vegaprotocol/environment';
import { Heading } from '../../../components/heading';
+import { createDocsLinks } from '@vegaprotocol/react-helpers';
export const Propose = () => {
const { VEGA_DOCS_URL, VEGA_EXPLORER_URL } = useEnvironment();
@@ -18,9 +19,11 @@ export const Propose = () => {
{t('ProposalTermsText')}
{`${VEGA_DOCS_URL}/tutorials/proposals`}
+ >
+ {createDocsLinks(VEGA_DOCS_URL).PROPOSALS_GUIDE}
+
)}
{VEGA_EXPLORER_URL && (
diff --git a/apps/token/src/routes/governance/propose/raw/propose-raw.tsx b/apps/token/src/routes/governance/propose/raw/propose-raw.tsx
index 528721bad..f058f566a 100644
--- a/apps/token/src/routes/governance/propose/raw/propose-raw.tsx
+++ b/apps/token/src/routes/governance/propose/raw/propose-raw.tsx
@@ -11,6 +11,7 @@ import {
TextArea,
} from '@vegaprotocol/ui-toolkit';
import {
+ createDocsLinks,
NetworkParams,
useNetworkParams,
validateJson,
@@ -88,9 +89,11 @@ export const ProposeRaw = () => {
{t('ProposalTermsText')}
{`${VEGA_DOCS_URL}/tutorials/proposals`}
+ >
+ {createDocsLinks(VEGA_DOCS_URL).PROPOSALS_GUIDE}
+
)}
diff --git a/apps/token/src/routes/governance/propose/update-asset/propose-update-asset.tsx b/apps/token/src/routes/governance/propose/update-asset/propose-update-asset.tsx
index f944b2b47..9c5a9b0ae 100644
--- a/apps/token/src/routes/governance/propose/update-asset/propose-update-asset.tsx
+++ b/apps/token/src/routes/governance/propose/update-asset/propose-update-asset.tsx
@@ -8,6 +8,7 @@ import {
} from '@vegaprotocol/governance';
import { useEnvironment } from '@vegaprotocol/environment';
import {
+ createDocsLinks,
NetworkParams,
useNetworkParams,
validateJson,
@@ -125,9 +126,13 @@ export const ProposeUpdateAsset = () => {
{t('ProposalTermsText')}
{`${VEGA_DOCS_URL}/tutorials/proposals${DOCS_LINK}`}
+ >{`${
+ createDocsLinks(VEGA_DOCS_URL).PROPOSALS_GUIDE
+ }${DOCS_LINK}`}
)}
diff --git a/apps/token/src/routes/governance/propose/update-market/propose-update-market.tsx b/apps/token/src/routes/governance/propose/update-market/propose-update-market.tsx
index 67131e6b0..19631175c 100644
--- a/apps/token/src/routes/governance/propose/update-market/propose-update-market.tsx
+++ b/apps/token/src/routes/governance/propose/update-market/propose-update-market.tsx
@@ -10,6 +10,7 @@ import {
} from '@vegaprotocol/governance';
import { useEnvironment } from '@vegaprotocol/environment';
import {
+ createDocsLinks,
NetworkParams,
useNetworkParams,
validateJson,
@@ -188,9 +189,13 @@ export const ProposeUpdateMarket = () => {
{t('ProposalTermsText')}
{`${VEGA_DOCS_URL}/tutorials/proposals${DOCS_LINK}`}
+ >{`${
+ createDocsLinks(VEGA_DOCS_URL).PROPOSALS_GUIDE
+ }${DOCS_LINK}`}
)}
diff --git a/libs/orders/src/lib/utils.ts b/libs/orders/src/lib/utils.ts
index 1ff5109a2..bd9e0aa28 100644
--- a/libs/orders/src/lib/utils.ts
+++ b/libs/orders/src/lib/utils.ts
@@ -1,7 +1,7 @@
import { t } from '@vegaprotocol/react-helpers';
import { Schema } from '@vegaprotocol/types';
-// More detail in https://docs.vega.xyz/docs/mainnet/graphql/enums/order-time-in-force
+// More detail in https://docs.vega.xyz/mainnet/graphql/enums/order-time-in-force
export const timeInForceLabel = (tif: string) => {
switch (tif) {
case Schema.OrderTimeInForce.TIME_IN_FORCE_GTC:
diff --git a/libs/react-helpers/src/lib/links/links.ts b/libs/react-helpers/src/lib/links/links.ts
index 43f998cc1..c2784dbb3 100644
--- a/libs/react-helpers/src/lib/links/links.ts
+++ b/libs/react-helpers/src/lib/links/links.ts
@@ -9,6 +9,7 @@ export const createDocsLinks = (docsUrl: string) => ({
AUCTION_TYPE_CLOSING: `${docsUrl}/concepts/trading-on-vega/trading-modes#auction-type-closing`,
STAKING_GUIDE: `${docsUrl}/concepts/vega-chain/#staking-on-vega`,
VEGA_WALLET_CONCEPTS_URL: `${docsUrl}/concepts/vega-wallet`,
+ PROPOSALS_GUIDE: `${docsUrl}/tutorials/proposals`,
});
export const ExternalLinks = {
@@ -16,7 +17,6 @@ export const ExternalLinks = {
GITHUB: 'https://github.com/vegaprotocol/token-frontend',
DISCORD: 'https://vega.xyz/discord',
GOVERNANCE_PAGE: 'https://vega.xyz/governance',
- PROPOSALS_GUIDE: 'https://docs.vega.xyz/docs/mainnet/tutorials/proposals',
VALIDATOR_FORUM: 'https://community.vega.xyz/c/mainnet-validator-candidates',
MARGIN_CREDIT_RISK:
'https://vega.xyz/papers/margins-and-credit-risk.pdf#page=7',