diff --git a/.github/workflows/sync-tutorials.yml b/.github/workflows/sync-tutorials.yml
index 3f5fa3a6..18a8701d 100644
--- a/.github/workflows/sync-tutorials.yml
+++ b/.github/workflows/sync-tutorials.yml
@@ -3,7 +3,7 @@ name: Sync Tutorials
on:
workflow_dispatch:
schedule:
- - cron: '0 0 * * *' # 每天运行一次
+ - cron: '0 0 * * 0' // 每周运行一次
jobs:
sync-tutorials:
@@ -32,6 +32,9 @@ jobs:
echo "::set-output name=changes::$temp"
rm temp.txt
+ - name: Generate Sidebar
+ run: npm run generate:sidebar
+
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
diff --git a/docs/solidity-102/1_Overloading/Overloading.sol b/docs/solidity-102/16_Overloading/Overloading.sol
similarity index 100%
rename from docs/solidity-102/1_Overloading/Overloading.sol
rename to docs/solidity-102/16_Overloading/Overloading.sol
diff --git a/docs/solidity-102/1_Overloading/img/16-1.jpg b/docs/solidity-102/16_Overloading/img/16-1.jpg
similarity index 100%
rename from docs/solidity-102/1_Overloading/img/16-1.jpg
rename to docs/solidity-102/16_Overloading/img/16-1.jpg
diff --git a/docs/solidity-102/1_Overloading/meta.json b/docs/solidity-102/16_Overloading/meta.json
similarity index 100%
rename from docs/solidity-102/1_Overloading/meta.json
rename to docs/solidity-102/16_Overloading/meta.json
diff --git a/docs/solidity-102/1_Overloading/readme.md b/docs/solidity-102/16_Overloading/readme.md
similarity index 100%
rename from docs/solidity-102/1_Overloading/readme.md
rename to docs/solidity-102/16_Overloading/readme.md
diff --git a/docs/solidity-102/2_Library/Library.sol b/docs/solidity-102/17_Library/Library.sol
similarity index 100%
rename from docs/solidity-102/2_Library/Library.sol
rename to docs/solidity-102/17_Library/Library.sol
diff --git a/docs/solidity-102/2_Library/meta.json b/docs/solidity-102/17_Library/meta.json
similarity index 100%
rename from docs/solidity-102/2_Library/meta.json
rename to docs/solidity-102/17_Library/meta.json
diff --git a/docs/solidity-102/2_Library/readme.md b/docs/solidity-102/17_Library/readme.md
similarity index 100%
rename from docs/solidity-102/2_Library/readme.md
rename to docs/solidity-102/17_Library/readme.md
diff --git a/docs/solidity-102/3_Import/Yeye.sol b/docs/solidity-102/18_Import/Yeye.sol
similarity index 100%
rename from docs/solidity-102/3_Import/Yeye.sol
rename to docs/solidity-102/18_Import/Yeye.sol
diff --git a/docs/solidity-102/3_Import/img/18-1.png b/docs/solidity-102/18_Import/img/18-1.png
similarity index 100%
rename from docs/solidity-102/3_Import/img/18-1.png
rename to docs/solidity-102/18_Import/img/18-1.png
diff --git a/docs/solidity-102/3_Import/import.sol b/docs/solidity-102/18_Import/import.sol
similarity index 100%
rename from docs/solidity-102/3_Import/import.sol
rename to docs/solidity-102/18_Import/import.sol
diff --git a/docs/solidity-102/3_Import/meta.json b/docs/solidity-102/18_Import/meta.json
similarity index 100%
rename from docs/solidity-102/3_Import/meta.json
rename to docs/solidity-102/18_Import/meta.json
diff --git a/docs/solidity-102/3_Import/readme.md b/docs/solidity-102/18_Import/readme.md
similarity index 100%
rename from docs/solidity-102/3_Import/readme.md
rename to docs/solidity-102/18_Import/readme.md
diff --git a/docs/solidity-102/4_Fallback/Fallback.sol b/docs/solidity-102/19_Fallback/Fallback.sol
similarity index 100%
rename from docs/solidity-102/4_Fallback/Fallback.sol
rename to docs/solidity-102/19_Fallback/Fallback.sol
diff --git a/docs/solidity-102/4_Fallback/img/19-1.jpg b/docs/solidity-102/19_Fallback/img/19-1.jpg
similarity index 100%
rename from docs/solidity-102/4_Fallback/img/19-1.jpg
rename to docs/solidity-102/19_Fallback/img/19-1.jpg
diff --git a/docs/solidity-102/4_Fallback/img/19-2.jpg b/docs/solidity-102/19_Fallback/img/19-2.jpg
similarity index 100%
rename from docs/solidity-102/4_Fallback/img/19-2.jpg
rename to docs/solidity-102/19_Fallback/img/19-2.jpg
diff --git a/docs/solidity-102/4_Fallback/img/19-3.jpg b/docs/solidity-102/19_Fallback/img/19-3.jpg
similarity index 100%
rename from docs/solidity-102/4_Fallback/img/19-3.jpg
rename to docs/solidity-102/19_Fallback/img/19-3.jpg
diff --git a/docs/solidity-102/4_Fallback/img/19-4.jpg b/docs/solidity-102/19_Fallback/img/19-4.jpg
similarity index 100%
rename from docs/solidity-102/4_Fallback/img/19-4.jpg
rename to docs/solidity-102/19_Fallback/img/19-4.jpg
diff --git a/docs/solidity-102/4_Fallback/meta.json b/docs/solidity-102/19_Fallback/meta.json
similarity index 100%
rename from docs/solidity-102/4_Fallback/meta.json
rename to docs/solidity-102/19_Fallback/meta.json
diff --git a/docs/solidity-102/4_Fallback/readme.md b/docs/solidity-102/19_Fallback/readme.md
similarity index 100%
rename from docs/solidity-102/4_Fallback/readme.md
rename to docs/solidity-102/19_Fallback/readme.md
diff --git a/docs/solidity-102/5_SendETH/SendETH.sol b/docs/solidity-102/20_SendETH/SendETH.sol
similarity index 100%
rename from docs/solidity-102/5_SendETH/SendETH.sol
rename to docs/solidity-102/20_SendETH/SendETH.sol
diff --git a/docs/solidity-102/5_SendETH/img/20-1.png b/docs/solidity-102/20_SendETH/img/20-1.png
similarity index 100%
rename from docs/solidity-102/5_SendETH/img/20-1.png
rename to docs/solidity-102/20_SendETH/img/20-1.png
diff --git a/docs/solidity-102/5_SendETH/img/20-2.png b/docs/solidity-102/20_SendETH/img/20-2.png
similarity index 100%
rename from docs/solidity-102/5_SendETH/img/20-2.png
rename to docs/solidity-102/20_SendETH/img/20-2.png
diff --git a/docs/solidity-102/5_SendETH/img/20-3.png b/docs/solidity-102/20_SendETH/img/20-3.png
similarity index 100%
rename from docs/solidity-102/5_SendETH/img/20-3.png
rename to docs/solidity-102/20_SendETH/img/20-3.png
diff --git a/docs/solidity-102/5_SendETH/img/20-4.png b/docs/solidity-102/20_SendETH/img/20-4.png
similarity index 100%
rename from docs/solidity-102/5_SendETH/img/20-4.png
rename to docs/solidity-102/20_SendETH/img/20-4.png
diff --git a/docs/solidity-102/5_SendETH/img/20-5.png b/docs/solidity-102/20_SendETH/img/20-5.png
similarity index 100%
rename from docs/solidity-102/5_SendETH/img/20-5.png
rename to docs/solidity-102/20_SendETH/img/20-5.png
diff --git a/docs/solidity-102/5_SendETH/img/20-6.png b/docs/solidity-102/20_SendETH/img/20-6.png
similarity index 100%
rename from docs/solidity-102/5_SendETH/img/20-6.png
rename to docs/solidity-102/20_SendETH/img/20-6.png
diff --git a/docs/solidity-102/5_SendETH/img/20-7.png b/docs/solidity-102/20_SendETH/img/20-7.png
similarity index 100%
rename from docs/solidity-102/5_SendETH/img/20-7.png
rename to docs/solidity-102/20_SendETH/img/20-7.png
diff --git a/docs/solidity-102/5_SendETH/img/20-8.png b/docs/solidity-102/20_SendETH/img/20-8.png
similarity index 100%
rename from docs/solidity-102/5_SendETH/img/20-8.png
rename to docs/solidity-102/20_SendETH/img/20-8.png
diff --git a/docs/solidity-102/5_SendETH/meta.json b/docs/solidity-102/20_SendETH/meta.json
similarity index 100%
rename from docs/solidity-102/5_SendETH/meta.json
rename to docs/solidity-102/20_SendETH/meta.json
diff --git a/docs/solidity-102/5_SendETH/readme.md b/docs/solidity-102/20_SendETH/readme.md
similarity index 100%
rename from docs/solidity-102/5_SendETH/readme.md
rename to docs/solidity-102/20_SendETH/readme.md
diff --git a/docs/solidity-102/6_CallContract/CallContract.sol b/docs/solidity-102/21_CallContract/CallContract.sol
similarity index 100%
rename from docs/solidity-102/6_CallContract/CallContract.sol
rename to docs/solidity-102/21_CallContract/CallContract.sol
diff --git a/docs/solidity-102/6_CallContract/img/21-1.png b/docs/solidity-102/21_CallContract/img/21-1.png
similarity index 100%
rename from docs/solidity-102/6_CallContract/img/21-1.png
rename to docs/solidity-102/21_CallContract/img/21-1.png
diff --git a/docs/solidity-102/6_CallContract/img/21-2.png b/docs/solidity-102/21_CallContract/img/21-2.png
similarity index 100%
rename from docs/solidity-102/6_CallContract/img/21-2.png
rename to docs/solidity-102/21_CallContract/img/21-2.png
diff --git a/docs/solidity-102/6_CallContract/img/21-3.png b/docs/solidity-102/21_CallContract/img/21-3.png
similarity index 100%
rename from docs/solidity-102/6_CallContract/img/21-3.png
rename to docs/solidity-102/21_CallContract/img/21-3.png
diff --git a/docs/solidity-102/6_CallContract/img/21-4.png b/docs/solidity-102/21_CallContract/img/21-4.png
similarity index 100%
rename from docs/solidity-102/6_CallContract/img/21-4.png
rename to docs/solidity-102/21_CallContract/img/21-4.png
diff --git a/docs/solidity-102/6_CallContract/img/21-5.png b/docs/solidity-102/21_CallContract/img/21-5.png
similarity index 100%
rename from docs/solidity-102/6_CallContract/img/21-5.png
rename to docs/solidity-102/21_CallContract/img/21-5.png
diff --git a/docs/solidity-102/6_CallContract/img/21-6.png b/docs/solidity-102/21_CallContract/img/21-6.png
similarity index 100%
rename from docs/solidity-102/6_CallContract/img/21-6.png
rename to docs/solidity-102/21_CallContract/img/21-6.png
diff --git a/docs/solidity-102/6_CallContract/img/21-7.png b/docs/solidity-102/21_CallContract/img/21-7.png
similarity index 100%
rename from docs/solidity-102/6_CallContract/img/21-7.png
rename to docs/solidity-102/21_CallContract/img/21-7.png
diff --git a/docs/solidity-102/6_CallContract/img/21-8.png b/docs/solidity-102/21_CallContract/img/21-8.png
similarity index 100%
rename from docs/solidity-102/6_CallContract/img/21-8.png
rename to docs/solidity-102/21_CallContract/img/21-8.png
diff --git a/docs/solidity-102/6_CallContract/img/21-9.png b/docs/solidity-102/21_CallContract/img/21-9.png
similarity index 100%
rename from docs/solidity-102/6_CallContract/img/21-9.png
rename to docs/solidity-102/21_CallContract/img/21-9.png
diff --git a/docs/solidity-102/6_CallContract/meta.json b/docs/solidity-102/21_CallContract/meta.json
similarity index 100%
rename from docs/solidity-102/6_CallContract/meta.json
rename to docs/solidity-102/21_CallContract/meta.json
diff --git a/docs/solidity-102/6_CallContract/readme.md b/docs/solidity-102/21_CallContract/readme.md
similarity index 100%
rename from docs/solidity-102/6_CallContract/readme.md
rename to docs/solidity-102/21_CallContract/readme.md
diff --git a/docs/solidity-102/7_Call/Call.sol b/docs/solidity-102/22_Call/Call.sol
similarity index 100%
rename from docs/solidity-102/7_Call/Call.sol
rename to docs/solidity-102/22_Call/Call.sol
diff --git a/docs/solidity-102/7_Call/img/22-1.png b/docs/solidity-102/22_Call/img/22-1.png
similarity index 100%
rename from docs/solidity-102/7_Call/img/22-1.png
rename to docs/solidity-102/22_Call/img/22-1.png
diff --git a/docs/solidity-102/7_Call/img/22-2.png b/docs/solidity-102/22_Call/img/22-2.png
similarity index 100%
rename from docs/solidity-102/7_Call/img/22-2.png
rename to docs/solidity-102/22_Call/img/22-2.png
diff --git a/docs/solidity-102/7_Call/img/22-3.png b/docs/solidity-102/22_Call/img/22-3.png
similarity index 100%
rename from docs/solidity-102/7_Call/img/22-3.png
rename to docs/solidity-102/22_Call/img/22-3.png
diff --git a/docs/solidity-102/7_Call/meta.json b/docs/solidity-102/22_Call/meta.json
similarity index 100%
rename from docs/solidity-102/7_Call/meta.json
rename to docs/solidity-102/22_Call/meta.json
diff --git a/docs/solidity-102/7_Call/readme.md b/docs/solidity-102/22_Call/readme.md
similarity index 100%
rename from docs/solidity-102/7_Call/readme.md
rename to docs/solidity-102/22_Call/readme.md
diff --git a/docs/solidity-102/8_Delegatecall/Delegatecall.sol b/docs/solidity-102/23_Delegatecall/Delegatecall.sol
similarity index 100%
rename from docs/solidity-102/8_Delegatecall/Delegatecall.sol
rename to docs/solidity-102/23_Delegatecall/Delegatecall.sol
diff --git a/docs/solidity-102/8_Delegatecall/img/23-1.png b/docs/solidity-102/23_Delegatecall/img/23-1.png
similarity index 100%
rename from docs/solidity-102/8_Delegatecall/img/23-1.png
rename to docs/solidity-102/23_Delegatecall/img/23-1.png
diff --git a/docs/solidity-102/8_Delegatecall/img/23-2.png b/docs/solidity-102/23_Delegatecall/img/23-2.png
similarity index 100%
rename from docs/solidity-102/8_Delegatecall/img/23-2.png
rename to docs/solidity-102/23_Delegatecall/img/23-2.png
diff --git a/docs/solidity-102/8_Delegatecall/img/23-3.png b/docs/solidity-102/23_Delegatecall/img/23-3.png
similarity index 100%
rename from docs/solidity-102/8_Delegatecall/img/23-3.png
rename to docs/solidity-102/23_Delegatecall/img/23-3.png
diff --git a/docs/solidity-102/8_Delegatecall/img/23-4.png b/docs/solidity-102/23_Delegatecall/img/23-4.png
similarity index 100%
rename from docs/solidity-102/8_Delegatecall/img/23-4.png
rename to docs/solidity-102/23_Delegatecall/img/23-4.png
diff --git a/docs/solidity-102/8_Delegatecall/img/23-5.png b/docs/solidity-102/23_Delegatecall/img/23-5.png
similarity index 100%
rename from docs/solidity-102/8_Delegatecall/img/23-5.png
rename to docs/solidity-102/23_Delegatecall/img/23-5.png
diff --git a/docs/solidity-102/8_Delegatecall/img/23-6.png b/docs/solidity-102/23_Delegatecall/img/23-6.png
similarity index 100%
rename from docs/solidity-102/8_Delegatecall/img/23-6.png
rename to docs/solidity-102/23_Delegatecall/img/23-6.png
diff --git a/docs/solidity-102/8_Delegatecall/meta.json b/docs/solidity-102/23_Delegatecall/meta.json
similarity index 100%
rename from docs/solidity-102/8_Delegatecall/meta.json
rename to docs/solidity-102/23_Delegatecall/meta.json
diff --git a/docs/solidity-102/8_Delegatecall/readme.md b/docs/solidity-102/23_Delegatecall/readme.md
similarity index 100%
rename from docs/solidity-102/8_Delegatecall/readme.md
rename to docs/solidity-102/23_Delegatecall/readme.md
diff --git a/docs/solidity-102/9_Create/Create.sol b/docs/solidity-102/24_Create/Create.sol
similarity index 100%
rename from docs/solidity-102/9_Create/Create.sol
rename to docs/solidity-102/24_Create/Create.sol
diff --git a/docs/solidity-102/9_Create/img/24-1.png b/docs/solidity-102/24_Create/img/24-1.png
similarity index 100%
rename from docs/solidity-102/9_Create/img/24-1.png
rename to docs/solidity-102/24_Create/img/24-1.png
diff --git a/docs/solidity-102/9_Create/img/24-2.png b/docs/solidity-102/24_Create/img/24-2.png
similarity index 100%
rename from docs/solidity-102/9_Create/img/24-2.png
rename to docs/solidity-102/24_Create/img/24-2.png
diff --git a/docs/solidity-102/9_Create/img/24-3.png b/docs/solidity-102/24_Create/img/24-3.png
similarity index 100%
rename from docs/solidity-102/9_Create/img/24-3.png
rename to docs/solidity-102/24_Create/img/24-3.png
diff --git a/docs/solidity-102/9_Create/meta.json b/docs/solidity-102/24_Create/meta.json
similarity index 100%
rename from docs/solidity-102/9_Create/meta.json
rename to docs/solidity-102/24_Create/meta.json
diff --git a/docs/solidity-102/9_Create/readme.md b/docs/solidity-102/24_Create/readme.md
similarity index 100%
rename from docs/solidity-102/9_Create/readme.md
rename to docs/solidity-102/24_Create/readme.md
diff --git a/docs/solidity-102/10_Create2/create2.sol b/docs/solidity-102/25_Create2/create2.sol
similarity index 100%
rename from docs/solidity-102/10_Create2/create2.sol
rename to docs/solidity-102/25_Create2/create2.sol
diff --git a/docs/solidity-102/10_Create2/create2test.js b/docs/solidity-102/25_Create2/create2test.js
similarity index 100%
rename from docs/solidity-102/10_Create2/create2test.js
rename to docs/solidity-102/25_Create2/create2test.js
diff --git a/docs/solidity-102/10_Create2/img/25-1.png b/docs/solidity-102/25_Create2/img/25-1.png
similarity index 100%
rename from docs/solidity-102/10_Create2/img/25-1.png
rename to docs/solidity-102/25_Create2/img/25-1.png
diff --git a/docs/solidity-102/10_Create2/img/25-2.jpg b/docs/solidity-102/25_Create2/img/25-2.jpg
similarity index 100%
rename from docs/solidity-102/10_Create2/img/25-2.jpg
rename to docs/solidity-102/25_Create2/img/25-2.jpg
diff --git a/docs/solidity-102/10_Create2/meta.json b/docs/solidity-102/25_Create2/meta.json
similarity index 100%
rename from docs/solidity-102/10_Create2/meta.json
rename to docs/solidity-102/25_Create2/meta.json
diff --git a/docs/solidity-102/10_Create2/readme.md b/docs/solidity-102/25_Create2/readme.md
similarity index 100%
rename from docs/solidity-102/10_Create2/readme.md
rename to docs/solidity-102/25_Create2/readme.md
diff --git a/docs/solidity-102/11_DeleteContract/DeleteContract.sol b/docs/solidity-102/26_DeleteContract/DeleteContract.sol
similarity index 100%
rename from docs/solidity-102/11_DeleteContract/DeleteContract.sol
rename to docs/solidity-102/26_DeleteContract/DeleteContract.sol
diff --git a/docs/solidity-102/11_DeleteContract/img/26-1.png b/docs/solidity-102/26_DeleteContract/img/26-1.png
similarity index 100%
rename from docs/solidity-102/11_DeleteContract/img/26-1.png
rename to docs/solidity-102/26_DeleteContract/img/26-1.png
diff --git a/docs/solidity-102/11_DeleteContract/img/26-2.png b/docs/solidity-102/26_DeleteContract/img/26-2.png
similarity index 100%
rename from docs/solidity-102/11_DeleteContract/img/26-2.png
rename to docs/solidity-102/26_DeleteContract/img/26-2.png
diff --git a/docs/solidity-102/11_DeleteContract/meta.json b/docs/solidity-102/26_DeleteContract/meta.json
similarity index 100%
rename from docs/solidity-102/11_DeleteContract/meta.json
rename to docs/solidity-102/26_DeleteContract/meta.json
diff --git a/docs/solidity-102/11_DeleteContract/readme.md b/docs/solidity-102/26_DeleteContract/readme.md
similarity index 100%
rename from docs/solidity-102/11_DeleteContract/readme.md
rename to docs/solidity-102/26_DeleteContract/readme.md
diff --git a/docs/solidity-102/12_ABIEncode/ABIEncode.sol b/docs/solidity-102/27_ABIEncode/ABIEncode.sol
similarity index 100%
rename from docs/solidity-102/12_ABIEncode/ABIEncode.sol
rename to docs/solidity-102/27_ABIEncode/ABIEncode.sol
diff --git a/docs/solidity-102/12_ABIEncode/img/27-1.png b/docs/solidity-102/27_ABIEncode/img/27-1.png
similarity index 100%
rename from docs/solidity-102/12_ABIEncode/img/27-1.png
rename to docs/solidity-102/27_ABIEncode/img/27-1.png
diff --git a/docs/solidity-102/12_ABIEncode/img/27-2.png b/docs/solidity-102/27_ABIEncode/img/27-2.png
similarity index 100%
rename from docs/solidity-102/12_ABIEncode/img/27-2.png
rename to docs/solidity-102/27_ABIEncode/img/27-2.png
diff --git a/docs/solidity-102/12_ABIEncode/img/27-3.png b/docs/solidity-102/27_ABIEncode/img/27-3.png
similarity index 100%
rename from docs/solidity-102/12_ABIEncode/img/27-3.png
rename to docs/solidity-102/27_ABIEncode/img/27-3.png
diff --git a/docs/solidity-102/12_ABIEncode/img/27-4.png b/docs/solidity-102/27_ABIEncode/img/27-4.png
similarity index 100%
rename from docs/solidity-102/12_ABIEncode/img/27-4.png
rename to docs/solidity-102/27_ABIEncode/img/27-4.png
diff --git a/docs/solidity-102/12_ABIEncode/img/27-5.png b/docs/solidity-102/27_ABIEncode/img/27-5.png
similarity index 100%
rename from docs/solidity-102/12_ABIEncode/img/27-5.png
rename to docs/solidity-102/27_ABIEncode/img/27-5.png
diff --git a/docs/solidity-102/12_ABIEncode/img/27-6.png b/docs/solidity-102/27_ABIEncode/img/27-6.png
similarity index 100%
rename from docs/solidity-102/12_ABIEncode/img/27-6.png
rename to docs/solidity-102/27_ABIEncode/img/27-6.png
diff --git a/docs/solidity-102/12_ABIEncode/meta.json b/docs/solidity-102/27_ABIEncode/meta.json
similarity index 100%
rename from docs/solidity-102/12_ABIEncode/meta.json
rename to docs/solidity-102/27_ABIEncode/meta.json
diff --git a/docs/solidity-102/12_ABIEncode/readme.md b/docs/solidity-102/27_ABIEncode/readme.md
similarity index 100%
rename from docs/solidity-102/12_ABIEncode/readme.md
rename to docs/solidity-102/27_ABIEncode/readme.md
diff --git a/docs/solidity-102/13_Hash/Hash.sol b/docs/solidity-102/28_Hash/Hash.sol
similarity index 100%
rename from docs/solidity-102/13_Hash/Hash.sol
rename to docs/solidity-102/28_Hash/Hash.sol
diff --git a/docs/solidity-102/13_Hash/img/28-1.png b/docs/solidity-102/28_Hash/img/28-1.png
similarity index 100%
rename from docs/solidity-102/13_Hash/img/28-1.png
rename to docs/solidity-102/28_Hash/img/28-1.png
diff --git a/docs/solidity-102/13_Hash/img/28-2.png b/docs/solidity-102/28_Hash/img/28-2.png
similarity index 100%
rename from docs/solidity-102/13_Hash/img/28-2.png
rename to docs/solidity-102/28_Hash/img/28-2.png
diff --git a/docs/solidity-102/13_Hash/meta.json b/docs/solidity-102/28_Hash/meta.json
similarity index 100%
rename from docs/solidity-102/13_Hash/meta.json
rename to docs/solidity-102/28_Hash/meta.json
diff --git a/docs/solidity-102/13_Hash/readme.md b/docs/solidity-102/28_Hash/readme.md
similarity index 100%
rename from docs/solidity-102/13_Hash/readme.md
rename to docs/solidity-102/28_Hash/readme.md
diff --git a/docs/solidity-102/14_Selector/Selector.sol b/docs/solidity-102/29_Selector/Selector.sol
similarity index 100%
rename from docs/solidity-102/14_Selector/Selector.sol
rename to docs/solidity-102/29_Selector/Selector.sol
diff --git a/docs/solidity-102/14_Selector/img/29-1.png b/docs/solidity-102/29_Selector/img/29-1.png
similarity index 100%
rename from docs/solidity-102/14_Selector/img/29-1.png
rename to docs/solidity-102/29_Selector/img/29-1.png
diff --git a/docs/solidity-102/14_Selector/img/29-2.png b/docs/solidity-102/29_Selector/img/29-2.png
similarity index 100%
rename from docs/solidity-102/14_Selector/img/29-2.png
rename to docs/solidity-102/29_Selector/img/29-2.png
diff --git a/docs/solidity-102/14_Selector/img/29-3.png b/docs/solidity-102/29_Selector/img/29-3.png
similarity index 100%
rename from docs/solidity-102/14_Selector/img/29-3.png
rename to docs/solidity-102/29_Selector/img/29-3.png
diff --git a/docs/solidity-102/14_Selector/meta.json b/docs/solidity-102/29_Selector/meta.json
similarity index 100%
rename from docs/solidity-102/14_Selector/meta.json
rename to docs/solidity-102/29_Selector/meta.json
diff --git a/docs/solidity-102/14_Selector/readme.md b/docs/solidity-102/29_Selector/readme.md
similarity index 100%
rename from docs/solidity-102/14_Selector/readme.md
rename to docs/solidity-102/29_Selector/readme.md
diff --git a/docs/solidity-102/15_TryCatch/TryCatch.sol b/docs/solidity-102/30_TryCatch/TryCatch.sol
similarity index 100%
rename from docs/solidity-102/15_TryCatch/TryCatch.sol
rename to docs/solidity-102/30_TryCatch/TryCatch.sol
diff --git a/docs/solidity-102/15_TryCatch/img/30-1.png b/docs/solidity-102/30_TryCatch/img/30-1.png
similarity index 100%
rename from docs/solidity-102/15_TryCatch/img/30-1.png
rename to docs/solidity-102/30_TryCatch/img/30-1.png
diff --git a/docs/solidity-102/15_TryCatch/img/30-2.png b/docs/solidity-102/30_TryCatch/img/30-2.png
similarity index 100%
rename from docs/solidity-102/15_TryCatch/img/30-2.png
rename to docs/solidity-102/30_TryCatch/img/30-2.png
diff --git a/docs/solidity-102/15_TryCatch/img/30-3.png b/docs/solidity-102/30_TryCatch/img/30-3.png
similarity index 100%
rename from docs/solidity-102/15_TryCatch/img/30-3.png
rename to docs/solidity-102/30_TryCatch/img/30-3.png
diff --git a/docs/solidity-102/15_TryCatch/img/30-4.png b/docs/solidity-102/30_TryCatch/img/30-4.png
similarity index 100%
rename from docs/solidity-102/15_TryCatch/img/30-4.png
rename to docs/solidity-102/30_TryCatch/img/30-4.png
diff --git a/docs/solidity-102/15_TryCatch/img/30-5.png b/docs/solidity-102/30_TryCatch/img/30-5.png
similarity index 100%
rename from docs/solidity-102/15_TryCatch/img/30-5.png
rename to docs/solidity-102/30_TryCatch/img/30-5.png
diff --git a/docs/solidity-102/15_TryCatch/meta.json b/docs/solidity-102/30_TryCatch/meta.json
similarity index 100%
rename from docs/solidity-102/15_TryCatch/meta.json
rename to docs/solidity-102/30_TryCatch/meta.json
diff --git a/docs/solidity-102/15_TryCatch/readme.md b/docs/solidity-102/30_TryCatch/readme.md
similarity index 100%
rename from docs/solidity-102/15_TryCatch/readme.md
rename to docs/solidity-102/30_TryCatch/readme.md
diff --git a/docs/solidity-104/01_ReentrancyAttack/ReentrancyAttack.sol b/docs/solidity-104/S01_ReentrancyAttack/ReentrancyAttack.sol
similarity index 100%
rename from docs/solidity-104/01_ReentrancyAttack/ReentrancyAttack.sol
rename to docs/solidity-104/S01_ReentrancyAttack/ReentrancyAttack.sol
diff --git a/docs/solidity-104/01_ReentrancyAttack/img/S01-1.png b/docs/solidity-104/S01_ReentrancyAttack/img/S01-1.png
similarity index 100%
rename from docs/solidity-104/01_ReentrancyAttack/img/S01-1.png
rename to docs/solidity-104/S01_ReentrancyAttack/img/S01-1.png
diff --git a/docs/solidity-104/01_ReentrancyAttack/readme.md b/docs/solidity-104/S01_ReentrancyAttack/readme.md
similarity index 100%
rename from docs/solidity-104/01_ReentrancyAttack/readme.md
rename to docs/solidity-104/S01_ReentrancyAttack/readme.md
diff --git a/docs/solidity-104/02_SelectorClash/SelectorClash.sol b/docs/solidity-104/S02_SelectorClash/SelectorClash.sol
similarity index 100%
rename from docs/solidity-104/02_SelectorClash/SelectorClash.sol
rename to docs/solidity-104/S02_SelectorClash/SelectorClash.sol
diff --git a/docs/solidity-104/02_SelectorClash/img/S02-1.png b/docs/solidity-104/S02_SelectorClash/img/S02-1.png
similarity index 100%
rename from docs/solidity-104/02_SelectorClash/img/S02-1.png
rename to docs/solidity-104/S02_SelectorClash/img/S02-1.png
diff --git a/docs/solidity-104/02_SelectorClash/img/S02-2.png b/docs/solidity-104/S02_SelectorClash/img/S02-2.png
similarity index 100%
rename from docs/solidity-104/02_SelectorClash/img/S02-2.png
rename to docs/solidity-104/S02_SelectorClash/img/S02-2.png
diff --git a/docs/solidity-104/02_SelectorClash/readme.md b/docs/solidity-104/S02_SelectorClash/readme.md
similarity index 100%
rename from docs/solidity-104/02_SelectorClash/readme.md
rename to docs/solidity-104/S02_SelectorClash/readme.md
diff --git a/docs/solidity-104/03_Centralization/Centralization.sol b/docs/solidity-104/S03_Centralization/Centralization.sol
similarity index 100%
rename from docs/solidity-104/03_Centralization/Centralization.sol
rename to docs/solidity-104/S03_Centralization/Centralization.sol
diff --git a/docs/solidity-104/03_Centralization/img/S03-1.png b/docs/solidity-104/S03_Centralization/img/S03-1.png
similarity index 100%
rename from docs/solidity-104/03_Centralization/img/S03-1.png
rename to docs/solidity-104/S03_Centralization/img/S03-1.png
diff --git a/docs/solidity-104/03_Centralization/readme.md b/docs/solidity-104/S03_Centralization/readme.md
similarity index 100%
rename from docs/solidity-104/03_Centralization/readme.md
rename to docs/solidity-104/S03_Centralization/readme.md
diff --git a/docs/solidity-104/04_AccessControlExploit/AccessControlExploit.sol b/docs/solidity-104/S04_AccessControlExploit/AccessControlExploit.sol
similarity index 100%
rename from docs/solidity-104/04_AccessControlExploit/AccessControlExploit.sol
rename to docs/solidity-104/S04_AccessControlExploit/AccessControlExploit.sol
diff --git a/docs/solidity-104/04_AccessControlExploit/img/S04-1.png b/docs/solidity-104/S04_AccessControlExploit/img/S04-1.png
similarity index 100%
rename from docs/solidity-104/04_AccessControlExploit/img/S04-1.png
rename to docs/solidity-104/S04_AccessControlExploit/img/S04-1.png
diff --git a/docs/solidity-104/04_AccessControlExploit/img/S04-2.png b/docs/solidity-104/S04_AccessControlExploit/img/S04-2.png
similarity index 100%
rename from docs/solidity-104/04_AccessControlExploit/img/S04-2.png
rename to docs/solidity-104/S04_AccessControlExploit/img/S04-2.png
diff --git a/docs/solidity-104/04_AccessControlExploit/readme.md b/docs/solidity-104/S04_AccessControlExploit/readme.md
similarity index 100%
rename from docs/solidity-104/04_AccessControlExploit/readme.md
rename to docs/solidity-104/S04_AccessControlExploit/readme.md
diff --git a/docs/solidity-104/05_Overflow/Overflow.sol b/docs/solidity-104/S05_Overflow/Overflow.sol
similarity index 100%
rename from docs/solidity-104/05_Overflow/Overflow.sol
rename to docs/solidity-104/S05_Overflow/Overflow.sol
diff --git a/docs/solidity-104/05_Overflow/img/S05-1.png b/docs/solidity-104/S05_Overflow/img/S05-1.png
similarity index 100%
rename from docs/solidity-104/05_Overflow/img/S05-1.png
rename to docs/solidity-104/S05_Overflow/img/S05-1.png
diff --git a/docs/solidity-104/05_Overflow/readme.md b/docs/solidity-104/S05_Overflow/readme.md
similarity index 100%
rename from docs/solidity-104/05_Overflow/readme.md
rename to docs/solidity-104/S05_Overflow/readme.md
diff --git a/docs/solidity-104/06_SignatureReplay/SingatureReplay.sol b/docs/solidity-104/S06_SignatureReplay/SingatureReplay.sol
similarity index 100%
rename from docs/solidity-104/06_SignatureReplay/SingatureReplay.sol
rename to docs/solidity-104/S06_SignatureReplay/SingatureReplay.sol
diff --git a/docs/solidity-104/06_SignatureReplay/img/S06-1.png b/docs/solidity-104/S06_SignatureReplay/img/S06-1.png
similarity index 100%
rename from docs/solidity-104/06_SignatureReplay/img/S06-1.png
rename to docs/solidity-104/S06_SignatureReplay/img/S06-1.png
diff --git a/docs/solidity-104/06_SignatureReplay/img/S06-2.png b/docs/solidity-104/S06_SignatureReplay/img/S06-2.png
similarity index 100%
rename from docs/solidity-104/06_SignatureReplay/img/S06-2.png
rename to docs/solidity-104/S06_SignatureReplay/img/S06-2.png
diff --git a/docs/solidity-104/06_SignatureReplay/img/S06-3.png b/docs/solidity-104/S06_SignatureReplay/img/S06-3.png
similarity index 100%
rename from docs/solidity-104/06_SignatureReplay/img/S06-3.png
rename to docs/solidity-104/S06_SignatureReplay/img/S06-3.png
diff --git a/docs/solidity-104/06_SignatureReplay/img/S06-4.png b/docs/solidity-104/S06_SignatureReplay/img/S06-4.png
similarity index 100%
rename from docs/solidity-104/06_SignatureReplay/img/S06-4.png
rename to docs/solidity-104/S06_SignatureReplay/img/S06-4.png
diff --git a/docs/solidity-104/06_SignatureReplay/img/S06-5.png b/docs/solidity-104/S06_SignatureReplay/img/S06-5.png
similarity index 100%
rename from docs/solidity-104/06_SignatureReplay/img/S06-5.png
rename to docs/solidity-104/S06_SignatureReplay/img/S06-5.png
diff --git a/docs/solidity-104/06_SignatureReplay/readme.md b/docs/solidity-104/S06_SignatureReplay/readme.md
similarity index 100%
rename from docs/solidity-104/06_SignatureReplay/readme.md
rename to docs/solidity-104/S06_SignatureReplay/readme.md
diff --git a/docs/solidity-104/07_BadRandomness/BadRandomness.sol b/docs/solidity-104/S07_BadRandomness/BadRandomness.sol
similarity index 100%
rename from docs/solidity-104/07_BadRandomness/BadRandomness.sol
rename to docs/solidity-104/S07_BadRandomness/BadRandomness.sol
diff --git a/docs/solidity-104/07_BadRandomness/img/S07-1.png b/docs/solidity-104/S07_BadRandomness/img/S07-1.png
similarity index 100%
rename from docs/solidity-104/07_BadRandomness/img/S07-1.png
rename to docs/solidity-104/S07_BadRandomness/img/S07-1.png
diff --git a/docs/solidity-104/07_BadRandomness/readme.md b/docs/solidity-104/S07_BadRandomness/readme.md
similarity index 100%
rename from docs/solidity-104/07_BadRandomness/readme.md
rename to docs/solidity-104/S07_BadRandomness/readme.md
diff --git a/docs/solidity-104/08_ContractCheck/ContractCheck.sol b/docs/solidity-104/S08_ContractCheck/ContractCheck.sol
similarity index 100%
rename from docs/solidity-104/08_ContractCheck/ContractCheck.sol
rename to docs/solidity-104/S08_ContractCheck/ContractCheck.sol
diff --git a/docs/solidity-104/08_ContractCheck/img/S08-1.png b/docs/solidity-104/S08_ContractCheck/img/S08-1.png
similarity index 100%
rename from docs/solidity-104/08_ContractCheck/img/S08-1.png
rename to docs/solidity-104/S08_ContractCheck/img/S08-1.png
diff --git a/docs/solidity-104/08_ContractCheck/readme.md b/docs/solidity-104/S08_ContractCheck/readme.md
similarity index 100%
rename from docs/solidity-104/08_ContractCheck/readme.md
rename to docs/solidity-104/S08_ContractCheck/readme.md
diff --git a/docs/solidity-104/09_DoS/DoS.sol b/docs/solidity-104/S09_DoS/DoS.sol
similarity index 100%
rename from docs/solidity-104/09_DoS/DoS.sol
rename to docs/solidity-104/S09_DoS/DoS.sol
diff --git a/docs/solidity-104/09_DoS/img/S09-1.png b/docs/solidity-104/S09_DoS/img/S09-1.png
similarity index 100%
rename from docs/solidity-104/09_DoS/img/S09-1.png
rename to docs/solidity-104/S09_DoS/img/S09-1.png
diff --git a/docs/solidity-104/09_DoS/img/S09-2.png b/docs/solidity-104/S09_DoS/img/S09-2.png
similarity index 100%
rename from docs/solidity-104/09_DoS/img/S09-2.png
rename to docs/solidity-104/S09_DoS/img/S09-2.png
diff --git a/docs/solidity-104/09_DoS/img/S09-3.jpg b/docs/solidity-104/S09_DoS/img/S09-3.jpg
similarity index 100%
rename from docs/solidity-104/09_DoS/img/S09-3.jpg
rename to docs/solidity-104/S09_DoS/img/S09-3.jpg
diff --git a/docs/solidity-104/09_DoS/img/S09-4.jpg b/docs/solidity-104/S09_DoS/img/S09-4.jpg
similarity index 100%
rename from docs/solidity-104/09_DoS/img/S09-4.jpg
rename to docs/solidity-104/S09_DoS/img/S09-4.jpg
diff --git a/docs/solidity-104/09_DoS/img/S09-5.jpg b/docs/solidity-104/S09_DoS/img/S09-5.jpg
similarity index 100%
rename from docs/solidity-104/09_DoS/img/S09-5.jpg
rename to docs/solidity-104/S09_DoS/img/S09-5.jpg
diff --git a/docs/solidity-104/09_DoS/readme.md b/docs/solidity-104/S09_DoS/readme.md
similarity index 100%
rename from docs/solidity-104/09_DoS/readme.md
rename to docs/solidity-104/S09_DoS/readme.md
diff --git a/docs/solidity-104/10_Honeypot/Honeypot.sol b/docs/solidity-104/S10_Honeypot/Honeypot.sol
similarity index 100%
rename from docs/solidity-104/10_Honeypot/Honeypot.sol
rename to docs/solidity-104/S10_Honeypot/Honeypot.sol
diff --git a/docs/solidity-104/10_Honeypot/img/S10-1.png b/docs/solidity-104/S10_Honeypot/img/S10-1.png
similarity index 100%
rename from docs/solidity-104/10_Honeypot/img/S10-1.png
rename to docs/solidity-104/S10_Honeypot/img/S10-1.png
diff --git a/docs/solidity-104/10_Honeypot/img/S10-2.png b/docs/solidity-104/S10_Honeypot/img/S10-2.png
similarity index 100%
rename from docs/solidity-104/10_Honeypot/img/S10-2.png
rename to docs/solidity-104/S10_Honeypot/img/S10-2.png
diff --git a/docs/solidity-104/10_Honeypot/img/S10-3.png b/docs/solidity-104/S10_Honeypot/img/S10-3.png
similarity index 100%
rename from docs/solidity-104/10_Honeypot/img/S10-3.png
rename to docs/solidity-104/S10_Honeypot/img/S10-3.png
diff --git a/docs/solidity-104/10_Honeypot/img/S10-4.png b/docs/solidity-104/S10_Honeypot/img/S10-4.png
similarity index 100%
rename from docs/solidity-104/10_Honeypot/img/S10-4.png
rename to docs/solidity-104/S10_Honeypot/img/S10-4.png
diff --git a/docs/solidity-104/10_Honeypot/img/S10-5.png b/docs/solidity-104/S10_Honeypot/img/S10-5.png
similarity index 100%
rename from docs/solidity-104/10_Honeypot/img/S10-5.png
rename to docs/solidity-104/S10_Honeypot/img/S10-5.png
diff --git a/docs/solidity-104/10_Honeypot/img/S10-6.png b/docs/solidity-104/S10_Honeypot/img/S10-6.png
similarity index 100%
rename from docs/solidity-104/10_Honeypot/img/S10-6.png
rename to docs/solidity-104/S10_Honeypot/img/S10-6.png
diff --git a/docs/solidity-104/10_Honeypot/img/S10-7.png b/docs/solidity-104/S10_Honeypot/img/S10-7.png
similarity index 100%
rename from docs/solidity-104/10_Honeypot/img/S10-7.png
rename to docs/solidity-104/S10_Honeypot/img/S10-7.png
diff --git a/docs/solidity-104/10_Honeypot/readme.md b/docs/solidity-104/S10_Honeypot/readme.md
similarity index 100%
rename from docs/solidity-104/10_Honeypot/readme.md
rename to docs/solidity-104/S10_Honeypot/readme.md
diff --git a/docs/solidity-104/11_Frontrun/Frontrun.sol b/docs/solidity-104/S11_Frontrun/Frontrun.sol
similarity index 100%
rename from docs/solidity-104/11_Frontrun/Frontrun.sol
rename to docs/solidity-104/S11_Frontrun/Frontrun.sol
diff --git a/docs/solidity-104/11_Frontrun/frontrun.js b/docs/solidity-104/S11_Frontrun/frontrun.js
similarity index 100%
rename from docs/solidity-104/11_Frontrun/frontrun.js
rename to docs/solidity-104/S11_Frontrun/frontrun.js
diff --git a/docs/solidity-104/11_Frontrun/img/S11-1.png b/docs/solidity-104/S11_Frontrun/img/S11-1.png
similarity index 100%
rename from docs/solidity-104/11_Frontrun/img/S11-1.png
rename to docs/solidity-104/S11_Frontrun/img/S11-1.png
diff --git a/docs/solidity-104/11_Frontrun/img/S11-2.png b/docs/solidity-104/S11_Frontrun/img/S11-2.png
similarity index 100%
rename from docs/solidity-104/11_Frontrun/img/S11-2.png
rename to docs/solidity-104/S11_Frontrun/img/S11-2.png
diff --git a/docs/solidity-104/11_Frontrun/img/S11-3.png b/docs/solidity-104/S11_Frontrun/img/S11-3.png
similarity index 100%
rename from docs/solidity-104/11_Frontrun/img/S11-3.png
rename to docs/solidity-104/S11_Frontrun/img/S11-3.png
diff --git a/docs/solidity-104/11_Frontrun/img/S11-4.png b/docs/solidity-104/S11_Frontrun/img/S11-4.png
similarity index 100%
rename from docs/solidity-104/11_Frontrun/img/S11-4.png
rename to docs/solidity-104/S11_Frontrun/img/S11-4.png
diff --git a/docs/solidity-104/11_Frontrun/package.json b/docs/solidity-104/S11_Frontrun/package.json
similarity index 100%
rename from docs/solidity-104/11_Frontrun/package.json
rename to docs/solidity-104/S11_Frontrun/package.json
diff --git a/docs/solidity-104/11_Frontrun/readme.md b/docs/solidity-104/S11_Frontrun/readme.md
similarity index 100%
rename from docs/solidity-104/11_Frontrun/readme.md
rename to docs/solidity-104/S11_Frontrun/readme.md
diff --git a/docs/solidity-104/12_TxOrigin/PhishingWithTxOrigin.sol b/docs/solidity-104/S12_TxOrigin/PhishingWithTxOrigin.sol
similarity index 100%
rename from docs/solidity-104/12_TxOrigin/PhishingWithTxOrigin.sol
rename to docs/solidity-104/S12_TxOrigin/PhishingWithTxOrigin.sol
diff --git a/docs/solidity-104/12_TxOrigin/img/S12-2.jpg b/docs/solidity-104/S12_TxOrigin/img/S12-2.jpg
similarity index 100%
rename from docs/solidity-104/12_TxOrigin/img/S12-2.jpg
rename to docs/solidity-104/S12_TxOrigin/img/S12-2.jpg
diff --git a/docs/solidity-104/12_TxOrigin/img/S12-3.jpg b/docs/solidity-104/S12_TxOrigin/img/S12-3.jpg
similarity index 100%
rename from docs/solidity-104/12_TxOrigin/img/S12-3.jpg
rename to docs/solidity-104/S12_TxOrigin/img/S12-3.jpg
diff --git a/docs/solidity-104/12_TxOrigin/img/S12-4.jpg b/docs/solidity-104/S12_TxOrigin/img/S12-4.jpg
similarity index 100%
rename from docs/solidity-104/12_TxOrigin/img/S12-4.jpg
rename to docs/solidity-104/S12_TxOrigin/img/S12-4.jpg
diff --git a/docs/solidity-104/12_TxOrigin/img/S12_1.jpg b/docs/solidity-104/S12_TxOrigin/img/S12_1.jpg
similarity index 100%
rename from docs/solidity-104/12_TxOrigin/img/S12_1.jpg
rename to docs/solidity-104/S12_TxOrigin/img/S12_1.jpg
diff --git a/docs/solidity-104/12_TxOrigin/readme.md b/docs/solidity-104/S12_TxOrigin/readme.md
similarity index 100%
rename from docs/solidity-104/12_TxOrigin/readme.md
rename to docs/solidity-104/S12_TxOrigin/readme.md
diff --git a/docs/solidity-104/13_UncheckedCall/UncheckedCall.sol b/docs/solidity-104/S13_UncheckedCall/UncheckedCall.sol
similarity index 100%
rename from docs/solidity-104/13_UncheckedCall/UncheckedCall.sol
rename to docs/solidity-104/S13_UncheckedCall/UncheckedCall.sol
diff --git a/docs/solidity-104/13_UncheckedCall/img/S13-1.png b/docs/solidity-104/S13_UncheckedCall/img/S13-1.png
similarity index 100%
rename from docs/solidity-104/13_UncheckedCall/img/S13-1.png
rename to docs/solidity-104/S13_UncheckedCall/img/S13-1.png
diff --git a/docs/solidity-104/13_UncheckedCall/readme.md b/docs/solidity-104/S13_UncheckedCall/readme.md
similarity index 100%
rename from docs/solidity-104/13_UncheckedCall/readme.md
rename to docs/solidity-104/S13_UncheckedCall/readme.md
diff --git a/docs/solidity-104/14_TimeManipulation/readme.md b/docs/solidity-104/S14_TimeManipulation/readme.md
similarity index 100%
rename from docs/solidity-104/14_TimeManipulation/readme.md
rename to docs/solidity-104/S14_TimeManipulation/readme.md
diff --git a/docs/solidity-104/14_TimeManipulation/src/TimeManipulation.sol b/docs/solidity-104/S14_TimeManipulation/src/TimeManipulation.sol
similarity index 100%
rename from docs/solidity-104/14_TimeManipulation/src/TimeManipulation.sol
rename to docs/solidity-104/S14_TimeManipulation/src/TimeManipulation.sol
diff --git a/docs/solidity-104/14_TimeManipulation/test/TimeManipulation.t.sol b/docs/solidity-104/S14_TimeManipulation/test/TimeManipulation.t.sol
similarity index 100%
rename from docs/solidity-104/14_TimeManipulation/test/TimeManipulation.t.sol
rename to docs/solidity-104/S14_TimeManipulation/test/TimeManipulation.t.sol
diff --git a/docs/solidity-104/15_OracleManipulation/img/S15-1.png b/docs/solidity-104/S15_OracleManipulation/img/S15-1.png
similarity index 100%
rename from docs/solidity-104/15_OracleManipulation/img/S15-1.png
rename to docs/solidity-104/S15_OracleManipulation/img/S15-1.png
diff --git a/docs/solidity-104/15_OracleManipulation/readme.md b/docs/solidity-104/S15_OracleManipulation/readme.md
similarity index 100%
rename from docs/solidity-104/15_OracleManipulation/readme.md
rename to docs/solidity-104/S15_OracleManipulation/readme.md
diff --git a/docs/solidity-104/15_OracleManipulation/src/Oracle.sol b/docs/solidity-104/S15_OracleManipulation/src/Oracle.sol
similarity index 100%
rename from docs/solidity-104/15_OracleManipulation/src/Oracle.sol
rename to docs/solidity-104/S15_OracleManipulation/src/Oracle.sol
diff --git a/docs/solidity-104/15_OracleManipulation/test/Oracle.t.sol b/docs/solidity-104/S15_OracleManipulation/test/Oracle.t.sol
similarity index 100%
rename from docs/solidity-104/15_OracleManipulation/test/Oracle.t.sol
rename to docs/solidity-104/S15_OracleManipulation/test/Oracle.t.sol
diff --git a/docs/solidity-104/16_NFTReentrancy/NFTReentrancy.sol b/docs/solidity-104/S16_NFTReentrancy/NFTReentrancy.sol
similarity index 100%
rename from docs/solidity-104/16_NFTReentrancy/NFTReentrancy.sol
rename to docs/solidity-104/S16_NFTReentrancy/NFTReentrancy.sol
diff --git a/docs/solidity-104/16_NFTReentrancy/img/S16-1.png b/docs/solidity-104/S16_NFTReentrancy/img/S16-1.png
similarity index 100%
rename from docs/solidity-104/16_NFTReentrancy/img/S16-1.png
rename to docs/solidity-104/S16_NFTReentrancy/img/S16-1.png
diff --git a/docs/solidity-104/16_NFTReentrancy/img/S16-2.png b/docs/solidity-104/S16_NFTReentrancy/img/S16-2.png
similarity index 100%
rename from docs/solidity-104/16_NFTReentrancy/img/S16-2.png
rename to docs/solidity-104/S16_NFTReentrancy/img/S16-2.png
diff --git a/docs/solidity-104/16_NFTReentrancy/readme.md b/docs/solidity-104/S16_NFTReentrancy/readme.md
similarity index 100%
rename from docs/solidity-104/16_NFTReentrancy/readme.md
rename to docs/solidity-104/S16_NFTReentrancy/readme.md
diff --git a/sync-meta.py b/sync-meta.py
new file mode 100755
index 00000000..501865f0
--- /dev/null
+++ b/sync-meta.py
@@ -0,0 +1,40 @@
+import os
+import sys
+
+def find_readme_files(folder):
+ readme_files = []
+ for root, dirs, files in os.walk(folder):
+ for file in files:
+ if file.lower() == "readme.md":
+ readme_files.append(os.path.join(root, file))
+ return readme_files
+
+
+if __name__ == '__main__':
+ folder = os.curdir
+ files = find_readme_files(folder)
+ # print(files)
+
+ insert_before=""
+ append_text=""
+ insert_before_target="我最近在重新学"
+
+ for file in files:
+ with open(file,'r') as fd:
+ lines = fd.readlines()
+ # Flag
+ change = False
+
+ for i in range(len(lines)):
+ if insert_before_target in lines[i]:
+ change = True
+ lines[i] = lines[i].replace(insert_before_target,"{}\n\n{}".format(
+ insert_before,
+ insert_before_target
+ ))
+ break
+
+ if change:
+ lines.append("\n{}".format(append_text))
+ with open(file, 'w') as fd:
+ fd.writelines(lines)
\ No newline at end of file
diff --git a/sync.json b/sync.json
index d19812c8..7d6ee1ec 100644
--- a/sync.json
+++ b/sync.json
@@ -6,5 +6,49 @@
"cp -r WTF-Ethers/0{1..9}_* ./",
"cp -r WTF-Ethers/10_* ./"
]
+ },
+ {
+ "sync": "https://github.com/WTFAcademy/WTF-Ethers.git",
+ "path": "docs/ethers-102",
+ "scripts": [
+ "cp -r WTF-Ethers/1{1..9}_* ./",
+ "cp -r WTF-Ethers/2{0..6}_* ./"
+ ]
+ },
+ {
+ "sync": "https://github.com/AmazingAng/WTF-Solidity.git",
+ "path": "docs/solidity-101",
+ "scripts": [
+ "cp -r WTF-Solidity/0{1..9}_* ./",
+ "cp -r WTF-Solidity/1{0..5}_* ./",
+ "python3 ../../sync-meta.py"
+ ]
+ },
+ {
+ "sync": "https://github.com/AmazingAng/WTF-Solidity.git",
+ "path": "docs/solidity-102",
+ "scripts": [
+ "cp -r WTF-Solidity/1{6..9}_* ./",
+ "cp -r WTF-Solidity/2{0..9}_* ./",
+ "cp -r WTF-Solidity/30_* ./",
+ "python3 ../../sync-meta.py"
+ ]
+ },
+ {
+ "sync": "https://github.com/AmazingAng/WTF-Solidity.git",
+ "path": "docs/solidity-103",
+ "scripts": [
+ "cp -r WTF-Solidity/3{1..9}_* ./",
+ "cp -r WTF-Solidity/4{0..9}_* ./",
+ "cp -r WTF-Solidity/5{0..7}_* ./"
+ ]
+ },
+ {
+ "sync": "https://github.com/AmazingAng/WTF-Solidity.git",
+ "path": "docs/solidity-104",
+ "scripts": [
+ "cp -r WTF-Solidity/S0{1..9}_* ./",
+ "cp -r WTF-Solidity/S1{0..7}_* ./"
+ ]
}
]
diff --git a/sync.sh b/sync.sh
index 86d9801e..25c0c1ae 100755
--- a/sync.sh
+++ b/sync.sh
@@ -19,9 +19,10 @@ jq -c '.[]' $CONFIG_FILE | while read -r repo; do
git clone $SYNC_URL $REPO_NAME
# 执行脚本
- for SCRIPT in "${SCRIPTS[@]}"; do
- eval $SCRIPT
- done
+ while IFS= read -r SCRIPT; do
+ # echo "$SCRIPT"
+ eval "$SCRIPT"
+ done <<< "$SCRIPTS"
# 删除克隆的仓库
rm -rf $REPO_NAME
@@ -43,8 +44,13 @@ jq -c '.[]' $CONFIG_FILE | while read -r repo; do
fi
done
-# 添加更改到 git
+# generate new sidebar
+npm run generate:sidebar
+
+# # 添加更改到 git
git add docs/
+git add changes.txt
+git add sidebar.json
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git commit -m "Update tutorials" || echo "No changes to commit"