Skip to content

Commit ed3a071

Browse files
committed
fixing banner issue and debugging on workflows
1 parent 2d1fd39 commit ed3a071

File tree

5 files changed

+92
-64
lines changed

5 files changed

+92
-64
lines changed

AGENTS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ pnpm run -r lint
4848

4949
See [documentation skill](./.claude/skills/documentation/SKILL.md) for details on updating user guides, CLI reference, and API docs.
5050

51+
```bash
52+
# Run docs dev server (from project root)
53+
pnpm run docs:dev
54+
55+
# Build docs for production
56+
pnpm run docs:build
57+
```
58+
5159
## Logging
5260

5361
- when logging use the logger instance from `@salesforce/b2c-tooling-sdk/logger` package

docs/.vitepress/theme/Layout.vue

Lines changed: 0 additions & 61 deletions
This file was deleted.

docs/.vitepress/theme/custom.css

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,74 @@
33
--vp-c-brand-2: #0090c8;
44
--vp-c-brand-3: #007eb0;
55
--vp-c-brand-soft: rgba(0, 161, 224, 0.14);
6+
--vp-banner-height: 38px;
7+
}
8+
9+
/* Developer Preview Banner */
10+
.preview-banner {
11+
background: linear-gradient(90deg, #0070d2 0%, #00a1e0 100%);
12+
color: white;
13+
text-align: center;
14+
padding: 8px 16px;
15+
font-size: 14px;
16+
position: fixed;
17+
top: 0;
18+
left: 0;
19+
right: 0;
20+
z-index: 60;
21+
min-height: var(--vp-banner-height);
22+
box-sizing: border-box;
23+
display: flex;
24+
align-items: center;
25+
justify-content: center;
26+
flex-wrap: wrap;
27+
}
28+
29+
.preview-banner a {
30+
color: white;
31+
text-decoration: underline;
32+
margin-left: 8px;
33+
}
34+
35+
.preview-banner a:hover {
36+
opacity: 0.9;
37+
}
38+
39+
/* Adjust VitePress layout for banner */
40+
.VPNav {
41+
top: var(--vp-banner-height) !important;
42+
}
43+
44+
.VPSidebar {
45+
top: calc(var(--vp-nav-height) + var(--vp-banner-height)) !important;
46+
height: calc(100vh - var(--vp-nav-height) - var(--vp-banner-height)) !important;
47+
}
48+
49+
.VPContent {
50+
padding-top: var(--vp-banner-height) !important;
51+
}
52+
53+
.VPLocalNav {
54+
top: calc(var(--vp-nav-height) + var(--vp-banner-height)) !important;
55+
}
56+
57+
/* Mobile/tablet: banner scrolls with page when sidebar is hidden */
58+
@media (max-width: 959px) {
59+
.preview-banner {
60+
position: relative;
61+
}
62+
63+
.VPNav {
64+
top: 0 !important;
65+
}
66+
67+
.VPContent {
68+
padding-top: 0 !important;
69+
}
70+
71+
.VPLocalNav {
72+
top: 0 !important;
73+
}
674
}
775

876
.dark {

docs/.vitepress/theme/index.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
1+
import { h } from 'vue';
12
import DefaultTheme from 'vitepress/theme';
2-
import Layout from './Layout.vue';
33
import './custom.css';
44

55
export default {
66
extends: DefaultTheme,
7-
Layout,
7+
Layout() {
8+
return h(DefaultTheme.Layout, null, {
9+
'layout-top': () =>
10+
h(
11+
'div',
12+
{ class: 'preview-banner' },
13+
[
14+
h('strong', 'Developer Preview'),
15+
' — This project is in active development. APIs may change. ',
16+
h('a', { href: 'https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/issues', target: '_blank' }, 'Provide feedback'),
17+
]
18+
),
19+
});
20+
},
821
};

packages/b2c-cli/test/functional/e2e_cli_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ echo "Step 3: Deploying code to sandbox..."
116116

117117
$CLI code deploy "$CARTRIDGE_PATH" \
118118
--server "$SERVER" \
119-
--code-version "e2e-test-version" --log-level debug --json
119+
--code-version "e2e-test-version" --log-level trace --json
120120

121121
echo "SUCCESS: Code deployed"
122122
echo ""

0 commit comments

Comments
 (0)