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
Logos and decorative elements render in Footer and Logo
All story examples load assets correctly
Check browser console for no 404 errors
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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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
communityrulestorybookrepository.Deployment is currently on my personal GitHub account and will be migrated to the MEDLab server in the future.
Changes
/communityrulestorybook/<base href>tags in managerHead and previewHead/assets/...→assets/....nojekyllfile to prevent Jekyll processingHow to Test
https://adilallo.github.io/communityrulestorybook/Notes
adilallo/bugfix/StorybookImageFixto Storybook Deployment Fix