Giter Site home page Giter Site logo

www's Introduction

HashiCorp.com

This is the repository for the main HashiCorp website.

This is a Middleman project, which builds a static site from these source files. The site is hosted on Heroku and then fronted by Fastly.

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 the following commands:

$ bundle
$ bundle exec middleman server

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

Stylesheets

We use Less to generate site-specific stylesheets along with Bootstrap. Grunt is used to create a watcher for changes to the .less files. The watcher re-compiles the hashicorp.css file when it detects changes in the .less files.

Assuming you have npm, node.js, and Less installed, you can install and run Grunt and the watcher this way:

$ npm install -g grunt-cli
$ npm install
$ grunt

Heroku

To trigger middleman static builds on a git push, we use this buildpack: https://github.com/hashicorp/heroku-buildpack-middleman, in addition to the standard Ruby buildback. Note the example below pushes your local branch as remote master to trigger build. To run this on Heroku, enable multiple buildpacks this way:

heroku create
heroku config:add BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git
git push heroku <branch>:master

www's People

Contributors

pearkes avatar mitchellh avatar kfishner avatar armon avatar sethvargo avatar benzenwen avatar justincampbell avatar burzinpatel avatar slackpad avatar jefferai avatar phinze avatar bensojona avatar clstokes avatar damonkelley avatar adamvduke avatar scalp42 avatar carlosdp avatar ciarand avatar ceh avatar jen20 avatar jweissig avatar itsmemattchung avatar pborreli avatar ryanuber avatar captainill avatar gkze avatar vishalnayak avatar

Watchers

James Cloos avatar Anurag Kaushik avatar  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.