static hosting
- index: coaching upsell
- guides: where our various recommendations are hosted
- Ruby (version 2.5.0 or higher)
- RubyGems
- Git
-
Install Homebrew if not already installed:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" -
Install Ruby using rbenv:
brew install rbenv ruby-build echo 'eval "$(rbenv init - zsh)"' >> ~/.zshrc source ~/.zshrc rbenv install 3.2.2 rbenv global 3.2.2
-
Install Jekyll and Bundler:
gem install jekyll bundler
-
Verify installations:
ruby -v # Should show Ruby 3.2.2 or higher jekyll -v # Should show Jekyll 4.x.x
Note: If you encounter permissions errors during gem installation, never use sudo with gems. Instead, add this to your ~/.zshrc:
export GEM_HOME=$HOME/.gem
export PATH=$GEM_HOME/bin:$PATH-
Clone the repository:
git clone https://github.com/macmetrep/macmetrep.github.io.git cd macmetrep.github.io -
Install Jekyll and dependencies:
gem install bundler jekyll bundle install
-
Run the site locally:
bundle exec jekyll serveThe site will be available at
http://localhost:4000
This site is automatically deployed through GitHub Pages:
- Push changes to the
mainbranch - GitHub Actions will automatically build and deploy the site
- Changes will be live at
https://macmetrep.github.io
- Create new guides in the
guidesdirectory using Markdown files - Add new pages using the Jekyll page format with YAML front matter
- Images and other assets go in the
assetsdirectory