Skip to content

Commit 6224de1

Browse files
committed
feat: add assembly reference media for screen, ceiling, tunnel, and feeder modules
1 parent 8cf8638 commit 6224de1

5 files changed

Lines changed: 29 additions & 1 deletion

File tree

site/public/docs/beatbox-assembly-sop.html

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,11 @@ <h1 id="pageTitle"></h1>
600600

601601
const screenAssembly = findSubsection('screen_module', 'Assembly');
602602
if (screenAssembly?.items) {
603+
screenAssembly.media = {
604+
src: '/videos/buidling_gifs/BEATBox_Screen.gif',
605+
alt: 'Building the BEATBox screen module',
606+
caption: 'Screen module assembly reference.'
607+
};
603608
replaceItemText(screenAssembly.items, 'Install required M3 inserts.', 'Install required M3 inserts using tissue forceps to start the entry and the 2.5 mm T-handle ball-end hex key to drive them in straight.');
604609
replaceItemText(screenAssembly.items, 'Mount the screen PCB.', 'Screw the screen alone into the first housing part.');
605610
replaceItemText(screenAssembly.items, 'Insert the screen in the intended orientation.', 'Place and route the cables before joining the two housing/electronic parts.');
@@ -618,9 +623,24 @@ <h1 id="pageTitle"></h1>
618623
});
619624

620625
const ceilingAssembly = findSubsection('ceiling_module', 'Assembly');
626+
if (ceilingAssembly) {
627+
ceilingAssembly.media = {
628+
src: '/videos/buidling_gifs/BEATBox_Light%20.gif',
629+
alt: 'Building the BEATBox ceiling light module',
630+
caption: 'Ceiling / light module assembly reference.'
631+
};
632+
}
621633
replaceItemText(ceilingAssembly?.items, 'Install inserts as needed.', 'Install inserts as needed, using tissue forceps to clean the entry and the 2.5 mm T-handle ball-end hex key to drive inserts in straight over a flat, solid surface.');
622634

623-
const tunnelItems = findSection('tunnel_module')?.items;
635+
const tunnelModule = findSection('tunnel_module');
636+
if (tunnelModule) {
637+
tunnelModule.media = {
638+
src: '/videos/buidling_gifs/BEATBox_Tunnel.gif',
639+
alt: 'Building the BEATBox tunnel module',
640+
caption: 'Tunnel module assembly reference.'
641+
};
642+
}
643+
const tunnelItems = tunnelModule?.items;
624644
replaceItemText(tunnelItems, 'Install inserts.', 'Install inserts, using tissue forceps to clean the entry and the 2.5 mm T-handle ball-end hex key to drive inserts in straight over a flat, solid surface.');
625645

626646
const feederPrep = findSubsection('feeder_module', 'Preparation');
@@ -634,6 +654,13 @@ <h1 id="pageTitle"></h1>
634654
});
635655

636656
const feederMechanical = findSubsection('feeder_module', 'Mechanical assembly');
657+
if (feederMechanical) {
658+
feederMechanical.media = {
659+
src: '/videos/buidling_gifs/BEATBox_feeder.gif',
660+
alt: 'Building the BEATBox feeder module',
661+
caption: 'Feeder module assembly reference.'
662+
};
663+
}
637664
replaceItemText(feederMechanical?.items, 'Install M3 inserts in the feeder housing.', 'Install M3 inserts in the feeder housing, using tissue forceps to clean/start the entry and the 2.5 mm T-handle ball-end hex key to drive inserts in straight over a flat, solid surface.');
638665
addUnique(feederMechanical?.items, {
639666
text: 'For feeder IR sensors, physically remove the small black locating pin with scissors or tissue forceps when it prevents flat contact with the wall surface.',
@@ -691,6 +718,7 @@ <h3>${escapeHTML(sub.title)}</h3>
691718
${renderMedia(sub.afterMedia, 'secondary')}
692719
</div>`).join('');
693720
} else {
721+
body += renderMedia(section.media);
694722
body += renderItems(section.items || [], section, section.title);
695723
}
696724
if (section.id === 'costs') {
12.5 MB
Loading
25 MB
Loading
20.4 MB
Loading
28.7 MB
Loading

0 commit comments

Comments
 (0)