Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix injections #2454

Merged
merged 1 commit into from
Aug 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/build-build-with-polkadot.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Some examples of features you can have on a parachain or parathread:
- A governance mechanism that could manage a DAO that is responsible for allocating your on-chain
treasury.

![build 1](../assets/build-1.png)
![build 1](./assets/build-1.png)

Parachains open possibilities to construct complex runtime logic that would be too expensive to
execute with smart contracts. However, unlike smart contracts, parachains lack a mandatory gas
Expand All @@ -95,7 +95,7 @@ Most likely you’ve already realized that your application is better suited to
(or a hybrid of them both), but if you need a quick recap to digest the information, you can use
this comparison chart as a cheat sheet:

![build 2](../assets/build-2.png)
![build 2](./assets/build-2.png)

> **Note:** The image above does not include parathreads, but as we mentioned before all the
> benefits of parachains apply just as well to parathreads. Parathreads, however, _are_ cheaper to
Expand Down
2 changes: 1 addition & 1 deletion docs/learn-staking.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ can pay rewards.

In Polkadot and Kusama, this limit is currently {{ polkadot_max_nominators }}, although this can be
modified via runtime upgrade. A validator with more than {{ polkadot_max_nominators }} nominators is
_oversubscribed_. When payouts occur, only the top {{ polkadot_max_nominators }} nominators as
*oversubscribed*. When payouts occur, only the top {{ polkadot_max_nominators }} nominators as
measured by amount of stake allocated to that validator will receive rewards. All other nominators
are essentially "wasting" their stake - they used their nomination to elect that validator to the
active stake, but receive no rewards in exchange for doing so.
Expand Down
2 changes: 1 addition & 1 deletion kusama-guide-v2/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports = {
},
path: "../docs",
sidebarPath: "./sidebars.js",
remarkPlugins: isBuilding || isPub ? [injectPlugin({ isPolkadot: false })] : [],
remarkPlugins: [injectPlugin({ isPolkadot: false })],
},
theme: {
customCss: [
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,12 @@
"@actions/github": "^5.0.0",
"@crowdin/cli": "^3.6.4",
"@docusaurus/core": "2.0.0-beta.4",
"@docusaurus/module-type-aliases": "^2.0.0-beta.3",
"@docusaurus/plugin-client-redirects": "^2.0.0-beta.3",
"@docusaurus/module-type-aliases": "^2.0.0-beta.4",
"@docusaurus/plugin-client-redirects": "^2.0.0-beta.4",
"@docusaurus/preset-classic": "2.0.0-beta.4",
"@polkadot/keyring": "^7.1.1",
"@octokit/rest": "^18.9.0",
"@polkadot/api": "^5.4.1",
"@polkadot/keyring": "^7.0.3",
"axios": "^0.21.1",
"chalk": "^4.1.2",
"cross-env": "^7.0.3",
Expand Down
2 changes: 1 addition & 1 deletion scripts/injectPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const conditionalReplace = (node, file, options) => {

function transform(options) {
return (tree, file) => {
visit(tree, "paragraph", (node) => {
visit(tree, ["paragraph", "emphasis", "heading"], (node) => {
conditionalReplace(node, file, options);
});

Expand Down
2 changes: 1 addition & 1 deletion website-v2/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = {
path: "../docs",
sidebarPath: "./sidebars.js",
routeBasePath: "docs",
remarkPlugins: isBuilding || isPublishing ? [injectPlugin({ isPolkadot: true })] : [],
remarkPlugins: [injectPlugin({ isPolkadot: true })],
},
theme: {
customCss: [
Expand Down
157 changes: 10 additions & 147 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1189,90 +1189,6 @@
"@docsearch/css" "3.0.0-alpha.39"
algoliasearch "^4.0.0"

"@docusaurus/[email protected]":
version "2.0.0-beta.3"
resolved "https://registry.yarnpkg.com/@docusaurus/core/-/core-2.0.0-beta.3.tgz#3af14897dcf5b73554314f6ed02c46cf0f463336"
integrity sha512-vzKmQsvOCte9odf0ZRU2h5UzdI1km5D0NU3Ee6xn06VydYZ169B1IF5KV1LWHSYklnsEmzizJ/jeopFCry0cGg==
dependencies:
"@babel/core" "^7.12.16"
"@babel/generator" "^7.12.15"
"@babel/plugin-syntax-dynamic-import" "^7.8.3"
"@babel/plugin-transform-runtime" "^7.12.15"
"@babel/preset-env" "^7.12.16"
"@babel/preset-react" "^7.12.13"
"@babel/preset-typescript" "^7.12.16"
"@babel/runtime" "^7.12.5"
"@babel/runtime-corejs3" "^7.12.13"
"@babel/traverse" "^7.12.13"
"@docusaurus/cssnano-preset" "2.0.0-beta.3"
"@docusaurus/react-loadable" "5.5.0"
"@docusaurus/types" "2.0.0-beta.3"
"@docusaurus/utils" "2.0.0-beta.3"
"@docusaurus/utils-common" "2.0.0-beta.3"
"@docusaurus/utils-validation" "2.0.0-beta.3"
"@slorber/static-site-generator-webpack-plugin" "^4.0.0"
"@svgr/webpack" "^5.5.0"
autoprefixer "^10.2.5"
babel-loader "^8.2.2"
babel-plugin-dynamic-import-node "2.3.0"
boxen "^5.0.1"
chalk "^4.1.1"
chokidar "^3.5.1"
clean-css "^5.1.2"
commander "^5.1.0"
copy-webpack-plugin "^9.0.0"
core-js "^3.9.1"
css-loader "^5.1.1"
css-minimizer-webpack-plugin "^3.0.1"
cssnano "^5.0.4"
del "^6.0.0"
detect-port "^1.3.0"
escape-html "^1.0.3"
eta "^1.12.1"
express "^4.17.1"
file-loader "^6.2.0"
fs-extra "^10.0.0"
github-slugger "^1.3.0"
globby "^11.0.2"
html-minifier-terser "^5.1.1"
html-tags "^3.1.0"
html-webpack-plugin "^5.3.2"
import-fresh "^3.3.0"
is-root "^2.1.0"
leven "^3.1.0"
lodash "^4.17.20"
mini-css-extract-plugin "^1.6.0"
module-alias "^2.2.2"
nprogress "^0.2.0"
postcss "^8.2.15"
postcss-loader "^5.3.0"
prompts "^2.4.1"
react-dev-utils "^11.0.1"
react-error-overlay "^6.0.9"
react-helmet "^6.1.0"
react-loadable "^5.5.0"
react-loadable-ssr-addon-v5-slorber "^1.0.1"
react-router "^5.2.0"
react-router-config "^5.1.1"
react-router-dom "^5.2.0"
resolve-pathname "^3.0.0"
rtl-detect "^1.0.3"
semver "^7.3.4"
serve-handler "^6.1.3"
shelljs "^0.8.4"
std-env "^2.2.1"
strip-ansi "^6.0.0"
terser-webpack-plugin "^5.1.3"
tslib "^2.2.0"
update-notifier "^5.1.0"
url-loader "^4.1.1"
wait-on "^5.3.0"
webpack "^5.40.0"
webpack-bundle-analyzer "^4.4.2"
webpack-dev-server "^3.11.2"
webpack-merge "^5.8.0"
webpackbar "^5.0.0-3"

"@docusaurus/[email protected]":
version "2.0.0-beta.4"
resolved "https://registry.yarnpkg.com/@docusaurus/core/-/core-2.0.0-beta.4.tgz#b41c5064c8737405cfceb1a373c9c5aa3410fd95"
Expand Down Expand Up @@ -1357,15 +1273,6 @@
webpack-merge "^5.8.0"
webpackbar "^5.0.0-3"

"@docusaurus/[email protected]":
version "2.0.0-beta.3"
resolved "https://registry.yarnpkg.com/@docusaurus/cssnano-preset/-/cssnano-preset-2.0.0-beta.3.tgz#b82d58df4e95b04cd57a3e9922d39056207d2c73"
integrity sha512-k7EkNPluB+TV++oZB8Je4EQ6Xs6cR0SvgIU9vdXm00qyPCu38MMfRwSY4HnsVUV797T/fQUD91zkuwhyXCUGLA==
dependencies:
cssnano-preset-advanced "^5.1.1"
postcss "^8.2.15"
postcss-sort-media-queries "^3.10.11"

"@docusaurus/[email protected]":
version "2.0.0-beta.4"
resolved "https://registry.yarnpkg.com/@docusaurus/cssnano-preset/-/cssnano-preset-2.0.0-beta.4.tgz#a40c0bee39143a531ca4dde05bb3a84bec416668"
Expand Down Expand Up @@ -1399,21 +1306,21 @@
url-loader "^4.1.1"
webpack "^5.40.0"

"@docusaurus/module-type-aliases@^2.0.0-beta.3":
"@docusaurus/module-type-aliases@^2.0.0-beta.4":
version "2.0.0-beta.4"
resolved "https://registry.yarnpkg.com/@docusaurus/module-type-aliases/-/module-type-aliases-2.0.0-beta.4.tgz#a48e3bdb81ce77c4438ff94d6ee15859c5705ede"
integrity sha512-FRAAOJMDbHcBNgFvH4ihPszxraTTCkS7kN3q8WIj67Uv8u3+T36XWpReWdFYmzfPA4QyFx9YK4u1bmF7pndBSw==

"@docusaurus/plugin-client-redirects@^2.0.0-beta.3":
version "2.0.0-beta.3"
resolved "https://registry.yarnpkg.com/@docusaurus/plugin-client-redirects/-/plugin-client-redirects-2.0.0-beta.3.tgz#c5e70286cd60557fce3b60c48b2c0a976e71e5fc"
integrity sha512-15lU21XYFC3afH2OFCa7Qul6yOdDPDiYJTJg3mOE3h0mzXlbrHeOkkbMJTwbSLmktwyiCxORFJX0zRk1/zXsow==
"@docusaurus/plugin-client-redirects@^2.0.0-beta.4":
version "2.0.0-beta.4"
resolved "https://registry.yarnpkg.com/@docusaurus/plugin-client-redirects/-/plugin-client-redirects-2.0.0-beta.4.tgz#607585d030dbcb0bc264efdf19ad07844af96e3b"
integrity sha512-ku7HeR7GNT4/HHMuubywfT8iGZendUjeUd0HSjLvdB6jGwZ2KgdPHzv7PiY/V2CjPQ+EidMZVriFv7VcwhATYA==
dependencies:
"@docusaurus/core" "2.0.0-beta.3"
"@docusaurus/types" "2.0.0-beta.3"
"@docusaurus/utils" "2.0.0-beta.3"
"@docusaurus/utils-common" "2.0.0-beta.3"
"@docusaurus/utils-validation" "2.0.0-beta.3"
"@docusaurus/core" "2.0.0-beta.4"
"@docusaurus/types" "2.0.0-beta.4"
"@docusaurus/utils" "2.0.0-beta.4"
"@docusaurus/utils-common" "2.0.0-beta.4"
"@docusaurus/utils-validation" "2.0.0-beta.4"
chalk "^4.1.1"
eta "^1.11.0"
fs-extra "^10.0.0"
Expand Down Expand Up @@ -1621,17 +1528,6 @@
eta "^1.12.1"
lodash "^4.17.20"

"@docusaurus/[email protected]":
version "2.0.0-beta.3"
resolved "https://registry.yarnpkg.com/@docusaurus/types/-/types-2.0.0-beta.3.tgz#042838d3a1ce0aa6f0df1b87180da0d503268d9b"
integrity sha512-ivQ6L1ahju06ldTvFsZLQxcN6DP32iIB7DscxWVRqP0eyuyX2xAy+jrASqih3lB8lyw0JJaaDEeVE5fjroAQ/Q==
dependencies:
commander "^5.1.0"
joi "^17.4.0"
querystring "0.2.0"
webpack "^5.40.0"
webpack-merge "^5.8.0"

"@docusaurus/[email protected]":
version "2.0.0-beta.4"
resolved "https://registry.yarnpkg.com/@docusaurus/types/-/types-2.0.0-beta.4.tgz#9eef0a88b008ebd65bb9870b7ff0050de0e620c4"
Expand All @@ -1643,14 +1539,6 @@
webpack "^5.40.0"
webpack-merge "^5.8.0"

"@docusaurus/[email protected]":
version "2.0.0-beta.3"
resolved "https://registry.yarnpkg.com/@docusaurus/utils-common/-/utils-common-2.0.0-beta.3.tgz#85fc7f7572d0f55e62b8f0baeb91967bf7d699e0"
integrity sha512-KJgDN4G2MzJcHy+OR2e/xgEwRy+vX26pzwtjPkRjNf24CPa0BwFbRmR5apbltCgTB10vT6xroStc8Quv/286Cg==
dependencies:
"@docusaurus/types" "2.0.0-beta.3"
tslib "^2.2.0"

"@docusaurus/[email protected]":
version "2.0.0-beta.4"
resolved "https://registry.yarnpkg.com/@docusaurus/utils-common/-/utils-common-2.0.0-beta.4.tgz#eb2e5876f5f79d037fa7e1867177658661b9c1c2"
Expand All @@ -1659,16 +1547,6 @@
"@docusaurus/types" "2.0.0-beta.4"
tslib "^2.2.0"

"@docusaurus/[email protected]":
version "2.0.0-beta.3"
resolved "https://registry.yarnpkg.com/@docusaurus/utils-validation/-/utils-validation-2.0.0-beta.3.tgz#24e8187ff853dfec111faaef75af432274bd8773"
integrity sha512-jGX78NNrxDZFgDjLaa6wuJ/eKDoHdZFG2CVX3uCaIGe1x8eTMG2/e/39GzbZl+W7VHYpW0bzdf/5dFhaKLfQbQ==
dependencies:
"@docusaurus/utils" "2.0.0-beta.3"
chalk "^4.1.1"
joi "^17.4.0"
tslib "^2.1.0"

"@docusaurus/[email protected]":
version "2.0.0-beta.4"
resolved "https://registry.yarnpkg.com/@docusaurus/utils-validation/-/utils-validation-2.0.0-beta.4.tgz#417ff389d61aab4c6544f169e31bb86573b518df"
Expand All @@ -1679,21 +1557,6 @@
joi "^17.4.0"
tslib "^2.1.0"

"@docusaurus/[email protected]":
version "2.0.0-beta.3"
resolved "https://registry.yarnpkg.com/@docusaurus/utils/-/utils-2.0.0-beta.3.tgz#81bdf02c5128f3d307d56925cbc398dbf3600e50"
integrity sha512-DApc6xcb3CvvsBCfRU6Zk3KoZa4mZfCJA4XRv5zhlhaSb0GFuAo7KQ353RUu6d0eYYylY3GGRABXkxRE1SEClA==
dependencies:
"@docusaurus/types" "2.0.0-beta.3"
"@types/github-slugger" "^1.3.0"
chalk "^4.1.1"
escape-string-regexp "^4.0.0"
fs-extra "^10.0.0"
gray-matter "^4.0.3"
lodash "^4.17.20"
resolve-pathname "^3.0.0"
tslib "^2.2.0"

"@docusaurus/[email protected]":
version "2.0.0-beta.4"
resolved "https://registry.yarnpkg.com/@docusaurus/utils/-/utils-2.0.0-beta.4.tgz#6e572371b0a59360b49102d014579f5364f1d8da"
Expand Down