diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..388dad7 --- /dev/null +++ b/LICENSE @@ -0,0 +1,5 @@ +CC BY 3.0 + + +Linking to and + is appropriate for attribution. diff --git a/README.md b/README.md new file mode 100644 index 0000000..8d5b691 --- /dev/null +++ b/README.md @@ -0,0 +1,43 @@ +# Upgrading To Rails 4 + +An e-book covering the deprecations, new features and common upgrading +scenarios facing developers upgrading from Rails 3 to Rails 4. + +Originally written by [Andy Lindeman](http://andylindeman.com) and now released +under [CC BY 3.0](http://creativecommons.org/licenses/by/3.0/). + +Where should you go from here? +* Buy the PDF, ePub, and mobi versions of book at + . **Proceeds since the book was open sourced + will be donated to .** You'll receive periodic updates + as the content is updated in this repository. +* [Build the book yourself](#build-toolchain). +* Contribute to the book. [Pull requests + accepted](https://github.com/alindeman/upgradingtorails4/pulls). + +## Build Toolchain + +[kitabu](https://github.com/fnando/kitabu) can export ePub and HTML by default. + +```bash +$ bundle install +$ bundle exec kitabu export +$ ls output/ +``` + +As you're hacking on the book, you can have it generate automatically: + +```bash +$ bundle exec guard +``` + +### PDF + +PrinceXML is required to build the PDF version of the book. A trial version is +available at [princexml.com](http://www.princexml.com/download/). + +### mobi + +KindleGen is required to build the mobi version of the book. KindleGen can be +downloaded [from +Amazon](http://www.amazon.com/gp/feature.html?docId=1000765211). diff --git a/config/kitabu.yml b/config/kitabu.yml index e8e2f32..966df45 100644 --- a/config/kitabu.yml +++ b/config/kitabu.yml @@ -13,7 +13,7 @@ language: en # This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. # This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. # -copyright: "Copyright (C) 2012 Andy Lindeman." +copyright: "Copyright (C) 2012-2013 Andy Lindeman. Licensed under CC BY 3.0." # Who's publishing this book. publisher: "Andy Lindeman" @@ -41,4 +41,4 @@ authors: - "Andy Lindeman" # The base URL from your source code. -base_url: http://example.com +base_url: https://github.com/alindeman/upgradingtorails4