Merge pull request #1114 from zklosko/fix-jekyll-build

Fix jekyll build
This commit is contained in:
Kyle Robbertze 2020-11-18 23:56:35 +02:00 committed by GitHub
commit fd1449674c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 22 deletions

3
.gitignore vendored
View file

@ -17,4 +17,5 @@ airtime_mvc/tests/log/*.log
.DS_Store
.idea/
/docs/_site/*
/docs/.jekyll-cache/*
/docs/.jekyll-cache/*
/docs/.gems/*

3
Vagrantfile vendored
View file

@ -67,9 +67,6 @@ Vagrant.configure("2") do |config|
# Provision LibreTime
config.vm.provision "install", type: "shell", inline: "cd /vagrant; ./install %s --web-port=8080" % installer_args
# Provision docs
config.vm.provision "build-site-jekyll", type: "shell", path: "docs/jekyll.sh"
end
end

View file

@ -1,18 +0,0 @@
# Installing Jekyll
# This script does not work and exists as a skeleton for
# someone to use to get Jekyll building outside of GitHub
echo "Installing Ruby"
sudo apt-get install ruby-full build-essential zlib1g-dev
export GEM_HOME=".gems"
export PATH=".gems/bin:$PATH"
echo "Installing Jekyll"
cd docs
gem install jekyll bundler
# Running Jekyll
bundle exec jekyll serve --watch --port 8888
echo "Visit http://localhost:8888 to see the LibreTime website."

15
jekyll.sh Normal file
View file

@ -0,0 +1,15 @@
#/bin/bash
echo "Installing Ruby"
apt-get update -y && apt-get install -y ruby-full build-essential zlib1g-dev
export GEM_HOME=".gems"
export PATH=".gems/bin:$PATH"
echo "Installing Jekyll"
cd docs
gem install jekyll bundler
# Running Jekyll
jekyll serve