Skip to content

Commit

Permalink
ci: protocol contract docs (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev authored Sep 5, 2024
1 parent 6db1a5d commit dfe849b
Show file tree
Hide file tree
Showing 75 changed files with 11 additions and 5,237 deletions.
8 changes: 4 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
version: 2
updates:
- package-ecosystem: "npm"
directories:
directories:
- "/"
- "/packages/zeta-app-contracts"
- "/packages/zevm-app-contracts"
schedule:
interval: "daily"
commit-message:
prefix: "dependabot: "
prefix: "dependabot: "
labels:
- "dependencies"
- "dependencies"
allow:
- dependency-name: "@zetachain/addresses"
- dependency-name: "@zetachain/toolkit"
- dependency-name: "@zetachain/ui-toolkit
- dependency-name: "@zetachain/ui-toolkit"
9 changes: 5 additions & 4 deletions .github/workflows/update-from-protocol-contracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ jobs:

- name: Update docs
run: |
mkdir -p src/pages/architecture/contracts
rm -rf src/pages/architecture/contracts/*
cp -r protocol-contracts/docs/src/* src/pages/architecture/contracts/
mkdir -p src/pages/developers/architecture/protocol
rm -rf src/pages/developers/architecture/protocol/*
cp -r protocol-contracts/v2/docs/src/* src/pages/developers/architecture/protocol/
rm -rf protocol-contracts
- name: Check for changes
id: check-changes
run: |
git add src/pages/architecture/contracts
git add src/pages/developers/architecture/protocol
git diff --cached --exit-code || echo "::set-output name=changed::true"
- name: Create Pull Request
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lint:fix": "npx eslint --ext .js,.jsx,.ts,.tsx --fix ./src",
"lint": "npx eslint --ext .js,.jsx,.ts,.tsx ./src",
"start": "next start",
"check-links": "EXPORT=true yarn build && npx linkinator ./out --recurse --verbosity error --skip '^https' --skip '/developers/architecture/contracts'",
"check-links": "EXPORT=true yarn build && npx linkinator ./out --recurse --verbosity error --skip '^https' --skip '/developers/architecture/protocol'",
"clean": "rimraf .next out",
"tsc:watch": "tsc --watch",
"typecheck": "tsc --project ./tsconfig.json --noEmit",
Expand Down Expand Up @@ -132,4 +132,4 @@
}
},
"packageManager": "[email protected]+sha1.1959a18351b811cdeedbd484a8f86c3cc3bbaf72"
}
}
94 changes: 0 additions & 94 deletions src/pages/developers/architecture/contracts/README.md

This file was deleted.

72 changes: 0 additions & 72 deletions src/pages/developers/architecture/contracts/SUMMARY.md

This file was deleted.

This file was deleted.

Loading

0 comments on commit dfe849b

Please sign in to comment.