Setup Documentation Site
The documentation you are reading right now is a Jekyll site using the Just the Docs theme. If you want to preview it locally before pushing changes, here is how.
Prerequisites
You need Ruby and Bundler:
- Linux (Debian/Ubuntu):
sudo apt install ruby ruby-dev build-essential sudo gem install bundler - macOS: Ruby comes preinstalled. Install Bundler with
sudo gem install bundler. - Windows:
- Install Ruby from rubyinstaller.org. IMPORTANT: Install version 3.3.x to avoid compatibility issues with Ruby 3.4 and later. Either the
With DevKitorWithout DevKitpackage works. The important step is the checkbox at the end of the installer: “Run ‘ridk install’ to set up MSYS2 and development toolchain”. Leave it checked. When the terminal opens, type3and press Enter to install MSYS2 and MINGW – Jekyll needs them to build native gems. Also make sure “Add Ruby executables to your PATH” is checked during installation. - Then
gem install bundlerin a terminal.
- Install Ruby from rubyinstaller.org. IMPORTANT: Install version 3.3.x to avoid compatibility issues with Ruby 3.4 and later. Either the
Build and serve
cd docs/
bundle config set --local path vendor/bundle
bundle install
bundle exec jekyll serve --source .
Open http://127.0.0.1:4000 in your browser. The site rebuilds automatically when you edit a file.
What each file does
docs/_config.yml– theme settings, color scheme, navigation, footer, calloutsdocs/index.md– home page with the step-by-step tabledocs/*.md– each page of the tutorialdocs/assets/– images and other static filesdocs/_includes/– custom HTML snippets (if any)docs/_sass/– custom CSS overridesdocs/Gemfile– Ruby dependency manifest (Jekyll and Just the Docs versions)