This repository hosts Rohit Jain's personal portfolio website, built using Jekyll and the dev-portfolio-blog
theme.
site
branch: Contains the source code for the Jekyll website.master
branch: Contains the built, static website files, deployed to GitHub Pages.
To set up and run this project locally, ensure you have Ruby, Jekyll, and Bundler installed.
-
Clone the repository:
git clone https://github.com/rohitjain00/rohitjain00.github.io.git cd rohitjain00.github.io
-
Install dependencies:
bundle install
-
Run the website locally:
bundle exec jekyll serve
This will serve the website at
http://localhost:4000
(or another port if 4000 is in use).
The website can be built using the provided build script:
bash scripts/build.sh
This command compiles the Jekyll site into the _site
directory.
This repository includes a pre-commit hook that automates the deployment process to GitHub Pages.
- When you commit changes to the
site
branch, the hook will automatically:- Build the Jekyll website.
- Switch to the
master
branch. - Copy the built website files from the
_site
directory to the root of themaster
branch. - Commit these changes to the
master
branch. - Switch back to the
site
branch.
Important: After committing to the site
branch, you must manually push both the site
and master
branches to your remote repository for the changes to be live on GitHub Pages.
git push origin site master
This website uses the dev-portfolio-blog
Jekyll theme. You can find more information about the theme at: