mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-10-24 12:35:03 +00:00
fix(docs): support multiple SDK paths for local and CI environments
This commit is contained in:
1 parent
e0c1f2c7a9
commit
e974097072
779 files changed
+6
-45005
No files matched your search
@@ -3,7 +3,12 @@ const path = require('path');
|
||||
const { spawnSync } = require('child_process');
|
||||
|
||||
// --- Configuration ---
|
||||
const pezkuwiSdkRoot = path.join(__dirname, '..', '..', 'Pezkuwi-SDK');
|
||||
// Try multiple possible locations for Pezkuwi-SDK (local dev vs CI)
|
||||
const possibleSdkPaths = [
|
||||
path.join(__dirname, '..', '..', 'Pezkuwi-SDK'), // Local: /home/user/Pezkuwi-SDK
|
||||
path.join(__dirname, '..', 'Pezkuwi-SDK'), // CI: /home/runner/work/pwap/pwap/Pezkuwi-SDK
|
||||
];
|
||||
const pezkuwiSdkRoot = possibleSdkPaths.find(p => fs.existsSync(p)) || possibleSdkPaths[0];
|
||||
const sdkDocsSourcePath = path.join(pezkuwiSdkRoot, 'docs', 'sdk');
|
||||
const mainDocsSourcePath = path.join(pezkuwiSdkRoot, 'docs'); // This is where whitepaper.md etc. are
|
||||
const publicPath = path.join(__dirname, 'public');
|
||||
|
||||
Reference in new issue
Block a user