The source for the Presto community website available at https://prestosql.io/.
The site uses Jekyll and markdown.
In general, you need Ruby, gems, Bundler and Jekyll.
Detailed steps for macOS follow below. Similar commands work for various Linux distros.
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.
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.
Posts with future dates do not normally render. Add --future
to the bundle exec
command to see these.