- Development
- Building Locally
- Using Github Automatic Previews
- Using Docker Container
- Pushing Changes to Production
PATh brings together the Center for High Throughput Computing and the OSG in order to advance the nation’s campuses and science communities through the use of distributed High Throughput Computing.
Thie website is a Jekyll based website. The theme is based on Jekyll-Serif. Please create a pull request to modify the website.
To have you changes merged into the main website you must create a PR and get one review before you are allowed to merge. If you don't have anyone in mind you can request @CannonLock and he will review it the next morning.
The following three guides contain a method to view your website changes before creating a PR.
If this is your first time using Jekyll, please follow the Jekyll docs and make sure your local environment (including Ruby) is setup correctly.
- Create a Branch from master with 'preview-' at the start of the branch name
- For instance 'preview-helloworld'
- Push this branch to the repo at https://github.com/path-cc/path-cc.github.io.git
- If you created the branch on github it is already there!
- Populate the changes that you want to see
- Preview the changes that you have made at https://path-cc.io/web-preview/<branch-name>/
- For this instance https://path-cc.io/web-preview/preview-helloworld/
- When you are happy with the changes create a PR into master
Depending on your environment, it may be more useful to run Jekyll inside a container. To do this, run the following from your laptop while inside the checked-out copy of the website source:
docker run -p 8000:8000 --rm --volume $PWD:/srv/jekyll -it jekyll/jekyll:latest /bin/sh
This will utilize the latest Jekyll version and map port 8000
to your host. Within the container, a small HTTP server can be started with the following command:
jekyll serve --watch -H 0.0.0.0 -P 8000
This will build and serve the website; it can be viewed by navigating your web browser to http://localhost:8000.
With the --watch
flag set, any changes you make to the website source will cause a new version of the website to be built; it usually takes 4-5 seconds between hitting "Save" and then "Refresh" on the website.
The production website (https://path-cc.io/) is built automatically by GitHub Pages from the master branch.
To make changes to the website, use the following workflow:
- Submit a pull request with website updates to the
master
branch (the default) and request a review.- Any reviews with visual changes can be handled more quickly if you provide a preview instance
- Upon approval and merge you can view the changes at https://path-cc.io