Skip to content

Instantly share code, notes, and snippets.

@sweeneyrobb
Last active June 28, 2018 00:23
Show Gist options
  • Save sweeneyrobb/d383d7730f82013d24a7 to your computer and use it in GitHub Desktop.
Save sweeneyrobb/d383d7730f82013d24a7 to your computer and use it in GitHub Desktop.
This PowerShell script will install and configure all the pre-requisites for Jekyll. There is commented code to initalize a Jekyll directory. Simply change directory to desired folder, uncomment script, and execute.
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
choco install ruby -y
choco install ruby2.devkit -y
$env:PATH = [System.Environment]::GetEnvironmentVariable("PATH", "Machine")
$env:Path += ";$env:ChocolateyBinRoot\ruby23\bin"
cd "$($env:ChocolateyInstall)\helpers\functions"
. .\Get-ToolsLocation.ps1
. .\Write-FunctionCallLogMessage.ps1
. .\Test-ProcessAdminRights.ps1
. .\Set-EnvironmentVariable.ps1
. .\Update-SessionEnvironment.ps1
. .\Get-EnvironmentVariableNames.ps1
. .\Get-EnvironmentVariable.ps1
cd "$(Get-ToolsLocation)\\devkit2"
ruby dk.rb init
" - $(Get-ToolsLocation)\ruby23" | Add-Content -Path .\config.yml
" - $(Get-ToolsLocation)\ruby23" | Add-Content -Path .\config.yml
ruby dk.rb install
gem source -r https://rubygems.org/
gem source -a http://rubygems.org/
gem update --system
gem source -r http://rubygems.org/
gem source -a https://rubygems.org/
gem install bundler
gem install gemrat
#bundle init
#gemrat github-pages --no-version
#jekyll new .\ -f
## pygments (default syntax highlighter) requires python to be installed.
#"highlighter: rogue" | Add-Content .\_config.yml
#jekyll build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment