This Jekyll website, https://www.gbif.org.nz/, makes use of a theme and biodiversity widgets developed by the GBIF network.
You can find information on editing this site and more on gbif/hosted-portals
Infrastructure provided by GBIF
Note, if you’re using Windows, the preference is for running this repo on WSL, as Ruby isn’t Windows native. The below instructions are for installing this repo on WSL.
- Install Ruby on your WSL (Ruby install docs https://www.ruby-lang.org/en/documentation/installation/#apt)
sudo apt-get install ruby-full
You should now be able to see your version of ruby with ruby -v
- Install Jekyll
sudo gem install jekyll bundler
- Follow the RubyInstaller instructions for setting up Jekyll locally. Jekyll is a Ruby gem (see Jekyll’s Ruby 101 page).
- Open repo in VS Code. Because Ruby for Windows doesn’t come with everything that this repo needs, note that you may need to add some gems when running
bundle install. The error messages will let you know. - In your VS Code terminal, run
bundle install(to install gems) - Run
bundle exec jekyll serve.This will run the site locally on 4000.
Other helper commands are in the Jekyll documentation (if needed - things like ‘clean’ and ‘build’).
When a branch is merged to the master branch, it will build on the test environment [https://hp-new-zealand.gbif-staging.org/] (this can take up to 5-10 mins).
Before a release, check the staging environment to ensure everything is displaying as expected.
- Create new tag on Github (following versioning). Target
masterbranch - Write release notes
- Set as latest release
- Set a title
- Click release, which will push to prod. This may take up to an hour to build.