GithubHelp home page GithubHelp logo

kaushikanurag / www Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rogeriopradoj/www

0.0 3.0 0.0 60.13 MB

The source for the main hashicorp.com website.

Emacs Lisp 0.04% Ruby 1.44% JavaScript 25.23% Shell 0.01% HTML 19.27% CSS 54.01%

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

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

Watchers

 avatar  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.