Skip to content

Commit

Permalink
Update SDK pull references script
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Electron authored Oct 23, 2023
1 parent 34b9cab commit c27e832
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 30 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build:theme": "yarn ./theme build",
"checkout": "git submodule update --init",
"checkout:remote": "yarn checkout --remote",
"generate:api": "docusaurus gen-api-docs all && ./scripts/gen_sdk_references.sh",
"generate:api": "docusaurus gen-api-docs all && ./scripts/get_sdk_references.sh",
"lint": "eslint --cache --fix .",
"lint:check": "eslint --cache .",
"lint:links": "iota-wiki check",
Expand Down
29 changes: 0 additions & 29 deletions scripts/gen_sdk_references.sh

This file was deleted.

16 changes: 16 additions & 0 deletions scripts/get_sdk_references.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

# Create temporaty directory to work in
mkdir tmp
cd tmp

# Download and copy docs
curl -sL https://s3.eu-central-1.amazonaws.com/files.iota.org/iota-wiki/iota-sdk/1.0/python.tar.gz | tar xzv
cp -Rv docs/python ../docs/build/iota-sdk/1.0/docs/references/

curl -sL https://s3.eu-central-1.amazonaws.com/files.iota.org/iota-wiki/iota-sdk/1.0/nodejs.tar.gz | tar xzv
cp -Rv docs/nodejs ../docs/build/iota-sdk/1.0/docs/references/

# Return to root and cleanup
cd -
rm -rf tmp

0 comments on commit c27e832

Please sign in to comment.