From 40c07f6a4774cae90e3b3c66a66251a83abf6e78 Mon Sep 17 00:00:00 2001 From: Jimmy Chu Date: Mon, 24 Jan 2022 19:11:26 +0800 Subject: [PATCH] Changing the node package to be under @substrate namespace (#10722) Signed-off-by: Jimmy Chu --- .gitlab-ci.yml | 2 +- .maintain/rustdocs-release.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a0b71fcff02e5..b2716b018d6c0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -782,7 +782,7 @@ publish-rustdoc: - cp README.md /tmp/doc/ - git checkout gh-pages # Install `index-tpl-crud` and generate index.html based on RUSTDOCS_DEPLOY_REFS - - which index-tpl-crud &> /dev/null || yarn global add @jimmychu0807/index-tpl-crud + - which index-tpl-crud &> /dev/null || yarn global add @substrate/index-tpl-crud - index-tpl-crud upsert ./index.html ${CI_COMMIT_REF_NAME} # Ensure the destination dir doesn't exist. - rm -rf ${CI_COMMIT_REF_NAME} diff --git a/.maintain/rustdocs-release.sh b/.maintain/rustdocs-release.sh index 8a250849ee7a6..2a1e141e63ad2 100755 --- a/.maintain/rustdocs-release.sh +++ b/.maintain/rustdocs-release.sh @@ -5,7 +5,7 @@ # - With `deploy` sub-command, it will checkout the passed-in branch/tag ref, build the rustdocs # locally (this takes some time), update the `index.html` index page, and push it to remote # `gh-pages` branch. So users running this command need to have write access to the remote -# `gh-pages` branch. This sub-command depends on [@jimmychu0807/index-tpl-crud](https://www.npmjs.com/package/@jimmychu0807/index-tpl-crud) +# `gh-pages` branch. This sub-command depends on [@substrate/index-tpl-crud](https://www.npmjs.com/package/@substrate/index-tpl-crud) # to update the DOM of index.html page. # - With `remove` sub-command, it will remove the deployed rustdocs from `gh-pages`, and update the # index.html page as necessary. It may remove the `latest` symbolic link. @@ -24,7 +24,7 @@ # rustdocs-release.sh remove monthly-2021-10 # # Dependencies: -# - @jimmychu0807/index-tpl-crud - https://www.npmjs.com/package/@jimmychu0807/index-tpl-crud +# - @substrate/index-tpl-crud - https://www.npmjs.com/package/@substrate/index-tpl-crud # # Script setting @@ -93,12 +93,12 @@ build_rustdocs() { upsert_index_page() { # Check if `index-tpl-crud` exists - which index-tpl-crud &> /dev/null || yarn global add @jimmychu0807/index-tpl-crud + which index-tpl-crud &> /dev/null || yarn global add @substrate/index-tpl-crud index-tpl-crud upsert $($1 && echo "-l") ./index.html "$2" } rm_index_page() { - which index-tpl-crud &> /dev/null || yarn global add @jimmychu0807/index-tpl-crud + which index-tpl-crud &> /dev/null || yarn global add @substrate/index-tpl-crud index-tpl-crud rm ./index.html "$1" }