Table of Contents
Jekyll Static Website Source for Doctor’s Landing Page #
This is the source for the Jekyll static website project for a very simple doctors landing page. The production version can be found here.
Jekyll is a Ruby CLI and used as engine for Github Pages.
Jekyll requires Ruby 2.6+ so you might be required to install it.
Install Ruby itself:
apt-get update apt-get install ruby-full apt-get install nodejs
Install rbenv for easier switching of ruby versions
sudo apt install git curl libssl-dev libreadline-dev zlib1g-dev autoconf bison build-essential libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash
and add this to
echo 'export PATH="$HOMe/.rbenv/bin:$PATH"' >> ~/.zshrc echo 'eval "$(rbenv init -)"' >> ~/.zshrc source ~/.zshrc curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-doctor | bash
then install the desired ruby version
rbenv install 3.2.1 rbenv global 3.2.1 ruby -v
Then update the gems (Ruby package manager)
For details on how to do this on the Linux subsystem for Windows 10 see here.
Bundler and Jekyll #
gem install bundler
you may want to set the default gem path, so you don’t need
bundle config path vendor/bundle
then, in the project root folder, install all the dependencies with
You should be able to run jekyll now with
bundle exec jekyll -v
With this command a development web-server will be started on http://localhost:4000
bundle exec jekyll serve --livereload
For more info see the quick-start section.
Build Site #
With the following command the website will be packaged and copied to
bundle exec jekyll build
Continuous Deployment #
Every commit to the
master branch will be automatically build and deployed via to the Firebase staging
environment. (Note: This will NOT be build with the production flag.)
Every git tag triggers a deploy to the Firbase Hosting through Travis CI.
Frameworks and Libs #
- HTML5 UP’s Spectral Theme
- Font Awesome 5
- Firebase Hosting
Proprietary: Patrick Favre-Bulle 2018