This repository uses Git submodules to pull in the main OpenTofu repository.
git clone --recurse-submodules git@github.com:opentofu/opentofu.org.git
Oops! I forgot to recurse submodules…
cd opentofu.org
git submodule init
git submodule update
You can either develop locally, or by using a local Docker container.
You can run the dev server if you have a local Node.js/npm environment installed:
-
Install dependencies:
npm install
-
Start the development server:
npm run start
-
You can now access the site locally at http://localhost:3000.
You can run the dev server in a Docker container with the following command:
docker compose up --build
Error: The docs folder does not exist for version "vX.Y". A docs folder is expected to be found at versioned_docs/version-vX.Y.
Make sure you installed the Git submodules. See above for instructions.
When you contribute code to OpenTofu, do not forget to sign off your commits as described here.