Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.81 KB

README.md

File metadata and controls

43 lines (34 loc) · 1.81 KB

grafeas.github.io

This repository contains the source code for the grafeas.io web site.

Please see the main Grafeas README file to learn about the overall Grafeas project and how to get in touch with us.

The website uses Jekyll templates and is hosted on GitHub Pages. Please make sure you are familiar with these before editing. See instructions on how to do editing.

To run the site locally with Docker, use the following command from the toplevel directory for this git repo (e.g. pwd must be ~/github/grafeas.github.io if you were in ~/github when you issued git clone https://github.com/grafeas/grafeas.github.io.git)

# First time: (slow)
docker run --name grafeas-jekyll --volume=$(pwd):/srv/jekyll  -it -p 127.0.0.1:4000:4000 jekyll/jekyll:3.5.2 sh -c "bundle install && rake test && jekyll serve"
# Subsequent, each time you want to see a new change and you stopped the previous run: (much faster)
docker start grafeas-jekyll -a -i
# Clean up, only needed if you won't be previewing website changes for a long time or you want to start over:
docker rm grafeas-jekyll

The rake test part is to make sure you are not introducing html errors or bad links, you should see

HTML-Proofer finished successfully.

in the output

Local/Native Jekyll install:

Alternatively, if you just want to develop locally w/o Docker/Kubernetes/Minikube, you can try installing Jekyll locally. You may need to install other prerequisites manually (which is where using the docker image shines). Here's an example of doing so for Mac OS X:

xcode-select --install
brew install ruby
sudo gem install bundler
sudo gem install jekyll
cd grafeas.github.io
bundle install
rake test
bundle exec jekyll serve