ROTE - A static website build tool for Ruby
What is this?
Rote is a simple page-based template system that was written to make it easier to author and maintain non-dynamic websites and offline documentation. Rote provides a simple commandline or Rake based build for your pages, with page rendering (optionally supporting HAML, Textile, RDoc, Markdown, and ERB, when appropriate libraries are available), layout, CSS rendering with both Sass and LESS, and general documentation / website build tasks.
Rote requires the following (versions are as per my development environment, you may find you can use different versions, you may not).
- Ruby 1.9.3 (http://ruby-lang.org/)
- Rake 10.0.4 ('gem install rake')
The following optional dependencies will be used if present:
- RubyGems 1.8.16 (2.0.3 recommended) (http://rubygems.rubyforge.org/)
- HAML 4.0.0 ( Only required if HAML is used in your site )
- Sass 3.2.6 ( Only required if SCSS/SASS is used in your site )
- LESS 1.3.3 ( Only required if LESS is used in your site )
- RedCloth 4.2.9 ('gem install RedCloth') ( Only required if Textile formatting is used )
- BlueCloth 1.0.1 ('gem install BlueCloth') ( Only required if Markdown or formatting is used )
- Syntax 1.0.0 ('gem install syntax') ( Only required if syntax highlighting formatting is used )
- HTMLTidy (http://tidy.sourceforge.net/) ( Only required if Tidy filter is used )
The version numbers above indicate either the versions Rote is tested with, or the minimum version numbers it is know to work with. YMMV when working with other versions.
RubyGems is highly recommended, and makes for not only an easier install but a cleaner library path. Rote is tested with Gems 2.0.3.
If you are developing Rote and plan to run the unit tests, you will need all the above dependencies (except Rubygems) to successfully complete a full test run.
Please note that Rote is written and tested on Linux - I have no facilities to test with, e.g. Windows, and would like very much to hear about any issues that affect usage with other OSes.
... with RubyGems?
If you have RubyGems, you can install Rote by simply issuing the command:
gem install -r rote
Which should download the latest version and install it, including the 'rote' wrapper script and man pages. If you experience problems, or wish to perform an offline installation, then simply download the .gem file from the FRS, and execute the gem command from within the same directory.
Note that the gem install currently doesn't install the man pages. You will need to copy them to the appropriate location manually if using this method.
... with install.rb?
If you don't have RubyGems, you can install from one of the tarball or zip packages found on our RubyForge page , using the following command:
from the unpacked root directory. This will copy the libaries to the appropriate place, and set up the rote wrapper script, manpages, and so on.
... in my own way?
If you're one of those people who just has to be different, then you'll be pleased to know you can carry on that tradition, and place the files pretty much where you like. Simply point an environment variable, ROTE_LIB, at the top-level lib directory (where rote.rb is found), and ensure rote (or a symlink) is visible in your path.
Did it work?
With that done, you should be able to run
to verify that the command-line wrapper is working. You should of course see the version number of your Rote installation.
NOTE Windows users - you may experience problems at this point, with Rote complaining that 'rake' is an invalid command. To fix this, simply set an environment variable, RAKE_CMD, with the command to execute for rake (e.g. rake.bat).
How do I use it?
Please see the user guide for usage information. The latest version can be found online at http://rote.rubyforge.org , and documentation source for a specific release is included in the release package.
A note about version numbers
Rote uses odd/even numbers for development/release versions. When the final version component is odd, the package is an 'unofficial' build - generally this means built manually from source, during development. These will never be distributed, and there's no guarantee that any two packages with the same development version will actually be the same. These packages will have no corresponding CVS tag.
Even numbers always denote 'official' releases, which are released on RubyForge and tagged as such in CVS. These packages can be trusted to exhibit version consistency.
If you are bundling Rote with your product, please ensure you use an official release version whenever possible. If you must use a developmental version, please modify the package version to reflect the fact that it is a custom build (e.g. 0.1.3-mycompany-20121021) to prevent inconsistent development packages from escaping into the wild.
Rote is developed by Ross Bamford (roscopeco at gmail dot com), with help from the developers listed in CONTRIBUTORS. Any bugs are probably down to Ross, though, so flame him if it breaks your day ;P
- Homepage - http://rote.rubyforge.org
- Source - http://github.com/roscopeco/rote
- Issues - http://github.com/roscopeco/rote/issues
- Lists - email@example.com, firstname.lastname@example.org (http://rubyforge.org/mail/?group_id=1120)
The people who have been instrumental in making Rote a better piece of software, without direct involvement in the development process. Without the ideas, suggestions, bug reports and guidance from these people, rote would probably be totally useless to anyone but me. Keeping a list like this accurate and up to date is a recipe for disaster, so I'll take the safe option and say 'thanks, everyone' :)
Thanks also to Yukihiro Matsumoto for a remarkable platform, and all those who write and contribute to the libraries Rote depends on.