From e47661bc0fe6a22a1e6240f6402b42d37411cc95 Mon Sep 17 00:00:00 2001 From: Damian Parrino Date: Fri, 13 May 2022 12:32:54 -0300 Subject: [PATCH] fix links --- docs/concepts/data-collections.md | 2 +- docs/concepts/epoch.md | 2 +- docs/concepts/gas.md | 2 +- docs/faq/developer-faq.md | 2 +- docs/faq/economics-faq.md | 2 +- website/docusaurus.config.js | 2 +- website/mlc_config.json | 3 +++ website/package.json | 3 ++- 8 files changed, 11 insertions(+), 7 deletions(-) diff --git a/docs/concepts/data-collections.md b/docs/concepts/data-collections.md index 301ddcf941b..335c6da54cf 100644 --- a/docs/concepts/data-collections.md +++ b/docs/concepts/data-collections.md @@ -348,7 +348,7 @@ pub fn get_unordered_map(&self, key: String) -> String { } ``` -[ [SDK source](https://github.com/near/near-sdk-rs/blob/master/near-sdk/src/collections/unordered_map.rs) ] +[ [SDK source](https://github.com/near/near-sdk-rs/tree/master/near-sdk/src/collections/unordered_map) ] [ [Implementation](https://docs.rs/near-sdk/latest/near_sdk/collections/struct.UnorderedMap.html) ] diff --git a/docs/concepts/epoch.md b/docs/concepts/epoch.md index a98ada39548..3c7def71d06 100644 --- a/docs/concepts/epoch.md +++ b/docs/concepts/epoch.md @@ -77,7 +77,7 @@ http post https://rpc.testnet.near.org jsonrpc=2.0 id=dontcare method=EXPERIMENT } ``` -You can learn more about how epoch's are used to manage network validation in the [Validator FAQ](https://wiki.near.org/validators/faq#what-is-an-epoch). +You can learn more about how epochs are used to manage network validation in the [Validator FAQ](https://github.com/near/wiki/blob/master/Archive/validators/faq.md#what-is-an-epoch). > Got a question? > diff --git a/docs/concepts/gas.md b/docs/concepts/gas.md index 5f9ba3c2fba..c91e88de505 100644 --- a/docs/concepts/gas.md +++ b/docs/concepts/gas.md @@ -4,7 +4,7 @@ title: Introduction sidebar_label: Introduction --- -When you make calls to the NEAR blockchain to update or change data, the people running the infrastructure of the blockchain incur some cost. At the end of the day, some computers somewhere process your request, and the [validators](https://wiki.near.org/validators/staking-overview) running these computers spend significant capital to keep these computers running. +When you make calls to the NEAR blockchain to update or change data, the people running the infrastructure of the blockchain incur some cost. At the end of the day, some computers somewhere process your request, and the [validators](https://github.com/near/wiki/blob/master/Archive/validators/about.md) running these computers spend significant capital to keep these computers running. Like other programmable blockchains, NEAR compensates these people by charging _transaction fees_, also called _gas fees_. diff --git a/docs/faq/developer-faq.md b/docs/faq/developer-faq.md index 1f93ede377f..23b6b5a95c7 100644 --- a/docs/faq/developer-faq.md +++ b/docs/faq/developer-faq.md @@ -142,7 +142,7 @@ NEAR is organized around `accounts`. Contract code is deployed 1:1 against an ac We don't need GPU support as we are a POS chain and we require very little compute power. -You can read more about our consensus strategy on our [Validator Quickstart](https://wiki.near.org/validators/staking-overview) and [Staking FAQ](https://wiki.near.org/validators/faq). +You can read more about our consensus strategy on our [Validator Quickstart](https://github.com/near/wiki/blob/master/Archive/validators/about.md) and [Staking FAQ](https://github.com/near/wiki/blob/master/Archive/validators/faq.md). ### If a developer writes a vulnerable or malicious dApp, is a validator implicitly taking on risk? {#if-a-developer-writes-a-vulnerable-or-malicious-dapp-is-a-validator-implicitly-taking-on-risk} diff --git a/docs/faq/economics-faq.md b/docs/faq/economics-faq.md index bc70d5ddf4e..4350072a395 100644 --- a/docs/faq/economics-faq.md +++ b/docs/faq/economics-faq.md @@ -30,7 +30,7 @@ Please head over to our economics paper https://near.org/papers/economics-in-sha _Last updated: 20200902_ -Yes. They cannot be transferred while they are still locked but staking and delegation is possible. For a full breakdown of token distribution and lockups, please see the [Token Distribution Post](https://near.org/blog/near-token-supply-and-distribution/). For more information on staking, see the [staking FAQ](https://wiki.near.org/validators/faq) or [Token docs](https://wiki.near.org/ecosystem/near-token/token-custody) +Yes. They cannot be transferred while they are still locked but staking and delegation is possible. For a full breakdown of token distribution and lockups, please see the [Token Distribution Post](https://near.org/blog/near-token-supply-and-distribution/). For more information on staking, see the [staking FAQ](https://wiki.near.org/getting-started/staking-guide) or [Token docs](https://wiki.near.org/getting-started/near-token/token-custody) ### What are the advantages to receiving tokens prior to transfers being unrestricted? {#what-are-the-advantages-to-receiving-tokens-prior-to-transfers-being-unrestricted} diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index ccbfeed0b02..eff1e626d1a 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -54,7 +54,7 @@ module.exports = { }, "blog": {}, "theme": { - "customCss": "../src/css/customTheme.css" + "customCss": require.resolve("./src/css/customTheme.css") } } ] diff --git a/website/mlc_config.json b/website/mlc_config.json index b80b4518b88..08c515210d7 100644 --- a/website/mlc_config.json +++ b/website/mlc_config.json @@ -15,6 +15,9 @@ { "pattern": "^https://support.ledger.com" }, + { + "pattern": "^https://help.github.com" + }, { "pattern": "^https://explorer.betanet.near.org" }, diff --git a/website/package.json b/website/package.json index 46bcb935037..2a76269b28d 100644 --- a/website/package.json +++ b/website/package.json @@ -32,6 +32,7 @@ "@saucelabs/theme-github-codeblock": "^0.1.1", "clsx": "^1.1.1", "react": "^17.0.1", - "react-dom": "^17.0.1" + "react-dom": "^17.0.1", + "url": "^0.11.0" } }