mirror of
https://github.com/opentofu/opentofu.org.git
synced 2026-01-11 19:56:26 +00:00
The OpenTofu Website
This commit adds a build container to make it easier for people without NodeJS/npm to run the website locally. Signed-off-by: Janos Bonic <86970079+janosdebugs@users.noreply.github.com> |
||
|---|---|---|
| .github | ||
| .husky | ||
| blog | ||
| docs | ||
| opentofu-repo@2d5d4b4b14 | ||
| plugins | ||
| src | ||
| static | ||
| .eslintignore | ||
| .eslintrc.js | ||
| .gitignore | ||
| .gitmodules | ||
| babel.config.js | ||
| docker-compose.yaml | ||
| Dockerfile | ||
| docusaurus.config.js | ||
| faq.mdx | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| sidebars.js | ||
| supporters.json | ||
| sync-supporters.js | ||
| tailwind.config.js | ||
| tsconfig.json | ||
Stack
- Docusaurus
- React
- TypeScript
- Tailwind CSS
Working with this repository
Cloning the repository
This repository uses git submodules to pull in the main OpenTofu repository. You can clone it using the following two steps:
- Clone the repository:
git clone git@github.com:opentofu/opentofu.org.git
- Fetch the documentation:
git submodule init
git submodule update
Running the dev server locally
You can run the dev server if you have a local NodeJS/npm environment installed:
- Install dependencies:
npm i
- Start the development server:
npm run start
You can now access the site locally at http://localhost:3000/
Running the dev server in a container
You can also run the dev server in a container with the following command:
docker compose up --build