From 13c8196314576f42b6c99e8ce05d03485db89764 Mon Sep 17 00:00:00 2001 From: Devin Haska <2636402+wonderfulfrog@users.noreply.github.com> Date: Fri, 2 Aug 2024 11:31:01 -0700 Subject: [PATCH] feat: update docs to include steps on running old versions This commit adds documentation steps for future users and maintainers on how to use older versions of Node.js and Python in order to run various Sweet Potato scripts. --- documentation/pages/index.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/documentation/pages/index.md b/documentation/pages/index.md index 93e11b1..009c837 100644 --- a/documentation/pages/index.md +++ b/documentation/pages/index.md @@ -19,7 +19,29 @@ The goal is to be simple and allow the composing and styling of pages without ge ### Requirements -Node >= v14, < v16 +Node.js >= v14, < v16 +Python 2.7 + +#### Using older versions of Node.js and Python + +This project depends on older versions of both Node.js and Python to build. It's suggested to use a Node.js version manager (e.g. `nvm`), and a Python version manager (e.g. `pyenv`). + +The project has been tested using Node.js version `15.14.0` and Python version `2.7.18`. + +To install older versions using `nvm` and `pyenv`: + +```sh +nvm install 15.14.0 +pyenv install 2.7.18 +``` + +Running commands with older versions: + +```sh +pyenv local 2.7.18 +nvm use 15.14.0 +nvm exec 15.14.0 +``` ## Quick Start