This repository is for the website for the MITRE Cyber Academy.
- Make changes to the project
- Make sure you have the latest version of Ruby
- Run
gem install bundle
- Run
rbenv rehash
- Run
bundle install
- Run
bundle exec jekyll server
- In your browser enter localhost:4000 in the address bar
- Fork the repository on github
- Run
git clone [address]
- Make your edits
- View your edits
- Run the git add and commit commands. Please make sure your commit messages are descriptive.
- Run
git push origin master
- Submit a pull request
sudo apt install ruby
sudo apt install rbenv
sudo apt-get install build-essential patch ruby-dev zlib1g-dev liblzma-dev
export PATH=$PATH:/home/<username>/.gem/ruby/<ruby version>/bin/
gem install --user-install bundle
echo 'exclude: [vendor]' >> _config.yml # (https://stackoverflow.com/questions/39057405/unable-to-build-a-jekyll-site-invalid-date)
bundle install --path vendor/bundle
bundle exec jekyll server
docker run -p 8080:4000 -v $(pwd):/site bretfisher/jekyll-serve