From 7e267df49b4ca8fb08ffa2268c21e16da402843b Mon Sep 17 00:00:00 2001
From: Nathan <85657152+Snare-Hawk@users.noreply.github.com>
Date: Thu, 27 Jul 2023 13:00:43 -0400
Subject: [PATCH] Update README.md
added instruction on how to run locally just because
thanks to @TheShadowEevee for writing these instructions
---
README.md | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/README.md b/README.md
index 75499e184..f41b00abb 100644
--- a/README.md
+++ b/README.md
@@ -12,3 +12,37 @@ The site: [wii.guide](https://wii.guide)
You can translate the site by using Crowdin, a site created to translate projects.
You can join here: [Wii.guide's Crowdin Page](https://crowdin.com/project/wii-guide)
+
+## Running Wii-Guide locally
+
+### Installing on Windows:
+
+1. Download the latest RubyInstaller **with devkit** from
+1. Run the installer and on the last screen make sure to have the `ridk install` step _checked_
+1. A command prompt window should appear, choose the number for `MSYS2 and MINGW development tool chain` and press enter.
+1. Open a new command prompt window then continue to Running Jekyll
+
+### Installing on Linux:
+
+1. Install Ruby with `sudo apt install ruby ruby-dev build-essentials git -y` (Or your package manager equivalent)
+1. Run `gem install jekyll bundler`
+1. Continue to Running Jekyll
+
+### Running Jekyll:
+
+1. Please follow the installation steps for your platform if you haven't in the past
+1. Navigate to a directory for git to create the Wii-Guide folder in
+1. Run `git clone https://github.com/RiiConnect24/Wii-Guide` (Or the url of the fork you want to clone)
+1. If you want to use another branch, now run `git checkout `
+1. Next run `bundle install`
+1. Finally, run `bundle exec jekyll serve --incremental`
+1. Navigate to https://localhost:4000, your server should be running!
+
+### Notes:
+
+- From now on you can just run `bundle exec jekyll serve --incremental` from the Wii-Guide directory
+- When (re)cloning a repository or updating the `Gemfile` file, run `bundle install` first
+- If a page isn't updating correctly after making local changes, try removing the `--incremental` argument first
+ - You can also hard refresh the website with `Ctrl + Shift + R` usually
+ - If this doesn't help close your web browser entirely (All windows!) and try again
+- Making a change to a file will regenerate the local webview automatically if jekyll is running