Code Monkey home page Code Monkey logo

terraform-website's Introduction

Terraform Website

This repository contains the build scripts, marketing content and some documentation for the Terraform Website, along with symlinks and submodules into both the core Terraform repo and the provider repos to include their documentation.

This is a Middleman project, which builds a static site from these source files.

The current approach used in this repository is a temporary compromise to allow us to execute the provider/core split without a drastic overhaul of the website build process. Unfortunately this current state has some limitations and annoying workflow, so later in this README there is some information on how to use this repository to test changes in the upstream repositories.

Contributions Welcome!

If you find a typo or you feel like you can improve the HTML, CSS, or JavaScript, we welcome contributions. Feel free to open issues or pull requests like any normal GitHub project, and we'll merge it in.

Running the Site Locally

The site can be run locally as follows:

  1. Install Docker if you have not already done so
  2. Clone this repo and run make sync then make website
  3. For future updates of provider documentation, run make sync again.

Then open up http://localhost:4567. Note that some URLs may need ".html" appended to make them work (in the navigation).

Previewing changes from the Provider or Core repositories

This repository has an ext subdirectory which contains submodules pointing into the Terraform core repository (ext/terraform) and the separated provider repositories (ext/providers/*). These are configured so that by default they will track the stable-website branch in each repository, but this can be temporarily overridden for local testing. For example:

$ cd ext/providers/rundeck
$ git status
... (should show either tracking stable-website branch, or some detached HEAD commit)
$ git fetch <your-repo-url> <your-branch-name>
$ git checkout FETCH_HEAD
... (will indicate that you are in a "detached HEAD state" against your branch)

If you are using the "running the site locally" setup described above, the site should immediately reload to reflect the new content. Sometimes this behaves strangely due to the shear number of files used with this website, so if things don't seem to be uploading you can try interrupting the make website command with Ctrl+C and re-running it.

For your-repo-url in the above example above, use the "Clone or Download" button on the main page of the repository where you are making your changes (e.g. your fork of a provider repo)

Once you are finished making your changes, you may wish to switch back to the stable-website branch:

$ cd ext/providers/rundeck
$ git checkout stable-website

terraform-website's People

Contributors

apparentlymart avatar armon avatar catsby avatar ctiwald avatar danawillow avatar grubernaut avatar heimweh avatar jasoncostello avatar jbardin avatar jen20 avatar jrperritt avatar jtopjian avatar justincampbell avatar kwilczynski avatar lwander avatar mbfrahry avatar mitchellh avatar nfagerlund avatar nicolai86 avatar ninir avatar paddycarver avatar pearkes avatar phinze avatar radeksimko avatar sean- avatar sethvargo avatar skierkowski avatar sparkprime avatar stack72 avatar tombuildsstuff avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.