The source for the Trino community website available at https://trino.io/.
The site uses Jekyll and markdown. It is hosted on Netlify.
In general, you need Ruby, gems, Bundler, Jekyll, and Netlify Dev.
Detailed steps for macOS follow below. Similar commands work for various Linux distributions.
Install Ruby in Homebrew:
brew install rubyAdd Homebrew Ruby in front of system Ruby. Use this form of the command to accommodate both Intel and Apple M1 based Macs. The back quotes are important:
PATH=`brew --prefix`/opt/ruby/bin:$PATHRun the next few commands from the root of your clone of this repo.
Install bundler using the same version as specified at the end of the
Gemfile.lock file in the project root:
gem install bundler -v '=2.6.9'Install gems for site:
bundle installInstall Netlify CLI:
brew install netlify-cliRun the server with the helper script and Jekyll directly.
./jekyllRun.shThe script also installs the necessary packages with bundler and support flags to pass to Jekyll:
./jekyllRun.sh --futureAlternatively, run the server using Netlify Dev to simulate production:
netlify devWith 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. There are two ways to do that:
-
Access the IP address of your computer on your local network from your phone.
-
Run
netlify dev --liveto create a publicly accessible tunnel that can be accessed from anywhere over the internet.
Posts with future dates do not normally render. You can override the default
Jekyll invocation to add the --future option to see these.
netlify dev -c 'bundle exec jekyll serve --future'