# Sir Trevor [![Build Status](https://travis-ci.org/madebymany/sir-trevor-js.png?branch=master)](https://travis-ci.org/madebymany/sir-trevor-js/) ![Sir Trevor in action](https://raw.github.com/madebymany/sir-trevor-js/master/examples/sir-trevor.gif) Conceived by [Andrew Sprinz](http://github.com/andrewsprinz). Maintained by [Chris Bell](http://github.com/cjbell88) & [Andrew Walker](http://github.com/ninjabiscuit). ## Quick start Full documentation can be found [here](http://madebymany.github.io/sir-trevor-js/docs.html). ### Plain JS - [Download the latest release](https://github.com/madebymany/sir-trevor-js/zipball/master) - ...or clone the repo: `git clone git://github.com/madebymany/sir-trevor-js.git` - ...or install with [Bower](http://bower.io/) ``bower install sir-trevor-js`` ### Implementations 1. [Sir Trevor Rails](http://github.com/madebymany/sir-trevor-rails) 2. [Umbraco 7](https://github.com/mindrevolution/SirTrevor-for-Umbraco), [Umbraco 6](http://our.umbraco.org/projects/backoffice-extensions/skybrud-sir-trevor-editor) 3. [CakePHP](http://github.com/martinbean/cakephp-sir-trevor-plugin) 4. [Wordpress](https://github.com/raffij/sir-trevor-wordpress) 5. [Laravel](https://github.com/caouecs/Laravel4-SirTrevorJS) 6. [Django](https://github.com/philippbosch/django-sirtrevor) 7. [Yii Framework](https://github.com/DrMabuse23/yii2-sir-trevor-js) ## Custom blocks We are keeping a list of [custom block repos here](https://github.com/madebymany/sir-trevor-js/wiki/Custom-blocks). See the documentation to find out more about [adding your own block types](http://madebymany.github.io/sir-trevor-js/docs.html#4). ## Browser support Sir Trevor is only tested on the following modern browsers: - IE10+ - Chrome 25+ - Safari 5+ - Firefox 16+ ## Dependencies Sir Trevor requires [Underscore](http://underscorejs.org/) (or LoDash), [jQuery](http://jquery.com) (or Zepto) and [Eventable](https://github.com/madebymany/eventable). ## Contributing See the [roadmap](https://github.com/madebymany/sir-trevor-js/wiki/Roadmap) and read a little about [the philosophy](https://github.com/madebymany/sir-trevor-js/wiki/Philosophy) guiding development. ### Customising the way it looks We use [Sass](http://sass-lang.com/) for our styles, if you'd like to change the default styling please fork the repository and make changes to the Sass before recompiling. ### Customising blocks Block Types can also easily be added to the ``SirTrevor.Blocks`` object. You can also override the default block types (Text, Image, Tweet, Video, Quote, Heading & List) at any time. See the documentation to find out more about [adding your own block types](http://madebymany.github.io/sir-trevor-js/docs.html#4). ### Compiling We use the awesome [Grunt](http://gruntjs.com/) for our build process. Before getting started please be sure to install the necessary dependencies via npm: ``$ npm install`` Make sure install the dependecies of bower. As you need jQuery, Eventable and Underscore while you are testing with Jasmine: ``$ bower install`` When completed you'll be able to run the various grunt commands provided: ``$ grunt`` Concatenates scripts, compiles the Sass, runs the Jasmine tests and minifies the project. ``$ grunt watch`` Convenience method while developing to compile the Sass files and concatenate the Javascript on save of a file in the ``/src`` directory. Please ensure any pull requests have relevant Jasmine tests (where applicable). ## License Sir Trevor is released under the MIT license: [opensource.org/licenses/MIT](http://opensource.org/licenses/MIT)