Skip to content

Commit

Permalink
🐛 hopefully fixes pathing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
acarrou committed Nov 15, 2023
1 parent 643b31b commit 36b36ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ node_modules/
*.log

# OS generated files
.DS_Store
*.DS_Store
Thumbs.db

# Build directory
Expand Down
7 changes: 4 additions & 3 deletions docs/user_guide/dev_tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The Astraeus-I board is tailored to be housed within a 3D-printed enclosure. The

function getAssetPath(fileName) {
const isLocal = window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1';
return isLocal ? `../../assets/${fileName}` : `./assets/${fileName}`;
return isLocal ? `../../assets/${fileName}` : `/docs/assets/${fileName}`;
}

function setupSTLViewer(containerId, stlFileName) {
Expand Down Expand Up @@ -127,6 +127,7 @@ The Astraeus-I board is tailored to be housed within a 3D-printed enclosure. The
}

// Initialize viewers for each STL file
setupSTLViewer('astra_ground_top', 'AstraeusGroundCasingTop.stl');
setupSTLViewer('astra_ground_bottom', 'AstraeusGroundCasingBottom.stl');
setupSTLViewer('astra_ground_top', 'AstraeusGroundCasingTop.STL');
setupSTLViewer('astra_ground_bottom', 'AstraeusGroundCasingBottom.STL');

</script>

0 comments on commit 36b36ef

Please sign in to comment.