forked from labscommunity/arweave-wallet-kit
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from project-kardeshev/alpha
fix(docs): update docs fixes
- Loading branch information
Showing
11 changed files
with
328 additions
and
934 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { create } from '@storybook/theming'; | ||
|
||
export default create({ | ||
base: 'dark', | ||
brandTitle: 'AO Wallet Kit', | ||
brandUrl: 'https://ao-wallet-kit_project-kardeshev.arweave.net', | ||
brandImage: 'https://arweave.net/oDSg_8Qmy8nHOgtS_77cxFTq3oytZ7TBbu0ntGv3Xas', | ||
brandTarget: '_self', | ||
|
||
// | ||
colorPrimary: '#1CA051', | ||
colorSecondary: '#6CC790', | ||
|
||
// UI | ||
appBg: '#1f1f1f', | ||
appContentBg: '#1f1f1f', | ||
appPreviewBg: '#1f1f1f', | ||
appBorderColor: '#585C6D', | ||
appBorderRadius: 4, | ||
|
||
// Text colors | ||
textColor: '#1CA051', | ||
textInverseColor: '#6CC790', | ||
|
||
// Toolbar default and active colors | ||
barTextColor: '#9E9E9E', | ||
barSelectedColor: '#585C6D', | ||
barHoverColor: '#585C6D', | ||
barBg: '#1f1f1f', | ||
|
||
// Form colors | ||
inputBg: '#1f1f1f', | ||
inputBorder: '#6CC790', | ||
inputTextColor: '#6CC790', | ||
inputBorderRadius: 2, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { addons } from '@storybook/manager-api'; | ||
import { themes } from '@storybook/theming'; | ||
|
||
addons.setConfig({ | ||
theme: themes.dark, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// AUTO GENERATED NO TOUCHY! | ||
export const version = '1.0.1'; | ||
export const version = '1.0.1-alpha.1'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { exec } from 'node:child_process'; | ||
import fs from 'node:fs'; | ||
import path from 'node:path'; | ||
|
||
const __dirname = path.dirname(new URL(import.meta.url).pathname); | ||
|
||
const wallet = | ||
process.env.DEPLOY_KEY ?? | ||
fs.readFileSync(path.join(__dirname, 'wallet.json'), 'utf-8').trim(); | ||
const b64EncodedWallet = | ||
process.env.DEPLOY_KEY ?? Buffer.from(wallet).toString('base64'); | ||
|
||
async function main() { | ||
const deployProcess = exec( | ||
`yarn build-storybook && permaweb-deploy --ant-process $DEPLOY_ANT_PROCESS_ID --undername ao-wallet-kit --deploy-folder $DEPLOY_DIR`, | ||
{ | ||
env: { | ||
...process.env, | ||
DEPLOY_KEY: b64EncodedWallet, | ||
DEPLOY_ANT_PROCESS_ID: 'wJVTnZTedI9FIY4r2cB9C4CpAJKImvhu0WjOh0AecjQ', | ||
DEPLOY_DIR: path.join(__dirname, '..', 'storybook-static'), | ||
GITHUB_SHA: process.env.GITHUB_SHA ?? 'local', | ||
}, | ||
}, | ||
); | ||
|
||
deployProcess.stdout.pipe(process.stdout); | ||
deployProcess.stderr.pipe(process.stderr); | ||
deployProcess.on('exit', (code) => { | ||
if (code !== 0) { | ||
process.exit(code); | ||
} | ||
}); | ||
} | ||
|
||
main().catch(console.error); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import fs from 'node:fs'; | ||
import path from 'node:path'; | ||
|
||
const __dirname = path.dirname(new URL(import.meta.url).pathname); | ||
|
||
/** | ||
* Function to remove content between <!-- toc --> and <!-- tocstop --> | ||
* @param {string} filePath - The path to the file to be modified. | ||
*/ | ||
function removeTOC(filePath) { | ||
try { | ||
// Read the file content | ||
const content = fs.readFileSync(filePath, 'utf8'); | ||
|
||
// Use a regex to remove the content between <!-- toc --> and <!-- tocstop --> | ||
const updatedContent = content.replace( | ||
/<!-- toc -->[\s\S]*?<!-- tocstop -->/g, | ||
'', | ||
); | ||
|
||
// Write the updated content back to the file | ||
fs.writeFileSync(filePath, updatedContent, 'utf8'); | ||
console.log(`TOC removed from ${filePath}`); | ||
} catch (error) { | ||
console.error(`Error processing the file: ${error.message}`); | ||
} | ||
} | ||
|
||
// Example usage | ||
const filePath = path.join(__dirname, '../docs/README.mdx'); | ||
removeTOC(filePath); |
Oops, something went wrong.