Commit 869faad9 by Anton Chuchkalov

fix code markup in docs

parent ab8a6edc
...@@ -44,7 +44,7 @@ It also annotates geometrical columns, geom type and srid, when using ...@@ -44,7 +44,7 @@ It also annotates geometrical columns, geom type and srid, when using
# path :geometry line_string, 4326 # path :geometry line_string, 4326
Also, if you pass the -r option, it'll annotate routes.rb with the output of Also, if you pass the -r option, it'll annotate routes.rb with the output of
+rake routes+. <code>rake routes</code>.
== Install == Install
...@@ -71,7 +71,7 @@ Into environment gems from Github checkout: ...@@ -71,7 +71,7 @@ Into environment gems from Github checkout:
== Usage == Usage
(If you used the Gemfile install, prefix the below commands with +bundle exec+.) (If you used the Gemfile install, prefix the below commands with <code>bundle exec</code>.)
=== Usage in Rails === Usage in Rails
...@@ -100,7 +100,7 @@ To remove routes.rb annotations: ...@@ -100,7 +100,7 @@ To remove routes.rb annotations:
annotate --routes --delete annotate --routes --delete
To automatically annotate every time you run +db:migrate+, either run +rails g annotate:install+ or add +Annotate.load_tasks+ to your `Rakefile`. See the [configuration in Rails](#configuration-in-rails) section for more info. To automatically annotate every time you run <code>db:migrate</code>, either run <code>rails g annotate:install</code> or add +Annotate.load_tasks+ to your `Rakefile`. See the [configuration in Rails](#configuration-in-rails) section for more info.
=== Usage Outside of Rails === Usage Outside of Rails
...@@ -136,7 +136,7 @@ functionality: ...@@ -136,7 +136,7 @@ functionality:
rake remove_annotation # Remove schema information from model and fixture files rake remove_annotation # Remove schema information from model and fixture files
By default, once you've generated a configuration file, annotate will be By default, once you've generated a configuration file, annotate will be
executed whenever you run +rake db:migrate+ (but only in development mode). executed whenever you run <code>rake db:migrate</code> (but only in development mode).
If you want to disable this behavior permanently, edit the +.rake+ file and If you want to disable this behavior permanently, edit the +.rake+ file and
change: change:
...@@ -146,7 +146,7 @@ To: ...@@ -146,7 +146,7 @@ To:
'skip_on_db_migrate' => 'true', 'skip_on_db_migrate' => 'true',
If you want to run +rake db:migrate+ as a one-off without running annotate, If you want to run <code>rake db:migrate</code> as a one-off without running annotate,
you can do so with a simple environment variable, instead of editing the you can do so with a simple environment variable, instead of editing the
+.rake+ file: +.rake+ file:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment