diff --git a/README.md b/README.md index bae4712..5deffc5 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,9 @@ # Setup locally +## WSL / Linux + +**Ruby (via rvm)** ```bash curl -sSL https://get.rvm.io | bash -s stable source ~/.rvm/scripts/rvm @@ -13,6 +16,42 @@ rvm install 3.3.5 rvm use 3.3.5 --default ``` +**Node.js (via nvm — use native Linux Node, not the Windows binary)** +```bash +curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash +source ~/.bashrc +nvm install 20 +nvm use 20 +``` + +**Install dependencies and build** +```bash +gem install bundler jekyll webrick +npm install --ignore-scripts +npm run build +bundle install +bundle exec jekyll serve +``` + +## Windows + +**Ruby (via rvm)** +```bash +curl -sSL https://get.rvm.io | bash -s stable +source ~/.rvm/scripts/rvm +rvm install 3.3.5 +rvm use 3.3.5 --default +``` + +**Node.js (via nvm-windows)** + +Download and install from https://github.com/coreybutler/nvm-windows/releases, then: +```bash +nvm install 20 +nvm use 20 +``` + +**Install dependencies and build** ```bash gem install bundler jekyll webrick npm i && npm run build @@ -20,12 +59,16 @@ bundle install bundle exec jekyll serve ``` + # Run locally -```bash +## WSL / Linux +```bash source ~/.rvm/scripts/rvm +bundle exec jekyll serve ``` +## Windows ```bash bundle exec jekyll serve -``` \ No newline at end of file +```