Developer documentation about all things Git-Mastery
This repository contains the source for the Git-Mastery developer docs site, built with Jekyll and the Just the Docs theme.
Install the following tools first:
-
Ruby 3.2.2
Use one of the following OS-specific options.
macOS (Homebrew + rbenv):
brew install rbenv ruby-build rbenv install 3.2.2 echo 'eval "$(rbenv init - zsh)"' >> ~/.zshrc source ~/.zshrc rbenv global 3.2.2 ruby -v
Ubuntu/Debian (rbenv):
sudo apt update sudo apt install -y git curl build-essential libssl-dev zlib1g-dev \ libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev \ libxslt1-dev libcurl4-openssl-dev libffi-dev libgdbm-dev libncurses5-dev curl -fsSL https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-installer | bash export PATH="$HOME/.rbenv/bin:$PATH" eval "$(rbenv init - bash)" rbenv install 3.2.2 rbenv global 3.2.2 ruby -v
Windows (RubyInstaller + ridk):
- Download and install Ruby 3.2.x from RubyInstaller.
- Choose the installer named
Ruby+Devkit 3.2.x (x64)for most systems. Usex86only if your Windows is 32-bit. - During install, keep the option to run
ridk installenabled. - Open a new PowerShell and verify:
ruby -v -
Bundler
gem install bundler
From the repository root:
-
Install dependencies:
bundle install
-
Start the local docs server:
bundle exec jekyll serve --livereload -
Open the site at:
http://127.0.0.1:4000/developers/
Note: this repository uses baseurl: "/developers", so the local path includes /developers/.
To generate a static build in _site/:
bundle exec jekyll build- Add or edit docs in
docs/. - Use frontmatter fields like
title,parent, andnav_orderso pages appear correctly in navigation. - Keep links and examples consistent with the current Git-Mastery workflows.
bundle: command not found: ensure Ruby and Bundler are installed, then open a new shell and rungem install bundler.- Ruby version is not 3.2.2 on macOS/Linux: confirm with
ruby -v, then set withrbenv global 3.2.2. - Ruby version is not 3.2.2 on Windows: reinstall Ruby 3.2.x from RubyInstaller and reopen PowerShell.
- Port
4000already in use: runbundle exec jekyll serve --port 4001. - Styling or content not updating: restart
jekyll serveand hard refresh your browser.