The dist/ folder now contains all the static files needed for GitHub Pages deployment:
dist/
├── index.html # Main homepage (dynamic content)
├── about.html # About page
├── theme-demo.html # Theme demonstration
├── case-studies/ # Case study pages
│ ├── xwiki.html
│ ├── anylyze.html
│ └── analogdevices.html
├── css/themes/
│ ├── dark/style.min.css # Main stylesheet
│ └── light/style.min.css # Light theme (optional)
├── js/
│ └── app.js # Bundled JavaScript with content
└── img/
├── favicon.ico
├── avatar-portrait.png
└── logo.png
All file paths have been updated to work correctly when served from GitHub Pages:
- CSS:
css/themes/dark/style.min.css - JavaScript:
js/app.js - Images:
img/filename.png - Case studies:
../css/(relative paths from subdirectory)
- Go to your repository Settings → Pages
- Set Source to "Deploy from a branch"
- Select branch:
master(ormain) - Set folder to
/ (root) - Save
- Create a new branch called
gh-pages - Copy contents of
dist/to the root of that branch - Push the branch
- Set GitHub Pages source to
gh-pagesbranch
Create .github/workflows/deploy.yml:
name: Deploy to GitHub Pages
on:
push:
branches: [ master ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./distThe site uses dynamic content rendering:
- Edit content: Modify
src/js/content.js - Rebuild: Run
npm run buildor./deploy.sh - Deploy: Push changes to trigger GitHub Pages update
- ✅ Responsive design
- ✅ Dark theme (default)
- ✅ Dynamic content from JavaScript
- ✅ Case studies with detailed pages
- ✅ YouTube video integration
- ✅ Social media links
- ✅ Smooth scrolling and animations
- ✅ SEO-friendly meta tags
- Edit content in
src/js/content.js - Run
./deploy.shto rebuild - Commit and push changes
- GitHub Pages will automatically update
Your site will be available at: https://[username].github.io/[repository-name]/