Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

uwcms/tac-hep

Repository files navigation

tac-hep website

Website is hosted here.

For local build Ruby needs to be installed. Instructions can be found here.

Run locally

The site is built with Jekyll, and is easy to run locally if you have Ruby. To set up a “bundle” (local virtual environment in Python terms):

bundle install

Build and deploy website

To check website on localhost: bundle exec jekyll serve

To build website: bundle exec jekyll build

To deploy static site :

  • Build website from main branch
  • Check that everything looks fine on localhost
  • Switch to the gh-pages branch
  • Copy the contents of the _site directory from main to gh-pages

Instructions

Note : Before editing dont forget to git pull to pull any remote changes.

git clone git@github.com:uwcms/tac-hep.git
git checkout main 

Perform all needed editing. Then run :

bundle exec jekyll serve

If all look fine on localhost :

git add .
git commit -m "comment on changes"
git push origin main
bundle exec jekyll build
mv _site ../.
git checkout gh-pages
mv ../_site .
scp -r _site/* .
git add .
git commit -m "comment on changes"
git push origin gh-pages