terraform/website
Joshua Spence af2c84de5a Add `basename` and `dirname` functions
Adds `basename` and `dirname` interpolation. I want to add a `stack` tag to our infrastructure, the value of which is set to `${basename(path.cwd)}`. We currently use `${replace(path.cwd, "/^.+\\//", "")}` instead, but this is extremeley unreadable. The existance of a `basename` function would be very useful for this use case.

I don't have an immediate use case for a `dirname` function, but it seemed reasonable to add it as well.
2017-03-28 09:29:26 -07:00
..
scripts Re-enable soft purging, stale-if-error 2017-03-01 12:38:09 -05:00
source Add `basename` and `dirname` functions 2017-03-28 09:29:26 -07:00
Gemfile Update to middleman-hashicorp 0.3.13 2017-03-08 16:47:33 -08:00
Gemfile.lock Update to middleman-hashicorp 0.3.13 2017-03-08 16:47:33 -08:00
LICENSE.md Update license 2017-03-08 11:38:20 -08:00
Makefile Update to middleman-hashicorp 0.3.13 2017-03-08 16:47:33 -08:00
README.md Update middleman-hashicorp 2017-03-08 11:27:47 -08:00
config.rb v0.9.2 2017-03-28 09:56:35 +00:00
packer.json Update to middleman-hashicorp 0.3.13 2017-03-08 16:47:33 -08:00

README.md

Terraform Website

This subdirectory contains the entire source for the Terraform Website. This is a Middleman project, which builds a static site from these source files.

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

Running the site locally is simple. Clone this repo and run make website.

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