Storybook Deployment Fix #8

Merged
an.di merged 3 commits from adilallo/bugfix/StorybookImageFix into adilallo/HeroBanner 2025-08-20 19:29:38 +00:00
Owner

Fix GitHub Pages Asset Loading for Storybook

Overview

This PR resolves asset loading issues in the Storybook deployment on GitHub Pages.
All absolute paths were converted to relative paths, and the base path was configured for the communityrulestorybook repository.

Deployment is currently on my personal GitHub account and will be migrated to the MEDLab server in the future.

Changes

  • Updated Storybook base path to /communityrulestorybook/
  • Added <base href> tags in managerHead and previewHead
  • Configured Vite base option for sub-path hosting
  • Converted all component asset paths from /assets/...assets/...
    • SectionNumber, Header, HomeHeader, HeroBanner, ContentLockup, HeaderTab, Footer, Logo
  • Fixed Avatar and AvatarContainer story asset references
  • Added .nojekyll file to prevent Jekyll processing
  • Rebuilt Storybook with corrected configuration

How to Test

  1. Visit: https://adilallo.github.io/communityrulestorybook/
  2. Verify:
    • Avatars load in Header and HomeHeader
    • Section number images appear in NumberedCards
    • Hero image displays in HeroBanner
    • Logos and decorative elements render in Footer and Logo
    • All story examples load assets correctly
  3. Check browser console for no 404 errors
  4. Confirm layout and assets work across mobile, tablet, and desktop

Notes

  • Fixes apply only to asset paths and configuration, no functional changes
  • Current deployment is temporary on personal GitHub Pages
  • Migration to MEDLab server planned in the future
# Fix GitHub Pages Asset Loading for Storybook ## Overview This PR resolves asset loading issues in the Storybook deployment on GitHub Pages. All absolute paths were converted to relative paths, and the base path was configured for the `communityrulestorybook` repository. Deployment is currently on my personal GitHub account and will be migrated to the MEDLab server in the future. ## Changes - Updated Storybook **base path** to `/communityrulestorybook/` - Added `<base href>` tags in **managerHead** and **previewHead** - Configured **Vite base** option for sub-path hosting - Converted all component asset paths from `/assets/...` → `assets/...` - **SectionNumber**, **Header**, **HomeHeader**, **HeroBanner**, **ContentLockup**, **HeaderTab**, **Footer**, **Logo** - Fixed **Avatar** and **AvatarContainer** story asset references - Added `.nojekyll` file to prevent Jekyll processing - Rebuilt Storybook with corrected configuration ## How to Test 1. Visit: `https://adilallo.github.io/communityrulestorybook/` 2. Verify: - Avatars load in Header and HomeHeader - Section number images appear in NumberedCards - Hero image displays in HeroBanner - Logos and decorative elements render in Footer and Logo - All story examples load assets correctly 3. Check browser console for **no 404 errors** 4. Confirm layout and assets work across **mobile, tablet, and desktop** ## Notes - Fixes apply only to **asset paths and configuration**, no functional changes - Current deployment is **temporary on personal GitHub Pages** - Migration to **MEDLab server** planned in the future
an.di added 12 commits 2025-08-20 19:28:51 +00:00
an.di changed title from adilallo/bugfix/StorybookImageFix to Storybook Deployment Fix 2025-08-20 19:29:13 +00:00
an.di changed target branch from main to adilallo/HeroBanner 2025-08-20 19:29:13 +00:00
an.di merged commit e483175c35 into adilallo/HeroBanner 2025-08-20 19:29:38 +00:00
an.di deleted branch adilallo/bugfix/StorybookImageFix 2025-08-20 19:29:38 +00:00
an.di self-assigned this 2025-08-28 20:31:33 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: CommunityRule/community-rule#8