Set up GitHub Pages compatibility with new Gemfile and scripts

- Updated Gemfile for GitHub Pages compatibility, including necessary gems.
- Added Gemfile.github-pages for specific GitHub Pages dependencies.
- Created scripts to switch between GitHub Pages and local development setups.
- Introduced GitHub Actions workflow for building and deploying the Jekyll site to GitHub Pages.
This commit is contained in:
Z. Cliffe Schreuders
2025-09-15 23:33:11 +01:00
parent 3d9029a200
commit 94d4f3b74a
5 changed files with 129 additions and 3 deletions

23
switch-to-github-pages.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
# Script to switch to GitHub Pages compatible setup
echo "Switching to GitHub Pages compatible setup..."
# Backup current Gemfile
cp Gemfile Gemfile.local-dev
# Use GitHub Pages compatible Gemfile
cp Gemfile.github-pages Gemfile
echo "✅ Switched to GitHub Pages compatible setup"
echo "📝 Your local development Gemfile has been backed up as Gemfile.local-dev"
echo ""
echo "To switch back to local development:"
echo " cp Gemfile.local-dev Gemfile"
echo " bundle install"
echo ""
echo "To deploy to GitHub Pages:"
echo " git add ."
echo " git commit -m 'Update for GitHub Pages'"
echo " git push origin main"