Skip to content

Commit 93dc5e9

Browse files
committed
update playground
1 parent b89a791 commit 93dc5e9

5 files changed

Lines changed: 22 additions & 35 deletions

File tree

scripts/update-pricing-playground.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,18 @@ if [ ! -d "$PRICING_DEMO" ]; then
1717
fi
1818

1919
echo "→ Installing pricing demo dependencies..."
20-
(cd "$PRICING_DEMO" && npm install --no-audit --no-fund)
20+
(cd "$PRICING_DEMO" && pnpm install --frozen-lockfile 2>/dev/null || npm install --no-audit --no-fund)
2121

2222
echo "→ Building pricing demo..."
2323
(cd "$PRICING_DEMO" && npx tsc -b && npx vite build)
2424

25+
# Verify the build has the correct base path
26+
if ! grep -q '/pricing-playground/assets/' "$PRICING_DEMO/dist/index.html"; then
27+
echo "ERROR: Built index.html is missing /pricing-playground/ base path."
28+
echo " Ensure vite.config.ts has: base: '/pricing-playground/'"
29+
exit 1
30+
fi
31+
2532
echo "→ Copying build output to $TARGET..."
2633
rm -rf "$TARGET"
2734
cp -r "$PRICING_DEMO/dist" "$TARGET"

sidebars.js

Lines changed: 10 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ module.exports = {
4343
label: 'SDK',
4444
collapsible: true,
4545
collapsed: true,
46-
items: [
47-
{ type: 'autogenerated', dirName: 'sdk' },
48-
],
46+
items: [{ type: 'autogenerated', dirName: 'sdk' }],
4947
},
5048
{
5149
type: 'category',
@@ -73,63 +71,49 @@ module.exports = {
7371
label: 'Messaging',
7472
collapsible: true,
7573
collapsed: true,
76-
items: [
77-
{ type: 'autogenerated', dirName: 'messaging' },
78-
],
74+
items: [{ type: 'autogenerated', dirName: 'messaging' }],
7975
},
8076
{
8177
type: 'category',
8278
label: 'Notes',
8379
collapsible: true,
8480
collapsed: true,
85-
items: [
86-
{ type: 'autogenerated', dirName: 'notes' },
87-
],
81+
items: [{ type: 'autogenerated', dirName: 'notes' }],
8882
},
8983
{
9084
type: 'category',
9185
label: 'Templates',
9286
collapsible: true,
9387
collapsed: true,
94-
items: [
95-
{ type: 'autogenerated', dirName: 'templates' },
96-
],
88+
items: [{ type: 'autogenerated', dirName: 'templates' }],
9789
},
9890
{
9991
type: 'category',
10092
label: 'Portals',
10193
collapsible: true,
10294
collapsed: true,
103-
items: [
104-
{ type: 'autogenerated', dirName: 'portals' },
105-
],
95+
items: [{ type: 'autogenerated', dirName: 'portals' }],
10696
},
10797
{
10898
type: 'category',
10999
label: 'Automation',
110100
collapsible: true,
111101
collapsed: true,
112-
items: [
113-
{ type: 'autogenerated', dirName: 'automation' },
114-
],
102+
items: [{ type: 'autogenerated', dirName: 'automation' }],
115103
},
116104
{
117105
type: 'category',
118106
label: 'Workflows',
119107
collapsible: true,
120108
collapsed: true,
121-
items: [
122-
{ type: 'autogenerated', dirName: 'workflows' },
123-
],
109+
items: [{ type: 'autogenerated', dirName: 'workflows' }],
124110
},
125111
{
126112
type: 'category',
127113
label: 'Blueprints',
128114
collapsible: true,
129115
collapsed: true,
130-
items: [
131-
{ type: 'autogenerated', dirName: 'blueprints' },
132-
],
116+
items: [{ type: 'autogenerated', dirName: 'blueprints' }],
133117
},
134118
{
135119
type: 'category',
@@ -168,18 +152,14 @@ module.exports = {
168152
label: 'CLI',
169153
collapsible: true,
170154
collapsed: true,
171-
items: [
172-
{ type: 'autogenerated', dirName: 'cli' },
173-
],
155+
items: [{ type: 'autogenerated', dirName: 'cli' }],
174156
},
175157
{
176158
type: 'category',
177159
label: 'Apps',
178160
collapsible: true,
179161
collapsed: true,
180-
items: [
181-
{ type: 'autogenerated', dirName: 'apps' },
182-
],
162+
items: [{ type: 'autogenerated', dirName: 'apps' }],
183163
},
184164
],
185165
};

static/pricing-playground/assets/index-CXrMBP2C.js renamed to static/pricing-playground/assets/index-DEt5qLNX.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/pricing-playground/assets/index-0FFC6wBI.css renamed to static/pricing-playground/assets/index-DiR6wrVH.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/pricing-playground/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>epilot Pricing Playground</title>
77
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>💰</text></svg>" />
8-
<script type="module" crossorigin src="/assets/index-CXrMBP2C.js"></script>
9-
<link rel="stylesheet" crossorigin href="/assets/index-0FFC6wBI.css">
8+
<script type="module" crossorigin src="/pricing-playground/assets/index-DEt5qLNX.js"></script>
9+
<link rel="stylesheet" crossorigin href="/pricing-playground/assets/index-DiR6wrVH.css">
1010
</head>
1111
<body class="bg-gray-50 text-gray-900 antialiased">
1212
<div id="root"></div>

0 commit comments

Comments
 (0)