/selenide.github.io

selenide.org site

Primary LanguageCSS

======= selenide-ru

Selenide blog in Russian

For developers:

sudo apt-get install ruby sudo gem install jekyll bundler bundle exec jekyll serve --watch --trace

Release process

selenide> git tag -a v5.23.0 -m "released selenide 5.23.0" selenide> git push origin --tags selenide> ./gradlew clean check selenide> ./gradlew publish --no-parallel --info selenide> mkdir ../selenide-web/javadoc/5.23.0/ selenide> cp -r build/docs/javadoc-to-upload/* ../selenide-web/javadoc/5.23.0/ selenide> rm -fr ../selenide-web/javadoc/current/* selenide> cp -r build/docs/javadoc-to-upload/* ../selenide-web/javadoc/current/ selenide-web> git add javadoc/5.23.0 selenide-web> git add javadoc/current selenide-web> git commit -m "publish javadoc for Selenide 5.23.0" selenide-web> git push

Ruby & Jekyll installation on Windows

  1. 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]
  1. 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"
  1. Install Jekyll with dependencies:
   gem install github-pages
  1. 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
  1. Google says: "Fix pygments gem version"
   gem uninstall pygments.rb --version "=0.5.2"
   gem install pygments.rb --version "=0.5.0"
  1. Run jekyll build. Get error: Generating... ←[31m Conversion error: There was an error converting '_posts/2013-04-23-what-is-selenide.md'.←[0m

  2. Google says: "Install Python".

  3. Install Python 2.+ (not 3.+) from http://www.python.org/getit/

  4. Run jekyll serve --watch.

  5. Open http://localhost:4000 in browser.

Profit!