- ALL changes must be done through github via creating a new branch, making modifications, and then requesting a pull request. Admin will then verify locally and then merge the request.
- There are 2 ways to make modifcations. One way is directly through the github page online, or the second way is to locally make changes on your local machine by installing Jekyll on Linux. Minor addition such as adding members photo or publications can be done online through github site without having to locally setup Jekyll.
- Make changes!
- Create a new branch with a short description of the change when starting out your work. You can do so by clicking on
master
tab down button, clickview all branches
, and then clicknew branch
. - Upload a SQUARE 1:1 ratio headshot photo under img/members directory directly through github website. It has to be a square photo or the circle headshot will become an awkward oval. Commit changes to upload.
- Add an entry to
members.md
directly through the github website -- navigate to the file and click edit file.- Copy paste an existing members item and update.
- Commit changes.
- If you want to make changes to the slideshow of lab photos, update the bottom section of
members.md
and upload image under img/lab directory. - Double check syntax and correct file directory, and then create a pull request to the
master
branch ofiamlab.github.io
and NOTr-pad.github.io
. - Notify Mark Lee ([email protected]) about the pull request.
- If you haven't done so already, create a new branch with a short description of the change when starting out your work. You can do so by clicking on
master
tab down button, clickview all branches
, and then clicknew branch
. - Upload the cover photo or gif of your research under
pics
. Commit the changes to upload. - The publications page is updated by updating
_data/pubs.yaml file
.The publication.md
reads the data from the yaml file and displays it. - Add an entry to
_data/pubs.yaml file
.- Indentation matter in yml format, so pay careful attention to match the existing style EXACTLY. Especially when copying over Bibtex, make sure tab indentation is correctly aligned like existing items.
- Get the Bibtex from Google Scholar.
- Embed the video link from youtube right click video, and paste the entire embedding info.
- You can ignore the tags. It existed for previous lab website to tag key research areas and publications together.
- Notify Mark Lee ([email protected]) about the pull request.
- Clone the GitHub repo by
git clone [email protected]:r-pad/r-pad.github.io.git
. - Make sure you have ruby-dev, bundler, and nodejs installed:
sudo apt install ruby-dev ruby-bundler nodejs
. - Change the working directory to the
r-pad.github.io
folder. - Run
bundle clean
to clean up the directory (no need to run--force
). - Run
bundle install
to install ruby dependencies. If you get errors, delete Gemfile.lock and try again. - Run
bundle exec jekyll serve -P 4000 -l --livereload-port 8080
to generate the HTML and serve it fromlocalhost:4000
.
More documentations can be found here.
- Ubuntu and Ruby versions needs to match correctly. In my experience, Ubuntu 20.04 did not work with apt package installation because it installed Ruby 2.7 and Ubuntu 20.04 required Ruby 3.x. In such cases, install Ruby using Rbenv as shown in the 2nd method here.
If the following command does not Network in Windows PowerShell
docker run -d -p 4000:4000 -p 25003:25003 --name beautiful-jekyll -v "$PWD:/srv/jekyll" beautiful-jekyll
Try the following
docker run -d -p 4000:4000 -p 25003:25003 --name beautiful-jekyll -v "$(PWD):/srv/jekyll" beautiful-jekyll
- First set up local development for Jekyll listed above.
- Add an entry to
members.md
.- Copy paste an existing members item and update.
- Upload a SQUARE 1:1 ratio headshot photo under img/members directory. It has to be a square photo or the circle headshot will become an awkward oval.
- Check your changes running the server on your local machine and viewing the site at localhost:4000 .
- Commit and push your changes.
- If you want to make changes to the slideshow of lab photos, update the bottom section of
members.md
and upload image under img/lab directory.
- The publications page is updated by updating
_data/pubs.yaml file
.The publication.md
reads the data from the yaml file and displays it. - Add an entry to
_data/pubs.yaml file
.- Indentation matter in yml format, so pay careful attention to match the existing style EXACTLY.
- Upload the cover photo or gif of your research under
pics
. - Get the Bibtex from Google Scholar.
- Embed the video link from youtube right click video, and paste the entire embedding info.
- You can ignore the tags. It existed for previous lab website to tag key research areas and publications together.
- The members page is updated by directly modifying members.md .
- The publications page is updated by updating
_data/pubs.yaml file
.The publication.md
reads the data from the yaml file and displays it. There are instructions at the top on how to enter a new publication. - Most of the work of being the website admin is approving member's pull requests to update the publications or members. We haven't opened up master branch access to all members as a way to check any updates before they are pushed. To make a new lab maintainer, add them as a member to the iamlab-cmu.github.io repository and set their role as Admin.
Thank you for providing the template and helping us out!
Copyright 2019 Dean Attali
Beautiful Jekyll is a ready-to-use template to help you create an awesome website quickly. Perfect for personal sites, blogs, or simple project websites. Check out a demo of what you'll get after just two minutes. You can also look at my personal website to see it in use, or see examples of websites other people created using this theme here.
If you enjoy this theme, please consider supporting me for developing and maintaining this template.