Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lab320 #207

Draft
wants to merge 45 commits into
base: USF-2006
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
54348ff
Merge branch 'USF-2006' into Lab320
bdenham Mar 6, 2025
4108767
removed to add it again with a PR
bdenham Mar 6, 2025
4073705
add content source for lab320
bdenham Mar 6, 2025
c14b158
Merge branch 'USF-2006' into Lab320
bdenham Mar 6, 2025
3eb899f
fix: change extension to .md -> .mdx
bdenham Mar 6, 2025
ed3b231
Merge branch 'Lab320' of github.com:commerce-docs/microsite-commerce-…
bdenham Mar 6, 2025
eb01efd
fix: move workbook draft to drafts
bdenham Mar 6, 2025
b25baa3
fix: background on docs area selector
bdenham Mar 6, 2025
93255b6
Apply suggestions from code review
bdenham Mar 7, 2025
0572c60
wip: changes for lesson 1
bdenham Mar 7, 2025
12207ee
fix: add workshop tips and remove final notes
bdenham Mar 7, 2025
46ae48a
fix: update directory names
bdenham Mar 7, 2025
d3a2329
wip: update lab intro page
bdenham Mar 7, 2025
9dc544e
fix: update intro page warmup
bdenham Mar 7, 2025
33d08f1
update lab introduction page
bdenham Mar 7, 2025
30e0a59
lesson1: add instructions sans screenshots
bdenham Mar 7, 2025
a37c54e
fix: add content for lessons 2 & 3, updated warmup
bdenham Mar 7, 2025
5782640
add callout to avoid publishing and update warmup list
bdenham Mar 7, 2025
b6677f1
update lesson 1 with final pdp
bdenham Mar 7, 2025
fd4e44b
fix: add lab login section
bdenham Mar 10, 2025
bb269a6
fix: temp update to page title for pdf creation
bdenham Mar 10, 2025
7791077
fix: temp update to page title for pdf creation
bdenham Mar 10, 2025
5b3dc08
fix: temp update to page title for pdf creation
bdenham Mar 10, 2025
c21a755
Lesson 1 complete
bdenham Mar 11, 2025
f4d048b
Apply suggestions from code review
bdenham Mar 11, 2025
520cba6
Update lesson 2 sans screenshots
bdenham Mar 11, 2025
8eb1665
Lesson 3 finished, but not sure about Step 3
bdenham Mar 11, 2025
8e2725c
fix: lesson 3 instructions for experimentation
bdenham Mar 11, 2025
2eb13f6
add screenshots to lesson 2
bdenham Mar 11, 2025
2a9e1ac
Update screenshots for lesson 2
bdenham Mar 11, 2025
1318e82
fix: login credentials for attendees
bdenham Mar 11, 2025
4f248f3
add print css
bdenham Mar 11, 2025
c2ebd6d
test: add page breaks for PDF output
bdenham Mar 11, 2025
d7b6b4c
fix: add pdf page break after each task to avoid bad page breaks
bdenham Mar 11, 2025
c9da921
feat: add pdf header and footer
bdenham Mar 11, 2025
4ad4fa7
add details for pdf script generation
bdenham Mar 11, 2025
9254440
fix: headers and footers
bdenham Mar 11, 2025
6ccdbbe
fix: pdf header and footer spacing
bdenham Mar 11, 2025
390ce15
fix: more spacing fixes for pdf inserted header and footer
bdenham Mar 12, 2025
25a1ba4
fix: pdf header and footer spacing again until I solve the localhost …
bdenham Mar 12, 2025
51b1eb9
fix: pdf header and footer spacing again until I solve the localhost …
bdenham Mar 12, 2025
fa99ce2
fix: pdf header and footer spacing again until I solve the localhost …
bdenham Mar 12, 2025
61555e5
fix: optimize images
bdenham Mar 12, 2025
16524cb
fix: tighten steps text
bdenham Mar 12, 2025
9cd6fc0
fix: multiple fixes for pdf output
bdenham Mar 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: headers and footers
bdenham committed Mar 11, 2025
commit 9254440f13a25ec366cd774b35196cb2fd27a921
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@
"lint": "prettier --write \"**/*.{js,jsx,ts,tsx,md,mdx,astro}\" && eslint --fix \"src/**/*.{js,ts,jsx,tsx,astro}\"",
"clean": "rm -rf dist && rm -rf .astro && rm -rf node_modules && pnpm install",
"scrub": "rm -rf dist && rm -rf .astro && rm -rf node_modules && rm -rf pnpm-lock.yaml && rm -rf ~./.pnpm-store && pnpm install",
"pdf": "npx starlight-to-pdf https://commerce-docs.github.io/microsite-commerce-storefront/merchants/tutorials/summit-lab-320/ --filename 'lab-320-workbook.pdf' --no-starlight-print-css --contents-name 'Lab Contents' --header ./pdf-header.html --footer ./pdf-footer.html --print-bg --pdf-outline --css-page-size --styles './pdf-styles.css' --timeout '400_000'"
"pdf": "npx starlight-to-pdf https://commerce-docs.github.io/microsite-commerce-storefront/merchants/tutorials/summit-lab-320/ --filename 'lab-320-workbook' --no-starlight-print-css --contents-name 'Lab Contents' --header ./pdf-header.html --footer ./pdf-footer.html --print-bg --pdf-outline --css-page-size --styles './pdf-styles.css' --timeout '400000'"
},
"dependencies": {
"@astrojs/check": "^0.9.4",
15 changes: 1 addition & 14 deletions pdf-footer.html
Original file line number Diff line number Diff line change
@@ -4,31 +4,18 @@
<style>
.footer-container {
--color: rgb(76, 60, 25);

display: flex;
align-items: center;
justify-content: space-between;
border-block-start: 1px solid var(--color);
color: var(--color);
font-size: 10px;
font-family: Helvetica, sans-serif;
margin-inline: 1.5cm 1cm;
padding-block: 0.25cm 0.5cm;
width: 100%;
}

.link {
text-decoration: underline;
text-underline-position: under;
}
</style>

<div class="footer-container">
<span class="link">https://experienceleague.adobe.com/developer/commerce/storefront/</span>
<div>
<!-- Numbers inside the elements with `.pageNumber` and `.totalPages` classes are injected automatically by Puppeteer -->
<span class="pageNumber"></span> / <span class="totalPages"></span>
</div>
<div>Adobe Summit Lab 320 - Get Your Customers Down the Funnel with Edge Delivery and Drop-ins</div>
</div>
</body>
</html>
17 changes: 11 additions & 6 deletions pdf-header.html
Original file line number Diff line number Diff line change
@@ -7,20 +7,25 @@
display: flex;
align-items: center;
justify-content: space-between;
border-block-end: 1px solid var(--color);
color: var(--color);
font-size: 10px;
font-family: Helvetica, sans-serif;
margin-inline: 1.5cm 1cm;
padding-block: 0.25cm 0.5cm;
width: 100%;
}

.link {
text-decoration: none;
text-underline-position: under;

}
</style>

<div class="header-container">
<div>Adobe Summit Lab 320</div>
<!-- Date inside the element with `.date` class is injected automatically by Puppeteer -->
<div class="date"></div>
<div>Adobe Summit 2025</div>
<!-- Numbers inside the elements with `.pageNumber` and `.totalPages` classes are injected automatically by Puppeteer -->
<div>
<span class="pageNumber"></span> / <span class="totalPages"></span>
</div>
</div>
</body>
</html>