How to Preview Your Website Changes
Option 1: GitHub Pages (Recommended - Easiest)
Since your repository is pruthakjoshi.github.io, GitHub will automatically build and publish your site.
Steps:
- Commit and push your changes to GitHub:
- If using GitHub Desktop: Click “Commit to main” then “Push origin”
- If using VS Code: Use the Source Control panel (Ctrl+Shift+G) to commit and push
- If using GitHub web: Upload the changed files through the web interface
-
Wait 1-2 minutes for GitHub Pages to rebuild your site
- Visit your site: Go to
https://pruthakjoshi.github.io- Your homepage will be at:
https://pruthakjoshi.github.io/ - Projects page:
https://pruthakjoshi.github.io/projects
- Your homepage will be at:
Note: GitHub Pages builds automatically on every push to the main branch. Changes typically appear within 1-2 minutes.
Option 2: Run Jekyll Locally (For Faster Development)
If you want to preview changes instantly without pushing to GitHub, you can run Jekyll locally.
Prerequisites:
- Install Ruby (for Windows):
- Download RubyInstaller from: https://rubyinstaller.org/
- Install Ruby+Devkit (recommended version)
- During installation, check “Add Ruby executables to your PATH”
- Install Jekyll and dependencies:
gem install bundler bundle install - Run the local server:
bundle exec jekyll serve - View your site: Open
http://127.0.0.1:4000in your browser
The site will auto-reload when you make changes to files!
Quick Checklist for Your Changes
The improvements made include:
- ✅ Homepage styling moved to
assets/css/home.css - ✅ Projects page styling moved to
assets/css/projects.css - ✅ Projects JavaScript moved to
assets/js/projects.js - ✅ Cleaner
_config.ymlfile
All files are ready to be committed and pushed to GitHub!