Skip to content

raunaqmorarka/prestosql.io

 
 

Repository files navigation

prestosql.io

The source for the Presto community website available at https://prestosql.io/.

The site uses Jekyll and markdown.

Build and Run Locally

In general, you need Ruby, gems, Bundler and Jekyll.

Detailed steps for macOS follow below. Similar commands work for various Linux distros.

macOS

Initial setup:

Install ruby in brew:

brew install ruby

Add brew ruby in front of system ruby:

PATH=/usr/local/opt/ruby/bin:$PATH
PATH=/usr/local/lib/ruby/gems/2.6.0/bin:$PATH

Install bundler:

gem install bundler

Install gems for site:

bundle install

Run server:

bundle exec jekyll serve

With the server running you can access the site on http://localhost:4000.

Additional Notes

Verify pages render correctly on phone

You can run the server on your computer and then verify the pages render correctly on a phone. By default the server only binds to localhost, so it is not accessible on your local network. Add --host 0.0.0.0 to the bundle exec command to have the server bind to the external IP addresses on your computer.

View future posts

Posts with future dates do not normally render. Add --future to the bundle exec command to see these.

About

Presto website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 83.1%
  • HTML 10.7%
  • Ruby 6.2%