diff --git a/docusaurus.config.ts b/docusaurus.config.ts index d9ba8d68..a5875a4b 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -139,6 +139,24 @@ const config: Config = { ], plugins: [ + [ + '@docusaurus/plugin-content-docs', + { + id: 'getting-started', + path: 'getting-started', + routeBasePath: 'getting-started', + sidebarPath: './getting-started/sidebars.json', + }, + ], + [ + '@docusaurus/plugin-content-docs', + { + id: 'download', + path: 'download', + routeBasePath: 'download', + sidebarPath: './download/sidebars.json', + }, + ], "./plugins/blog-plugin", function tailwindPlugin() { return { diff --git a/download.mdx b/download/index.mdx similarity index 100% rename from download.mdx rename to download/index.mdx diff --git a/download/sidebars.json b/download/sidebars.json new file mode 100644 index 00000000..740c69b1 --- /dev/null +++ b/download/sidebars.json @@ -0,0 +1,8 @@ +{ + "download": [ + { + "type": "autogenerated", + "dirName": "." + } + ] +} \ No newline at end of file diff --git a/getting-started/chapter1/deb.mdx b/getting-started/chapter1/deb.mdx new file mode 100644 index 00000000..fa8afe82 --- /dev/null +++ b/getting-started/chapter1/deb.mdx @@ -0,0 +1,4 @@ +--- +sidebar_label: ".deb-based systems" +sidebar_position: 1 +--- \ No newline at end of file diff --git a/getting-started/chapter1/index.mdx b/getting-started/chapter1/index.mdx new file mode 100644 index 00000000..0db221c9 --- /dev/null +++ b/getting-started/chapter1/index.mdx @@ -0,0 +1,41 @@ +--- +sidebar_label: "Chapter 1: Setting up OpenTofu" +sidebar_position: 2 +--- + +# Chapter 1: Setting up OpenTofu + +OpenTofu is a single, static binary. This means you can download the .zip/.tar.gz file [from GitHub](https://github.com/opentofu/opentofu/releases) and use it out of the box, no installation is required. However, we maintain a list of [installation methods](/download/) that allow you to easily update your OpenTofu installation in the future. + +To get started, please select your operating system below. + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + + + + + .deb-based systems
(Debian & derivatives)} default> + +
+ .rpm-based systems
(RHEL, SUSE, etc)}> + +
+ + + + + + +
+
+ + Windows + + + MacOS + + + Unix/BSD + +
\ No newline at end of file diff --git a/getting-started/index.mdx b/getting-started/index.mdx new file mode 100644 index 00000000..15357dad --- /dev/null +++ b/getting-started/index.mdx @@ -0,0 +1,12 @@ +--- +sidebar_label: Overview +sidebar_position: 1 +--- + +# Getting started with OpenTofu + +Welcome to OpenTofu! If you are new to OpenTofu or infrastructure-as-code, this section is for you. It is a practical, hands-on introduction to getting your first cloud infrastructure going. + +This guide is structured into the following parts: + +- [Chapter 1: Setting up OpenTofu](./chapter1/index.mdx) \ No newline at end of file diff --git a/getting-started/sidebars.json b/getting-started/sidebars.json new file mode 100644 index 00000000..e286d951 --- /dev/null +++ b/getting-started/sidebars.json @@ -0,0 +1,8 @@ +{ + "guides": [ + { + "type": "autogenerated", + "dirName": "." + } + ] +} \ No newline at end of file