The SHAREing project site is a static site, generated from Markdown source by Jekyll (an application in Ruby) and hosted on GitHub Pages. It is available at https://SHAREing-DRI.github.io.
The following instructions assume a *nix-type environment.
To build and run the site locally, you need:
- Git
- Ruby
- Bundler
- Jekyll
Note: Ruby is not always up-to-date on macOS or Linux distributions. See Ruby & Bundler Notes for help installing the latest version.
To build the site locally (e.g. for testing your changes prior to contributing) please follow the instructions below. For more details, see the GitHub Pages documentation:
https://docs.github.com/en/pages/setting-up-a-github-pages-site-with-jekyll/testing-your-github-pages-site-locally-with-jekyll
-
Clone the repository:
git clone https://github.com/SHAREing-DRI/SHAREing-DRI.github.io cd SHAREing-DRI.github.io -
Install Ruby dependencies:
bundle install
If you do not have Ruby (and likely therefore Bundler) installed, please see Ruby & Bundler Notes below.
To serve the site locally:
bundle exec jekyll serveThen open your browser and go to http://localhost:4000.
Bundler manages Ruby "gem" dependencies, ensuring consistent environments across machines.
If your system Ruby is outdated (as it is likely to be) you can install the latest version, with the help of Ruby Version Manager (RVM). RVM is a command-line tool which allows you to easily install, manage, and work with multiple ruby environments from interpreters to sets of gems. Here it is used to manage interpreters.
One way to install RVM is as follows; other methods are described on the RVM website.
\curl -sSL https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm install ruby
rvm use ruby --defaultThen install Bundler:
gem install bundlerWe welcome contributions! Here's one way to get started.
-
Fork the repository on GitHub.
-
Clone your fork locally:
git clone https://github.com/your-username/your-fork.git cd your-fork -
Create a new branch for your changes:
git checkout -b feature/your-feature-name
-
Make your changes and commit them:
git add . git commit -m "Add your message here"
-
Push to your fork:
git push origin feature/your-feature-name
-
Through the GitHub web UI, open a Pull Request against the
mainbranch of the original repository.