Local Documentation Setup (Windows)¶
This guide explains how to set up the documentation locally on Windows for testing before deployment.
Option 1: Skip Local Testing (Recommended)¶
You don't need to install Ruby locally! GitHub Actions will automatically build and deploy your documentation when you push changes. Simply:
- Edit markdown files in the
docs/directory - Commit and push to GitHub
- GitHub Actions will build and deploy automatically
Option 2: Install Ruby for Local Testing¶
If you want to preview the documentation locally before pushing:
Install Ruby on Windows¶
- Download RubyInstaller:
- Visit: https://rubyinstaller.org/
- Download Ruby+Devkit 3.1.x (recommended)
-
Run the installer
-
Verify Installation:
-
Install Bundler:
-
Install Jekyll Dependencies:
-
Run Local Server:
-
View Documentation:
- Open http://localhost:4000 in your browser
Troubleshooting¶
If bundle install fails:
- Make sure you installed Ruby+Devkit (not just Ruby)
- Run the MSYS2 installer that comes with Ruby+Devkit
- Restart PowerShell after installation
If Jekyll fails to start:
- Ensure all dependencies installed: bundle install
- Check Ruby version: ruby --version (should be 3.1.x or compatible)
Alternative: Use Docker¶
If you prefer not to install Ruby directly:
# Using Docker (if you have Docker Desktop installed)
docker run --rm -it -v ${PWD}:/srv/jekyll -p 4000:4000 jekyll/jekyll:latest jekyll serve
Then open http://localhost:4000
Recommended Workflow¶
For most users, we recommend:
- Edit documentation in your editor
- Commit and push to GitHub
- Let GitHub Actions build and deploy
- View the live site at:
https://dmytro-yemelianov.github.io/raps/
This avoids local setup complexity while still allowing you to edit and deploy documentation easily.