- Notifications
You must be signed in to change notification settings - Fork0
Robot Framework ecosystem from page
tisto/robotframework.github.com
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This repository hosts Robot Framework's public website available atrobotframework.github.com. It usesRuby based toolsJekyll (a static website generator) andjekyll-rst (areStructuredText plugin), among others.
Important to note: As this site is hosted in GitHub Pages, themaster branch hosts the files. Thesource branch is where the development happens and from where site is deployed to themaster branch. Youshould not therefore change any files in themaster branch directly. Rather, do your work in thesource branch and deploy to themaster.
The preferable way to install Ruby is viaRVM. Follow install instructions on the linked page to get RVM, then make sure you have Ruby 1.9.3 and Rubygems installed correctly:
$ rvm listrvm rubies=* ruby-1.9.3-p362 [ x86_64 ]# => - current# =* - current & default# * - defaultThe above means RVM installed correct Ruby version 1.9.3
$ ruby -v ruby 1.9.3 p362$ gem -v1.8.24The above means the correct Ruby- and Rubygems-commands work.
If you need to install Ruby 1.9.3 separately, do:
$ rvm install ruby 1.9.3Next, you need to installBundler and check it works:
$ gem install bundler$ bundle --versionOn Linux, you might get the following exception:
$ gem install bundlerERROR: Loading command: install (LoadError) cannot load such file -- zlibERROR: While executing gem ... (NameError) uninitialized constant Gem::Commands::InstallCommandThis means you are missing zlib or zlib-Ruby -bindings. Install them from aptitude and reinstall Ruby with RVM. (The following works on Linux Mint -- seeStackoverflow thread for more details)
$ sudo aptitude install zlib1g-dev$ rvm reinstall 1.9.3$ gem install bundlerNext, clone the repository, switch tosource branch, and install Ruby dependencies with bundler:
$ git clone https://github.com/robotframework/robotframework.github.com.git$ cd robotframework.github.com$ git checkout -b source origin/source $ bundle installNext, install Docutils:
$ sudo pip install docutilsAfter Docutils, install Pygments:
$ sudo pip install pygmentsRobot Framework lexer is part of the official release of Pygments since version 1.6. If pip gives you an earlier version, you need to install the lexer yourself:
$ sudo pip install robotframeworklexerYou should now be able to start working with the site. Run the following command and then open browser and go tohttp://localhost:4000 to see the site. You can quit the server withCtrl-c
$ jekyll --server!IMPORTANT!The site that is available in the web is in themaster branch.Do not modify the master branch! Rather, do your changes insource branch and deploy with rake (see below).
The site usesJekyll to build the site. Jekyll should be installed with bundler as part of Ruby dependencies (described in the last section).
To run the site with local development server, run:
$ jekyll --serverThis will run in port 4000 by default. If you want different port, give it as command line arguments. For example:
$ jekyll --server 3000Now the site is available in port 3000.
The preferable way to run the site during development is however:
$ jekyll --server --autoThis will automatically update the files when you save them after editing, so you just need to hit refresh in your browser to see updated site.
Do commit early and often. To push your changes to remotesource branch, use:
$ git push origin sourceImportant to note: quit alljekylls that are running as server before deploying!
The website usesRake to build and deploy the website. This should have been installed as part of Ruby dependencies (see Installation). To see available rake tasks, run:
/path/to/robotframework.github.com $ rake -TTo build the site, run:
/path/to/robotframework.github.com $ rake buildTo deploy the site online, you need to first commit all your changes. After committing, run:
/path/to/robotframework.github.com $ rake deployThe deployment process does the following things:
- Builds the project using the build rake task
- Checks that you have committed everything. If you have not,git commit -am is run
- Copies the builded files to your OS's temp folder
- Switches to master branch, copies files over from temp folder
- Commits the changes and pushes to remotemaster.
- Switches back tosource branch
- Notice that you still need to push thesource branch yourself to remote with:$ git push origin source
About
Robot Framework ecosystem from page
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Languages
- CSS54.5%
- HTML23.6%
- JavaScript21.9%