Skip to content

bit-whacker/website

 
 

Repository files navigation

Circle CI

The official Cucumber website (cucumber.io)

Run it locally

Install Ruby. Then:

gem install bundler
bundle install
bundle exec foreman start

Point a browser to http://localhost:5000

How it works

We use Rack to mount several smaller rack apps that serve different bits of content that make up the site. The individual rack apps are stored under apps and are loaded by config.ru

See this blog post for more information about this design.

We decided not to use rack-jekyll as it didn't seem to be able to handle mounting a non-root directory, and didn't seem to add much, other than complexity.

Modify or add content

Please see The Cucumber Brand for details about fonts and colours.

Production

Assets need to be precompiled for production. Heroku will take care of it but you might want to try it locally:

RACK_ENV=production bundle exec rake assets:precompile
RACK_ENV=production bundle exec foreman start

###How to add a blog post

  • Go to https://github.com/cucumber/website/tree/master/apps/dynamic/views/_posts.
  • Open a previous blog post for reference and for the format header (new tab)
  • On the toolbar, click the '+' button.
  • Name new file with hyphens and ending with .md
  • C&P previous post format header into new file
  • Adjust format according to new post
  • C&P blog post markdown
  • Change to preview to see live changes
  • Once ready, update description and commit.
  • Watch build status to check if it has been post

About

Cucumber official website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 52.3%
  • Ruby 24.1%
  • CSS 21.2%
  • JavaScript 1.6%
  • Gherkin 0.8%