inspec/www
Bryan McLellan 98c28ac256 Fix building the website
- compass is now built in to middleman 4, including the old middleman-compass gem only creates issues with the dep graph
- deal with .css.scss files being ignored by splitting into separate .css and .scss files. (https://github.com/middleman/middleman-sprockets/issues/127)

Closes #4613

Signed-off-by: Bryan McLellan <btm@loftninjas.org>
2019-10-30 17:36:03 -04:00
..
data Edits and adding to website menu 2019-09-26 16:56:06 -04:00
lib blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
source Fix building the website 2019-10-30 17:36:03 -04:00
.gitignore rake to render all docs to www/ correctly with links 2016-09-26 06:21:05 +02:00
config.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
config.ru chefstyle -a; https://github.com/chef/chefstyle/pull/74 2019-07-08 17:22:50 -07:00
Gemfile Fix building the website 2019-10-30 17:36:03 -04:00
Rakefile chefstyle -a; https://github.com/chef/chefstyle/pull/74 2019-07-08 17:22:50 -07:00
README.md Fix simple typo: becuase -> because 2019-09-13 09:30:00 +10:00

InSpec homepage

Development

Get all dependencies:

bundle install

To build the docs/ child pages run:

bundle exec rake docs

To run it live run:

bundle exec middleman server

For the online demo, take a look at www/demo.

Building

To build the site to a local static folder (without demo):

bundle exec middleman build
  • if you get an error building the css files it could be because you don't have node.js installed. e.g.
  == Request: /stylesheets/vendor/fontawesome.min.css
  == Finishing Request: stylesheets/vendor/fontawesome.min.css (0.0s)
         error  build/stylesheets/vendor/fontawesome.min.css

To build everything including the online demo:

bundle exec rake www:build

Releasing

To build everything and push a new version of the website, be in the www folder of this repository and run:

bundle install
bundle exec rake www

It will clear everything and build from scratch and create a local gh-pages branch with a static version of the website. Before pushing, it will ask you if you are happy with it.

Please verify the site now! To host the current folder you can run:

ruby -run -e httpd . -p 8000

Open your browser to localhost:8000.

If you are happy, you can confirm the site and let the release task push it live.

Flushing the Fastly Cache

The www Rake task will flush the cache at Fastly if you have the following environment variables set:

  • FASTLY_API_KEY
  • FASTLY_SERVICE_ID

These can be found in Chef's shared password manager. If these aren't set, the cache will not be flushed and will expire on its own. The cache can be flushed without doing a full website release by running rake www:flush