Skip to content

Commit

Permalink
added script to download iota refs
Browse files Browse the repository at this point in the history
added step that calls the download-iota-refs script
  • Loading branch information
lucas-tortora committed Dec 18, 2024
1 parent 5904075 commit ea46087
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build": "docusaurus build",
"generate-ts-docs": "docusaurus generate-typedoc",
"generate-graphql-docs" : "docusaurus graphql-to-doc; rm '../../generated-graphql-docs/generated.md';",
"download-references": "git clean -Xdf ../content/references/iota-evm/; ./scripts/get-iota-evm-references.sh; git clean -Xdf ../content/references/iota-identity/; ./scripts/get-iota-identity-references.sh",
"download-references": "git clean -Xdf ../content/references/; ./scripts/get-iota-references.sh; git clean -Xdf ../content/references/iota-evm/; ./scripts/get-iota-evm-references.sh; git clean -Xdf ../content/references/iota-identity/; ./scripts/get-iota-identity-references.sh",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
Expand Down
19 changes: 19 additions & 0 deletions docs/site/scripts/get-iota-references.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh

# Create temporary 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/testnet/ts
cp -Rv ts ../../docs/content/references/ts-sdk/api

curl -sL https://s3.eu-central-1.amazonaws.com/files.iota.org/iota-wiki/testnet/graphql/reference
cp -Rv graphql ../../docs/content/references/iota-api/iota-graphql

curl -sL https://s3.eu-central-1.amazonaws.com/files.iota.org/iota-wiki/testnet/ts
cp -Rv rust ../../docs/content/references/framework

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

0 comments on commit ea46087

Please sign in to comment.