github.com/muratcelep/terraform@v1.1.0-beta2-not-internal-4/website/README.md (about)

     1  # Terraform Documentation
     2  
     3  This directory contains the portions of [the Terraform website](https://www.terraform.io/) that pertain to the
     4  core functionality, excluding providers and the overall configuration.
     5  
     6  The files in this directory are intended to be used in conjunction with
     7  [the `terraform-website` repository](https://github.com/hashicorp/terraform-website), which brings all of the
     8  different documentation sources together and contains the scripts for testing and building the site as
     9  a whole.
    10  
    11  ## Previewing Changes
    12  
    13  You should preview all of your changes locally before creating a pull request. The build includes content from this repository and the [`terraform-website`](https://github.com/hashicorp/terraform-website/) repository, allowing you to preview the entire Terraform documentation site. If `terraform-website` isn't in your `GOPATH`, the preview command will clone it to your machine.
    14  
    15  **Set Up Local Environment**
    16  
    17  1. [Install Docker](https://docs.docker.com/get-docker/).
    18  2. Create a `~/go` directory manually or by [installing Go](https://golang.org/doc/install).
    19  3. Open terminal and set `GOPATH` as an environment variable:
    20  
    21      Bash: `export $GOPATH=~/go`(bash)
    22  
    23      Zsh: `echo -n 'export GOPATH=~/go' >> ~/.zshrc`
    24  4. Restart your terminal or command line session.
    25  
    26  **Launch Site Locally**
    27  
    28  1. Navigate into your local `terraform` top-level directory and run `make website`.
    29  2. Open `http://localhost:4567` in your web browser. While the preview is running, you can edit pages and Middleman will automatically rebuild them.
    30  3. When you're done with the preview, press `ctrl-C` in your terminal to stop the server.
    31  
    32  ## Deploying Changes
    33  
    34  Merge the PR to main. The changes will appear in the next major Terraform release.
    35  
    36  If you need your changes to be deployed sooner, cherry-pick them to:
    37  - the current release branch (e.g. `v1.0`) and push. They will be deployed in the next minor version release (once every two weeks).
    38  - the `stable-website` branch and push. They will be included in the next site deploy (see below). Note that the release process resets `stable-website` to match the release tag, removing any additional commits. So, we recommend always cherry-picking to the version branch first and then to `stable-website` when needed.
    39  
    40  ### Deployment
    41  Currently, HashiCorp uses a CircleCI job to deploy the [terraform.io](terraform.io) site. This job can be run manually by many people within HashiCorp, and also runs automatically whenever a user in the HashiCorp GitHub org merges changes to master in the `terraform-website` repository.
    42  
    43  New commits in this repository don't automatically deploy the [terraform.io][] site, but an unrelated site deploy will usually happen within a day. If you can't wait that long, you can do a manual CircleCI build or ask someone in the #proj-terraform-docs channel to do so:
    44  - Log in to circleci.com, and  make sure you're viewing the HashiCorp organization.
    45  - Go to the terraform-website project's list of workflows.
    46  - Find the most recent "website-deploy" workflow, and click the "Rerun workflow from start" button (which looks like a refresh button with a numeral "1" inside).