Selenide blog in Russian
sudo apt-get install ruby sudo gem install jekyll bundler bundle exec jekyll serve --watch --trace
Just run script: selenide> ./release 6.1.0
This script will:
- add tag "v${version}"
- build & run unit-tests
- publish selenide-*jar to oss.sonatype.org
- generate javadoc for site
- Install Ruby http://rubyinstaller.org/downloads/ Get version 1.9+, not 2.+
Check:
c:\users\andrei>ruby -v
ruby 1.9.3p448 (2013-06-27) [i386-mingw32]
-
Download from
http://rubyinstaller.org/downloads/ file DevKit-tdm-32-*-sfx.exe
Unpack to any folder (NB! Do not use ~\Downloads, but use e.g. ~\Downloads\temp_rubydevkit)
Follow installation instructions: https://github.com/oneclick/rubyinstaller/wiki/Development-Kit
> ruby dk.rb init
> ruby dk.rb install (NB! --force)
Check:
gem install json --platform=ruby
ruby -rubygems -e "require 'json'; puts JSON.load('[42]').inspect"
- Install Jekyll with dependencies:
gem install github-pages
- Run "jekyll build".
Get error:
Destination: D:/projects/selenide-web/_site
Generating... D:/Ruby193/lib/ruby/gems/1.9.1/gems/posix-spawn-0.3.6/lib/posix/spawn.rb:162: warning: cannot close fd before spawn
←[31m Conversion error: There was an error converting '_posts/2013-04-23-what-is-selenide.md'.←[0m
- Google says: "Fix pygments gem version"
gem uninstall pygments.rb --version "=0.5.2"
gem install pygments.rb --version "=0.5.0"
-
Run
jekyll build
. Get error: Generating... ←[31m Conversion error: There was an error converting '_posts/2013-04-23-what-is-selenide.md'.←[0m -
Google says: "Install Python".
-
Install Python 2.+ (not 3.+) from http://www.python.org/getit/
-
Run
jekyll serve --watch
. -
Open http://localhost:4000 in browser.