diff --git a/.gitignore b/.gitignore index 52a431867ccb1..854fdbf4507db 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,6 @@ debug.log /railties/test/fixtures/tmp /railties/test/initializer/root/log /railties/doc -/railties/guides/output /railties/tmp +/guides/output /RDOC_MAIN.rdoc diff --git a/guides/Rakefile b/guides/Rakefile new file mode 100644 index 0000000000000..ad4ff91fe68f0 --- /dev/null +++ b/guides/Rakefile @@ -0,0 +1,11 @@ +desc 'Generate guides (for authors), use ONLY=foo to process just "foo.textile"' +task :generate_guides do + ENV["WARN_BROKEN_LINKS"] = "1" # authors can't disable this + ruby "rails_guides.rb" +end + +# Validate guides ------------------------------------------------------------------------- +desc 'Validate guides, use ONLY=foo to process just "foo.html"' +task :validate_guides do + ruby "w3c_validator.rb" +end diff --git a/railties/guides/assets/images/belongs_to.png b/guides/assets/images/belongs_to.png similarity index 100% rename from railties/guides/assets/images/belongs_to.png rename to guides/assets/images/belongs_to.png diff --git a/railties/guides/assets/images/book_icon.gif b/guides/assets/images/book_icon.gif similarity index 100% rename from railties/guides/assets/images/book_icon.gif rename to guides/assets/images/book_icon.gif diff --git a/railties/guides/assets/images/bullet.gif b/guides/assets/images/bullet.gif similarity index 100% rename from railties/guides/assets/images/bullet.gif rename to guides/assets/images/bullet.gif diff --git a/railties/guides/assets/images/challenge.png b/guides/assets/images/challenge.png similarity index 100% rename from railties/guides/assets/images/challenge.png rename to guides/assets/images/challenge.png diff --git a/railties/guides/assets/images/chapters_icon.gif b/guides/assets/images/chapters_icon.gif similarity index 100% rename from railties/guides/assets/images/chapters_icon.gif rename to guides/assets/images/chapters_icon.gif diff --git a/railties/guides/assets/images/check_bullet.gif b/guides/assets/images/check_bullet.gif similarity index 100% rename from railties/guides/assets/images/check_bullet.gif rename to guides/assets/images/check_bullet.gif diff --git a/railties/guides/assets/images/credits_pic_blank.gif b/guides/assets/images/credits_pic_blank.gif similarity index 100% rename from railties/guides/assets/images/credits_pic_blank.gif rename to guides/assets/images/credits_pic_blank.gif diff --git a/railties/guides/assets/images/csrf.png b/guides/assets/images/csrf.png similarity index 100% rename from railties/guides/assets/images/csrf.png rename to guides/assets/images/csrf.png diff --git a/railties/guides/assets/images/customized_error_messages.png b/guides/assets/images/customized_error_messages.png similarity index 100% rename from railties/guides/assets/images/customized_error_messages.png rename to guides/assets/images/customized_error_messages.png diff --git a/railties/guides/assets/images/edge_badge.png b/guides/assets/images/edge_badge.png similarity index 100% rename from railties/guides/assets/images/edge_badge.png rename to guides/assets/images/edge_badge.png diff --git a/railties/guides/assets/images/error_messages.png b/guides/assets/images/error_messages.png similarity index 100% rename from railties/guides/assets/images/error_messages.png rename to guides/assets/images/error_messages.png diff --git a/railties/guides/assets/images/feature_tile.gif b/guides/assets/images/feature_tile.gif similarity index 100% rename from railties/guides/assets/images/feature_tile.gif rename to guides/assets/images/feature_tile.gif diff --git a/railties/guides/assets/images/footer_tile.gif b/guides/assets/images/footer_tile.gif similarity index 100% rename from railties/guides/assets/images/footer_tile.gif rename to guides/assets/images/footer_tile.gif diff --git a/railties/guides/assets/images/fxn.png b/guides/assets/images/fxn.png similarity index 100% rename from railties/guides/assets/images/fxn.png rename to guides/assets/images/fxn.png diff --git a/railties/guides/assets/images/grey_bullet.gif b/guides/assets/images/grey_bullet.gif similarity index 100% rename from railties/guides/assets/images/grey_bullet.gif rename to guides/assets/images/grey_bullet.gif diff --git a/railties/guides/assets/images/habtm.png b/guides/assets/images/habtm.png similarity index 100% rename from railties/guides/assets/images/habtm.png rename to guides/assets/images/habtm.png diff --git a/railties/guides/assets/images/has_many.png b/guides/assets/images/has_many.png similarity index 100% rename from railties/guides/assets/images/has_many.png rename to guides/assets/images/has_many.png diff --git a/railties/guides/assets/images/has_many_through.png b/guides/assets/images/has_many_through.png similarity index 100% rename from railties/guides/assets/images/has_many_through.png rename to guides/assets/images/has_many_through.png diff --git a/railties/guides/assets/images/has_one.png b/guides/assets/images/has_one.png similarity index 100% rename from railties/guides/assets/images/has_one.png rename to guides/assets/images/has_one.png diff --git a/railties/guides/assets/images/has_one_through.png b/guides/assets/images/has_one_through.png similarity index 100% rename from railties/guides/assets/images/has_one_through.png rename to guides/assets/images/has_one_through.png diff --git a/railties/guides/assets/images/header_backdrop.png b/guides/assets/images/header_backdrop.png similarity index 100% rename from railties/guides/assets/images/header_backdrop.png rename to guides/assets/images/header_backdrop.png diff --git a/railties/guides/assets/images/header_tile.gif b/guides/assets/images/header_tile.gif similarity index 100% rename from railties/guides/assets/images/header_tile.gif rename to guides/assets/images/header_tile.gif diff --git a/railties/guides/assets/images/i18n/demo_html_safe.png b/guides/assets/images/i18n/demo_html_safe.png similarity index 100% rename from railties/guides/assets/images/i18n/demo_html_safe.png rename to guides/assets/images/i18n/demo_html_safe.png diff --git a/railties/guides/assets/images/i18n/demo_localized_pirate.png b/guides/assets/images/i18n/demo_localized_pirate.png similarity index 100% rename from railties/guides/assets/images/i18n/demo_localized_pirate.png rename to guides/assets/images/i18n/demo_localized_pirate.png diff --git a/railties/guides/assets/images/i18n/demo_translated_en.png b/guides/assets/images/i18n/demo_translated_en.png similarity index 100% rename from railties/guides/assets/images/i18n/demo_translated_en.png rename to guides/assets/images/i18n/demo_translated_en.png diff --git a/railties/guides/assets/images/i18n/demo_translated_pirate.png b/guides/assets/images/i18n/demo_translated_pirate.png similarity index 100% rename from railties/guides/assets/images/i18n/demo_translated_pirate.png rename to guides/assets/images/i18n/demo_translated_pirate.png diff --git a/railties/guides/assets/images/i18n/demo_translation_missing.png b/guides/assets/images/i18n/demo_translation_missing.png similarity index 100% rename from railties/guides/assets/images/i18n/demo_translation_missing.png rename to guides/assets/images/i18n/demo_translation_missing.png diff --git a/railties/guides/assets/images/i18n/demo_untranslated.png b/guides/assets/images/i18n/demo_untranslated.png similarity index 100% rename from railties/guides/assets/images/i18n/demo_untranslated.png rename to guides/assets/images/i18n/demo_untranslated.png diff --git a/railties/guides/assets/images/icons/README b/guides/assets/images/icons/README similarity index 100% rename from railties/guides/assets/images/icons/README rename to guides/assets/images/icons/README diff --git a/railties/guides/assets/images/icons/callouts/1.png b/guides/assets/images/icons/callouts/1.png similarity index 100% rename from railties/guides/assets/images/icons/callouts/1.png rename to guides/assets/images/icons/callouts/1.png diff --git a/railties/guides/assets/images/icons/callouts/10.png b/guides/assets/images/icons/callouts/10.png similarity index 100% rename from railties/guides/assets/images/icons/callouts/10.png rename to guides/assets/images/icons/callouts/10.png diff --git a/railties/guides/assets/images/icons/callouts/11.png b/guides/assets/images/icons/callouts/11.png similarity index 100% rename from railties/guides/assets/images/icons/callouts/11.png rename to guides/assets/images/icons/callouts/11.png diff --git a/railties/guides/assets/images/icons/callouts/12.png b/guides/assets/images/icons/callouts/12.png similarity index 100% rename from railties/guides/assets/images/icons/callouts/12.png rename to guides/assets/images/icons/callouts/12.png diff --git a/railties/guides/assets/images/icons/callouts/13.png b/guides/assets/images/icons/callouts/13.png similarity index 100% rename from railties/guides/assets/images/icons/callouts/13.png rename to guides/assets/images/icons/callouts/13.png diff --git a/railties/guides/assets/images/icons/callouts/14.png b/guides/assets/images/icons/callouts/14.png similarity index 100% rename from railties/guides/assets/images/icons/callouts/14.png rename to guides/assets/images/icons/callouts/14.png diff --git a/railties/guides/assets/images/icons/callouts/15.png b/guides/assets/images/icons/callouts/15.png similarity index 100% rename from railties/guides/assets/images/icons/callouts/15.png rename to guides/assets/images/icons/callouts/15.png diff --git a/railties/guides/assets/images/icons/callouts/2.png b/guides/assets/images/icons/callouts/2.png similarity index 100% rename from railties/guides/assets/images/icons/callouts/2.png rename to guides/assets/images/icons/callouts/2.png diff --git a/railties/guides/assets/images/icons/callouts/3.png b/guides/assets/images/icons/callouts/3.png similarity index 100% rename from railties/guides/assets/images/icons/callouts/3.png rename to guides/assets/images/icons/callouts/3.png diff --git a/railties/guides/assets/images/icons/callouts/4.png b/guides/assets/images/icons/callouts/4.png similarity index 100% rename from railties/guides/assets/images/icons/callouts/4.png rename to guides/assets/images/icons/callouts/4.png diff --git a/railties/guides/assets/images/icons/callouts/5.png b/guides/assets/images/icons/callouts/5.png similarity index 100% rename from railties/guides/assets/images/icons/callouts/5.png rename to guides/assets/images/icons/callouts/5.png diff --git a/railties/guides/assets/images/icons/callouts/6.png b/guides/assets/images/icons/callouts/6.png similarity index 100% rename from railties/guides/assets/images/icons/callouts/6.png rename to guides/assets/images/icons/callouts/6.png diff --git a/railties/guides/assets/images/icons/callouts/7.png b/guides/assets/images/icons/callouts/7.png similarity index 100% rename from railties/guides/assets/images/icons/callouts/7.png rename to guides/assets/images/icons/callouts/7.png diff --git a/railties/guides/assets/images/icons/callouts/8.png b/guides/assets/images/icons/callouts/8.png similarity index 100% rename from railties/guides/assets/images/icons/callouts/8.png rename to guides/assets/images/icons/callouts/8.png diff --git a/railties/guides/assets/images/icons/callouts/9.png b/guides/assets/images/icons/callouts/9.png similarity index 100% rename from railties/guides/assets/images/icons/callouts/9.png rename to guides/assets/images/icons/callouts/9.png diff --git a/railties/guides/assets/images/icons/caution.png b/guides/assets/images/icons/caution.png similarity index 100% rename from railties/guides/assets/images/icons/caution.png rename to guides/assets/images/icons/caution.png diff --git a/railties/guides/assets/images/icons/example.png b/guides/assets/images/icons/example.png similarity index 100% rename from railties/guides/assets/images/icons/example.png rename to guides/assets/images/icons/example.png diff --git a/railties/guides/assets/images/icons/home.png b/guides/assets/images/icons/home.png similarity index 100% rename from railties/guides/assets/images/icons/home.png rename to guides/assets/images/icons/home.png diff --git a/railties/guides/assets/images/icons/important.png b/guides/assets/images/icons/important.png similarity index 100% rename from railties/guides/assets/images/icons/important.png rename to guides/assets/images/icons/important.png diff --git a/railties/guides/assets/images/icons/next.png b/guides/assets/images/icons/next.png similarity index 100% rename from railties/guides/assets/images/icons/next.png rename to guides/assets/images/icons/next.png diff --git a/railties/guides/assets/images/icons/note.png b/guides/assets/images/icons/note.png similarity index 100% rename from railties/guides/assets/images/icons/note.png rename to guides/assets/images/icons/note.png diff --git a/railties/guides/assets/images/icons/prev.png b/guides/assets/images/icons/prev.png similarity index 100% rename from railties/guides/assets/images/icons/prev.png rename to guides/assets/images/icons/prev.png diff --git a/railties/guides/assets/images/icons/tip.png b/guides/assets/images/icons/tip.png similarity index 100% rename from railties/guides/assets/images/icons/tip.png rename to guides/assets/images/icons/tip.png diff --git a/railties/guides/assets/images/icons/up.png b/guides/assets/images/icons/up.png similarity index 100% rename from railties/guides/assets/images/icons/up.png rename to guides/assets/images/icons/up.png diff --git a/railties/guides/assets/images/icons/warning.png b/guides/assets/images/icons/warning.png similarity index 100% rename from railties/guides/assets/images/icons/warning.png rename to guides/assets/images/icons/warning.png diff --git a/railties/guides/assets/images/jaimeiniesta.jpg b/guides/assets/images/jaimeiniesta.jpg similarity index 100% rename from railties/guides/assets/images/jaimeiniesta.jpg rename to guides/assets/images/jaimeiniesta.jpg diff --git a/railties/guides/assets/images/nav_arrow.gif b/guides/assets/images/nav_arrow.gif similarity index 100% rename from railties/guides/assets/images/nav_arrow.gif rename to guides/assets/images/nav_arrow.gif diff --git a/railties/guides/assets/images/polymorphic.png b/guides/assets/images/polymorphic.png similarity index 100% rename from railties/guides/assets/images/polymorphic.png rename to guides/assets/images/polymorphic.png diff --git a/railties/guides/assets/images/posts_index.png b/guides/assets/images/posts_index.png similarity index 100% rename from railties/guides/assets/images/posts_index.png rename to guides/assets/images/posts_index.png diff --git a/railties/guides/assets/images/radar.png b/guides/assets/images/radar.png similarity index 100% rename from railties/guides/assets/images/radar.png rename to guides/assets/images/radar.png diff --git a/railties/guides/assets/images/rails_guides_kindle_cover.jpg b/guides/assets/images/rails_guides_kindle_cover.jpg similarity index 100% rename from railties/guides/assets/images/rails_guides_kindle_cover.jpg rename to guides/assets/images/rails_guides_kindle_cover.jpg diff --git a/railties/guides/assets/images/rails_guides_logo.gif b/guides/assets/images/rails_guides_logo.gif similarity index 100% rename from railties/guides/assets/images/rails_guides_logo.gif rename to guides/assets/images/rails_guides_logo.gif diff --git a/railties/guides/assets/images/rails_logo_remix.gif b/guides/assets/images/rails_logo_remix.gif similarity index 100% rename from railties/guides/assets/images/rails_logo_remix.gif rename to guides/assets/images/rails_logo_remix.gif diff --git a/railties/guides/assets/images/rails_welcome.png b/guides/assets/images/rails_welcome.png similarity index 100% rename from railties/guides/assets/images/rails_welcome.png rename to guides/assets/images/rails_welcome.png diff --git a/railties/guides/assets/images/session_fixation.png b/guides/assets/images/session_fixation.png similarity index 100% rename from railties/guides/assets/images/session_fixation.png rename to guides/assets/images/session_fixation.png diff --git a/railties/guides/assets/images/tab_grey.gif b/guides/assets/images/tab_grey.gif similarity index 100% rename from railties/guides/assets/images/tab_grey.gif rename to guides/assets/images/tab_grey.gif diff --git a/railties/guides/assets/images/tab_info.gif b/guides/assets/images/tab_info.gif similarity index 100% rename from railties/guides/assets/images/tab_info.gif rename to guides/assets/images/tab_info.gif diff --git a/railties/guides/assets/images/tab_note.gif b/guides/assets/images/tab_note.gif similarity index 100% rename from railties/guides/assets/images/tab_note.gif rename to guides/assets/images/tab_note.gif diff --git a/railties/guides/assets/images/tab_red.gif b/guides/assets/images/tab_red.gif similarity index 100% rename from railties/guides/assets/images/tab_red.gif rename to guides/assets/images/tab_red.gif diff --git a/railties/guides/assets/images/tab_yellow.gif b/guides/assets/images/tab_yellow.gif similarity index 100% rename from railties/guides/assets/images/tab_yellow.gif rename to guides/assets/images/tab_yellow.gif diff --git a/railties/guides/assets/images/tab_yellow.png b/guides/assets/images/tab_yellow.png similarity index 100% rename from railties/guides/assets/images/tab_yellow.png rename to guides/assets/images/tab_yellow.png diff --git a/railties/guides/assets/images/validation_error_messages.png b/guides/assets/images/validation_error_messages.png similarity index 100% rename from railties/guides/assets/images/validation_error_messages.png rename to guides/assets/images/validation_error_messages.png diff --git a/railties/guides/assets/images/vijaydev.jpg b/guides/assets/images/vijaydev.jpg similarity index 100% rename from railties/guides/assets/images/vijaydev.jpg rename to guides/assets/images/vijaydev.jpg diff --git a/railties/guides/assets/javascripts/guides.js b/guides/assets/javascripts/guides.js similarity index 100% rename from railties/guides/assets/javascripts/guides.js rename to guides/assets/javascripts/guides.js diff --git a/railties/guides/assets/javascripts/syntaxhighlighter/shBrushAS3.js b/guides/assets/javascripts/syntaxhighlighter/shBrushAS3.js similarity index 100% rename from railties/guides/assets/javascripts/syntaxhighlighter/shBrushAS3.js rename to guides/assets/javascripts/syntaxhighlighter/shBrushAS3.js diff --git a/railties/guides/assets/javascripts/syntaxhighlighter/shBrushAppleScript.js b/guides/assets/javascripts/syntaxhighlighter/shBrushAppleScript.js similarity index 100% rename from railties/guides/assets/javascripts/syntaxhighlighter/shBrushAppleScript.js rename to guides/assets/javascripts/syntaxhighlighter/shBrushAppleScript.js diff --git a/railties/guides/assets/javascripts/syntaxhighlighter/shBrushBash.js b/guides/assets/javascripts/syntaxhighlighter/shBrushBash.js similarity index 100% rename from railties/guides/assets/javascripts/syntaxhighlighter/shBrushBash.js rename to guides/assets/javascripts/syntaxhighlighter/shBrushBash.js diff --git a/railties/guides/assets/javascripts/syntaxhighlighter/shBrushCSharp.js b/guides/assets/javascripts/syntaxhighlighter/shBrushCSharp.js similarity index 100% rename from railties/guides/assets/javascripts/syntaxhighlighter/shBrushCSharp.js rename to guides/assets/javascripts/syntaxhighlighter/shBrushCSharp.js diff --git a/railties/guides/assets/javascripts/syntaxhighlighter/shBrushColdFusion.js b/guides/assets/javascripts/syntaxhighlighter/shBrushColdFusion.js similarity index 100% rename from railties/guides/assets/javascripts/syntaxhighlighter/shBrushColdFusion.js rename to guides/assets/javascripts/syntaxhighlighter/shBrushColdFusion.js diff --git a/railties/guides/assets/javascripts/syntaxhighlighter/shBrushCpp.js b/guides/assets/javascripts/syntaxhighlighter/shBrushCpp.js similarity index 100% rename from railties/guides/assets/javascripts/syntaxhighlighter/shBrushCpp.js rename to guides/assets/javascripts/syntaxhighlighter/shBrushCpp.js diff --git a/railties/guides/assets/javascripts/syntaxhighlighter/shBrushCss.js b/guides/assets/javascripts/syntaxhighlighter/shBrushCss.js similarity index 100% rename from railties/guides/assets/javascripts/syntaxhighlighter/shBrushCss.js rename to guides/assets/javascripts/syntaxhighlighter/shBrushCss.js diff --git a/railties/guides/assets/javascripts/syntaxhighlighter/shBrushDelphi.js b/guides/assets/javascripts/syntaxhighlighter/shBrushDelphi.js similarity index 100% rename from railties/guides/assets/javascripts/syntaxhighlighter/shBrushDelphi.js rename to guides/assets/javascripts/syntaxhighlighter/shBrushDelphi.js diff --git a/railties/guides/assets/javascripts/syntaxhighlighter/shBrushDiff.js b/guides/assets/javascripts/syntaxhighlighter/shBrushDiff.js similarity index 100% rename from railties/guides/assets/javascripts/syntaxhighlighter/shBrushDiff.js rename to guides/assets/javascripts/syntaxhighlighter/shBrushDiff.js diff --git a/railties/guides/assets/javascripts/syntaxhighlighter/shBrushErlang.js b/guides/assets/javascripts/syntaxhighlighter/shBrushErlang.js similarity index 100% rename from railties/guides/assets/javascripts/syntaxhighlighter/shBrushErlang.js rename to guides/assets/javascripts/syntaxhighlighter/shBrushErlang.js diff --git a/railties/guides/assets/javascripts/syntaxhighlighter/shBrushGroovy.js b/guides/assets/javascripts/syntaxhighlighter/shBrushGroovy.js similarity index 100% rename from railties/guides/assets/javascripts/syntaxhighlighter/shBrushGroovy.js rename to guides/assets/javascripts/syntaxhighlighter/shBrushGroovy.js diff --git a/railties/guides/assets/javascripts/syntaxhighlighter/shBrushJScript.js b/guides/assets/javascripts/syntaxhighlighter/shBrushJScript.js similarity index 100% rename from railties/guides/assets/javascripts/syntaxhighlighter/shBrushJScript.js rename to guides/assets/javascripts/syntaxhighlighter/shBrushJScript.js diff --git a/railties/guides/assets/javascripts/syntaxhighlighter/shBrushJava.js b/guides/assets/javascripts/syntaxhighlighter/shBrushJava.js similarity index 100% rename from railties/guides/assets/javascripts/syntaxhighlighter/shBrushJava.js rename to guides/assets/javascripts/syntaxhighlighter/shBrushJava.js diff --git a/railties/guides/assets/javascripts/syntaxhighlighter/shBrushJavaFX.js b/guides/assets/javascripts/syntaxhighlighter/shBrushJavaFX.js similarity index 100% rename from railties/guides/assets/javascripts/syntaxhighlighter/shBrushJavaFX.js rename to guides/assets/javascripts/syntaxhighlighter/shBrushJavaFX.js diff --git a/railties/guides/assets/javascripts/syntaxhighlighter/shBrushPerl.js b/guides/assets/javascripts/syntaxhighlighter/shBrushPerl.js similarity index 100% rename from railties/guides/assets/javascripts/syntaxhighlighter/shBrushPerl.js rename to guides/assets/javascripts/syntaxhighlighter/shBrushPerl.js diff --git a/railties/guides/assets/javascripts/syntaxhighlighter/shBrushPhp.js b/guides/assets/javascripts/syntaxhighlighter/shBrushPhp.js similarity index 100% rename from railties/guides/assets/javascripts/syntaxhighlighter/shBrushPhp.js rename to guides/assets/javascripts/syntaxhighlighter/shBrushPhp.js diff --git a/railties/guides/assets/javascripts/syntaxhighlighter/shBrushPlain.js b/guides/assets/javascripts/syntaxhighlighter/shBrushPlain.js similarity index 100% rename from railties/guides/assets/javascripts/syntaxhighlighter/shBrushPlain.js rename to guides/assets/javascripts/syntaxhighlighter/shBrushPlain.js diff --git a/railties/guides/assets/javascripts/syntaxhighlighter/shBrushPowerShell.js b/guides/assets/javascripts/syntaxhighlighter/shBrushPowerShell.js similarity index 100% rename from railties/guides/assets/javascripts/syntaxhighlighter/shBrushPowerShell.js rename to guides/assets/javascripts/syntaxhighlighter/shBrushPowerShell.js diff --git a/railties/guides/assets/javascripts/syntaxhighlighter/shBrushPython.js b/guides/assets/javascripts/syntaxhighlighter/shBrushPython.js similarity index 100% rename from railties/guides/assets/javascripts/syntaxhighlighter/shBrushPython.js rename to guides/assets/javascripts/syntaxhighlighter/shBrushPython.js diff --git a/railties/guides/assets/javascripts/syntaxhighlighter/shBrushRuby.js b/guides/assets/javascripts/syntaxhighlighter/shBrushRuby.js similarity index 100% rename from railties/guides/assets/javascripts/syntaxhighlighter/shBrushRuby.js rename to guides/assets/javascripts/syntaxhighlighter/shBrushRuby.js diff --git a/railties/guides/assets/javascripts/syntaxhighlighter/shBrushSass.js b/guides/assets/javascripts/syntaxhighlighter/shBrushSass.js similarity index 100% rename from railties/guides/assets/javascripts/syntaxhighlighter/shBrushSass.js rename to guides/assets/javascripts/syntaxhighlighter/shBrushSass.js diff --git a/railties/guides/assets/javascripts/syntaxhighlighter/shBrushScala.js b/guides/assets/javascripts/syntaxhighlighter/shBrushScala.js similarity index 100% rename from railties/guides/assets/javascripts/syntaxhighlighter/shBrushScala.js rename to guides/assets/javascripts/syntaxhighlighter/shBrushScala.js diff --git a/railties/guides/assets/javascripts/syntaxhighlighter/shBrushSql.js b/guides/assets/javascripts/syntaxhighlighter/shBrushSql.js similarity index 100% rename from railties/guides/assets/javascripts/syntaxhighlighter/shBrushSql.js rename to guides/assets/javascripts/syntaxhighlighter/shBrushSql.js diff --git a/railties/guides/assets/javascripts/syntaxhighlighter/shBrushVb.js b/guides/assets/javascripts/syntaxhighlighter/shBrushVb.js similarity index 100% rename from railties/guides/assets/javascripts/syntaxhighlighter/shBrushVb.js rename to guides/assets/javascripts/syntaxhighlighter/shBrushVb.js diff --git a/railties/guides/assets/javascripts/syntaxhighlighter/shBrushXml.js b/guides/assets/javascripts/syntaxhighlighter/shBrushXml.js similarity index 100% rename from railties/guides/assets/javascripts/syntaxhighlighter/shBrushXml.js rename to guides/assets/javascripts/syntaxhighlighter/shBrushXml.js diff --git a/railties/guides/assets/javascripts/syntaxhighlighter/shCore.js b/guides/assets/javascripts/syntaxhighlighter/shCore.js similarity index 100% rename from railties/guides/assets/javascripts/syntaxhighlighter/shCore.js rename to guides/assets/javascripts/syntaxhighlighter/shCore.js diff --git a/railties/guides/assets/stylesheets/fixes.css b/guides/assets/stylesheets/fixes.css similarity index 100% rename from railties/guides/assets/stylesheets/fixes.css rename to guides/assets/stylesheets/fixes.css diff --git a/railties/guides/assets/stylesheets/kindle.css b/guides/assets/stylesheets/kindle.css similarity index 100% rename from railties/guides/assets/stylesheets/kindle.css rename to guides/assets/stylesheets/kindle.css diff --git a/railties/guides/assets/stylesheets/main.css b/guides/assets/stylesheets/main.css similarity index 100% rename from railties/guides/assets/stylesheets/main.css rename to guides/assets/stylesheets/main.css diff --git a/railties/guides/assets/stylesheets/print.css b/guides/assets/stylesheets/print.css similarity index 100% rename from railties/guides/assets/stylesheets/print.css rename to guides/assets/stylesheets/print.css diff --git a/railties/guides/assets/stylesheets/reset.css b/guides/assets/stylesheets/reset.css similarity index 100% rename from railties/guides/assets/stylesheets/reset.css rename to guides/assets/stylesheets/reset.css diff --git a/railties/guides/assets/stylesheets/style.css b/guides/assets/stylesheets/style.css similarity index 100% rename from railties/guides/assets/stylesheets/style.css rename to guides/assets/stylesheets/style.css diff --git a/railties/guides/assets/stylesheets/syntaxhighlighter/shCore.css b/guides/assets/stylesheets/syntaxhighlighter/shCore.css similarity index 100% rename from railties/guides/assets/stylesheets/syntaxhighlighter/shCore.css rename to guides/assets/stylesheets/syntaxhighlighter/shCore.css diff --git a/railties/guides/assets/stylesheets/syntaxhighlighter/shCoreDefault.css b/guides/assets/stylesheets/syntaxhighlighter/shCoreDefault.css similarity index 100% rename from railties/guides/assets/stylesheets/syntaxhighlighter/shCoreDefault.css rename to guides/assets/stylesheets/syntaxhighlighter/shCoreDefault.css diff --git a/railties/guides/assets/stylesheets/syntaxhighlighter/shCoreDjango.css b/guides/assets/stylesheets/syntaxhighlighter/shCoreDjango.css similarity index 100% rename from railties/guides/assets/stylesheets/syntaxhighlighter/shCoreDjango.css rename to guides/assets/stylesheets/syntaxhighlighter/shCoreDjango.css diff --git a/railties/guides/assets/stylesheets/syntaxhighlighter/shCoreEclipse.css b/guides/assets/stylesheets/syntaxhighlighter/shCoreEclipse.css similarity index 100% rename from railties/guides/assets/stylesheets/syntaxhighlighter/shCoreEclipse.css rename to guides/assets/stylesheets/syntaxhighlighter/shCoreEclipse.css diff --git a/railties/guides/assets/stylesheets/syntaxhighlighter/shCoreEmacs.css b/guides/assets/stylesheets/syntaxhighlighter/shCoreEmacs.css similarity index 100% rename from railties/guides/assets/stylesheets/syntaxhighlighter/shCoreEmacs.css rename to guides/assets/stylesheets/syntaxhighlighter/shCoreEmacs.css diff --git a/railties/guides/assets/stylesheets/syntaxhighlighter/shCoreFadeToGrey.css b/guides/assets/stylesheets/syntaxhighlighter/shCoreFadeToGrey.css similarity index 100% rename from railties/guides/assets/stylesheets/syntaxhighlighter/shCoreFadeToGrey.css rename to guides/assets/stylesheets/syntaxhighlighter/shCoreFadeToGrey.css diff --git a/railties/guides/assets/stylesheets/syntaxhighlighter/shCoreMDUltra.css b/guides/assets/stylesheets/syntaxhighlighter/shCoreMDUltra.css similarity index 100% rename from railties/guides/assets/stylesheets/syntaxhighlighter/shCoreMDUltra.css rename to guides/assets/stylesheets/syntaxhighlighter/shCoreMDUltra.css diff --git a/railties/guides/assets/stylesheets/syntaxhighlighter/shCoreMidnight.css b/guides/assets/stylesheets/syntaxhighlighter/shCoreMidnight.css similarity index 100% rename from railties/guides/assets/stylesheets/syntaxhighlighter/shCoreMidnight.css rename to guides/assets/stylesheets/syntaxhighlighter/shCoreMidnight.css diff --git a/railties/guides/assets/stylesheets/syntaxhighlighter/shCoreRDark.css b/guides/assets/stylesheets/syntaxhighlighter/shCoreRDark.css similarity index 100% rename from railties/guides/assets/stylesheets/syntaxhighlighter/shCoreRDark.css rename to guides/assets/stylesheets/syntaxhighlighter/shCoreRDark.css diff --git a/railties/guides/assets/stylesheets/syntaxhighlighter/shThemeDefault.css b/guides/assets/stylesheets/syntaxhighlighter/shThemeDefault.css similarity index 100% rename from railties/guides/assets/stylesheets/syntaxhighlighter/shThemeDefault.css rename to guides/assets/stylesheets/syntaxhighlighter/shThemeDefault.css diff --git a/railties/guides/assets/stylesheets/syntaxhighlighter/shThemeDjango.css b/guides/assets/stylesheets/syntaxhighlighter/shThemeDjango.css similarity index 100% rename from railties/guides/assets/stylesheets/syntaxhighlighter/shThemeDjango.css rename to guides/assets/stylesheets/syntaxhighlighter/shThemeDjango.css diff --git a/railties/guides/assets/stylesheets/syntaxhighlighter/shThemeEclipse.css b/guides/assets/stylesheets/syntaxhighlighter/shThemeEclipse.css similarity index 100% rename from railties/guides/assets/stylesheets/syntaxhighlighter/shThemeEclipse.css rename to guides/assets/stylesheets/syntaxhighlighter/shThemeEclipse.css diff --git a/railties/guides/assets/stylesheets/syntaxhighlighter/shThemeEmacs.css b/guides/assets/stylesheets/syntaxhighlighter/shThemeEmacs.css similarity index 100% rename from railties/guides/assets/stylesheets/syntaxhighlighter/shThemeEmacs.css rename to guides/assets/stylesheets/syntaxhighlighter/shThemeEmacs.css diff --git a/railties/guides/assets/stylesheets/syntaxhighlighter/shThemeFadeToGrey.css b/guides/assets/stylesheets/syntaxhighlighter/shThemeFadeToGrey.css similarity index 100% rename from railties/guides/assets/stylesheets/syntaxhighlighter/shThemeFadeToGrey.css rename to guides/assets/stylesheets/syntaxhighlighter/shThemeFadeToGrey.css diff --git a/railties/guides/assets/stylesheets/syntaxhighlighter/shThemeMDUltra.css b/guides/assets/stylesheets/syntaxhighlighter/shThemeMDUltra.css similarity index 100% rename from railties/guides/assets/stylesheets/syntaxhighlighter/shThemeMDUltra.css rename to guides/assets/stylesheets/syntaxhighlighter/shThemeMDUltra.css diff --git a/railties/guides/assets/stylesheets/syntaxhighlighter/shThemeMidnight.css b/guides/assets/stylesheets/syntaxhighlighter/shThemeMidnight.css similarity index 100% rename from railties/guides/assets/stylesheets/syntaxhighlighter/shThemeMidnight.css rename to guides/assets/stylesheets/syntaxhighlighter/shThemeMidnight.css diff --git a/railties/guides/assets/stylesheets/syntaxhighlighter/shThemeRDark.css b/guides/assets/stylesheets/syntaxhighlighter/shThemeRDark.css similarity index 100% rename from railties/guides/assets/stylesheets/syntaxhighlighter/shThemeRDark.css rename to guides/assets/stylesheets/syntaxhighlighter/shThemeRDark.css diff --git a/railties/guides/assets/stylesheets/syntaxhighlighter/shThemeRailsGuides.css b/guides/assets/stylesheets/syntaxhighlighter/shThemeRailsGuides.css similarity index 100% rename from railties/guides/assets/stylesheets/syntaxhighlighter/shThemeRailsGuides.css rename to guides/assets/stylesheets/syntaxhighlighter/shThemeRailsGuides.css diff --git a/railties/guides/code/getting_started/Gemfile b/guides/code/getting_started/Gemfile similarity index 100% rename from railties/guides/code/getting_started/Gemfile rename to guides/code/getting_started/Gemfile diff --git a/railties/guides/code/getting_started/README.rdoc b/guides/code/getting_started/README.rdoc similarity index 100% rename from railties/guides/code/getting_started/README.rdoc rename to guides/code/getting_started/README.rdoc diff --git a/railties/guides/code/getting_started/Rakefile b/guides/code/getting_started/Rakefile similarity index 100% rename from railties/guides/code/getting_started/Rakefile rename to guides/code/getting_started/Rakefile diff --git a/railties/guides/code/getting_started/app/assets/images/rails.png b/guides/code/getting_started/app/assets/images/rails.png similarity index 100% rename from railties/guides/code/getting_started/app/assets/images/rails.png rename to guides/code/getting_started/app/assets/images/rails.png diff --git a/railties/guides/code/getting_started/app/assets/javascripts/application.js b/guides/code/getting_started/app/assets/javascripts/application.js similarity index 100% rename from railties/guides/code/getting_started/app/assets/javascripts/application.js rename to guides/code/getting_started/app/assets/javascripts/application.js diff --git a/railties/guides/code/getting_started/app/assets/javascripts/comments.js.coffee b/guides/code/getting_started/app/assets/javascripts/comments.js.coffee similarity index 100% rename from railties/guides/code/getting_started/app/assets/javascripts/comments.js.coffee rename to guides/code/getting_started/app/assets/javascripts/comments.js.coffee diff --git a/railties/guides/code/getting_started/app/assets/javascripts/home.js.coffee b/guides/code/getting_started/app/assets/javascripts/home.js.coffee similarity index 100% rename from railties/guides/code/getting_started/app/assets/javascripts/home.js.coffee rename to guides/code/getting_started/app/assets/javascripts/home.js.coffee diff --git a/railties/guides/code/getting_started/app/assets/javascripts/posts.js.coffee b/guides/code/getting_started/app/assets/javascripts/posts.js.coffee similarity index 100% rename from railties/guides/code/getting_started/app/assets/javascripts/posts.js.coffee rename to guides/code/getting_started/app/assets/javascripts/posts.js.coffee diff --git a/railties/guides/code/getting_started/app/assets/stylesheets/application.css b/guides/code/getting_started/app/assets/stylesheets/application.css similarity index 100% rename from railties/guides/code/getting_started/app/assets/stylesheets/application.css rename to guides/code/getting_started/app/assets/stylesheets/application.css diff --git a/railties/guides/code/getting_started/app/assets/stylesheets/comments.css.scss b/guides/code/getting_started/app/assets/stylesheets/comments.css.scss similarity index 100% rename from railties/guides/code/getting_started/app/assets/stylesheets/comments.css.scss rename to guides/code/getting_started/app/assets/stylesheets/comments.css.scss diff --git a/railties/guides/code/getting_started/app/assets/stylesheets/home.css.scss b/guides/code/getting_started/app/assets/stylesheets/home.css.scss similarity index 100% rename from railties/guides/code/getting_started/app/assets/stylesheets/home.css.scss rename to guides/code/getting_started/app/assets/stylesheets/home.css.scss diff --git a/railties/guides/code/getting_started/app/assets/stylesheets/posts.css.scss b/guides/code/getting_started/app/assets/stylesheets/posts.css.scss similarity index 100% rename from railties/guides/code/getting_started/app/assets/stylesheets/posts.css.scss rename to guides/code/getting_started/app/assets/stylesheets/posts.css.scss diff --git a/railties/guides/code/getting_started/app/assets/stylesheets/scaffolds.css.scss b/guides/code/getting_started/app/assets/stylesheets/scaffolds.css.scss similarity index 100% rename from railties/guides/code/getting_started/app/assets/stylesheets/scaffolds.css.scss rename to guides/code/getting_started/app/assets/stylesheets/scaffolds.css.scss diff --git a/railties/guides/code/getting_started/app/controllers/application_controller.rb b/guides/code/getting_started/app/controllers/application_controller.rb similarity index 100% rename from railties/guides/code/getting_started/app/controllers/application_controller.rb rename to guides/code/getting_started/app/controllers/application_controller.rb diff --git a/railties/guides/code/getting_started/app/controllers/comments_controller.rb b/guides/code/getting_started/app/controllers/comments_controller.rb similarity index 100% rename from railties/guides/code/getting_started/app/controllers/comments_controller.rb rename to guides/code/getting_started/app/controllers/comments_controller.rb diff --git a/railties/guides/code/getting_started/app/controllers/home_controller.rb b/guides/code/getting_started/app/controllers/home_controller.rb similarity index 100% rename from railties/guides/code/getting_started/app/controllers/home_controller.rb rename to guides/code/getting_started/app/controllers/home_controller.rb diff --git a/railties/guides/code/getting_started/app/controllers/posts_controller.rb b/guides/code/getting_started/app/controllers/posts_controller.rb similarity index 100% rename from railties/guides/code/getting_started/app/controllers/posts_controller.rb rename to guides/code/getting_started/app/controllers/posts_controller.rb diff --git a/railties/guides/code/getting_started/app/helpers/application_helper.rb b/guides/code/getting_started/app/helpers/application_helper.rb similarity index 100% rename from railties/guides/code/getting_started/app/helpers/application_helper.rb rename to guides/code/getting_started/app/helpers/application_helper.rb diff --git a/railties/guides/code/getting_started/app/helpers/comments_helper.rb b/guides/code/getting_started/app/helpers/comments_helper.rb similarity index 100% rename from railties/guides/code/getting_started/app/helpers/comments_helper.rb rename to guides/code/getting_started/app/helpers/comments_helper.rb diff --git a/railties/guides/code/getting_started/app/helpers/home_helper.rb b/guides/code/getting_started/app/helpers/home_helper.rb similarity index 100% rename from railties/guides/code/getting_started/app/helpers/home_helper.rb rename to guides/code/getting_started/app/helpers/home_helper.rb diff --git a/railties/guides/code/getting_started/app/helpers/posts_helper.rb b/guides/code/getting_started/app/helpers/posts_helper.rb similarity index 100% rename from railties/guides/code/getting_started/app/helpers/posts_helper.rb rename to guides/code/getting_started/app/helpers/posts_helper.rb diff --git a/railties/guides/code/getting_started/app/mailers/.gitkeep b/guides/code/getting_started/app/mailers/.gitkeep similarity index 100% rename from railties/guides/code/getting_started/app/mailers/.gitkeep rename to guides/code/getting_started/app/mailers/.gitkeep diff --git a/railties/guides/code/getting_started/app/models/.gitkeep b/guides/code/getting_started/app/models/.gitkeep similarity index 100% rename from railties/guides/code/getting_started/app/models/.gitkeep rename to guides/code/getting_started/app/models/.gitkeep diff --git a/railties/guides/code/getting_started/app/models/comment.rb b/guides/code/getting_started/app/models/comment.rb similarity index 100% rename from railties/guides/code/getting_started/app/models/comment.rb rename to guides/code/getting_started/app/models/comment.rb diff --git a/railties/guides/code/getting_started/app/models/post.rb b/guides/code/getting_started/app/models/post.rb similarity index 100% rename from railties/guides/code/getting_started/app/models/post.rb rename to guides/code/getting_started/app/models/post.rb diff --git a/railties/guides/code/getting_started/app/models/tag.rb b/guides/code/getting_started/app/models/tag.rb similarity index 100% rename from railties/guides/code/getting_started/app/models/tag.rb rename to guides/code/getting_started/app/models/tag.rb diff --git a/railties/guides/code/getting_started/app/views/comments/_comment.html.erb b/guides/code/getting_started/app/views/comments/_comment.html.erb similarity index 100% rename from railties/guides/code/getting_started/app/views/comments/_comment.html.erb rename to guides/code/getting_started/app/views/comments/_comment.html.erb diff --git a/railties/guides/code/getting_started/app/views/comments/_form.html.erb b/guides/code/getting_started/app/views/comments/_form.html.erb similarity index 100% rename from railties/guides/code/getting_started/app/views/comments/_form.html.erb rename to guides/code/getting_started/app/views/comments/_form.html.erb diff --git a/railties/guides/code/getting_started/app/views/home/index.html.erb b/guides/code/getting_started/app/views/home/index.html.erb similarity index 100% rename from railties/guides/code/getting_started/app/views/home/index.html.erb rename to guides/code/getting_started/app/views/home/index.html.erb diff --git a/railties/guides/code/getting_started/app/views/layouts/application.html.erb b/guides/code/getting_started/app/views/layouts/application.html.erb similarity index 100% rename from railties/guides/code/getting_started/app/views/layouts/application.html.erb rename to guides/code/getting_started/app/views/layouts/application.html.erb diff --git a/railties/guides/code/getting_started/app/views/posts/_form.html.erb b/guides/code/getting_started/app/views/posts/_form.html.erb similarity index 100% rename from railties/guides/code/getting_started/app/views/posts/_form.html.erb rename to guides/code/getting_started/app/views/posts/_form.html.erb diff --git a/railties/guides/code/getting_started/app/views/posts/edit.html.erb b/guides/code/getting_started/app/views/posts/edit.html.erb similarity index 100% rename from railties/guides/code/getting_started/app/views/posts/edit.html.erb rename to guides/code/getting_started/app/views/posts/edit.html.erb diff --git a/railties/guides/code/getting_started/app/views/posts/index.html.erb b/guides/code/getting_started/app/views/posts/index.html.erb similarity index 100% rename from railties/guides/code/getting_started/app/views/posts/index.html.erb rename to guides/code/getting_started/app/views/posts/index.html.erb diff --git a/railties/guides/code/getting_started/app/views/posts/new.html.erb b/guides/code/getting_started/app/views/posts/new.html.erb similarity index 100% rename from railties/guides/code/getting_started/app/views/posts/new.html.erb rename to guides/code/getting_started/app/views/posts/new.html.erb diff --git a/railties/guides/code/getting_started/app/views/posts/show.html.erb b/guides/code/getting_started/app/views/posts/show.html.erb similarity index 100% rename from railties/guides/code/getting_started/app/views/posts/show.html.erb rename to guides/code/getting_started/app/views/posts/show.html.erb diff --git a/railties/guides/code/getting_started/app/views/tags/_form.html.erb b/guides/code/getting_started/app/views/tags/_form.html.erb similarity index 100% rename from railties/guides/code/getting_started/app/views/tags/_form.html.erb rename to guides/code/getting_started/app/views/tags/_form.html.erb diff --git a/railties/guides/code/getting_started/config.ru b/guides/code/getting_started/config.ru similarity index 100% rename from railties/guides/code/getting_started/config.ru rename to guides/code/getting_started/config.ru diff --git a/railties/guides/code/getting_started/config/application.rb b/guides/code/getting_started/config/application.rb similarity index 100% rename from railties/guides/code/getting_started/config/application.rb rename to guides/code/getting_started/config/application.rb diff --git a/railties/guides/code/getting_started/config/boot.rb b/guides/code/getting_started/config/boot.rb similarity index 100% rename from railties/guides/code/getting_started/config/boot.rb rename to guides/code/getting_started/config/boot.rb diff --git a/railties/guides/code/getting_started/config/database.yml b/guides/code/getting_started/config/database.yml similarity index 100% rename from railties/guides/code/getting_started/config/database.yml rename to guides/code/getting_started/config/database.yml diff --git a/railties/guides/code/getting_started/config/environment.rb b/guides/code/getting_started/config/environment.rb similarity index 100% rename from railties/guides/code/getting_started/config/environment.rb rename to guides/code/getting_started/config/environment.rb diff --git a/railties/guides/code/getting_started/config/environments/development.rb b/guides/code/getting_started/config/environments/development.rb similarity index 100% rename from railties/guides/code/getting_started/config/environments/development.rb rename to guides/code/getting_started/config/environments/development.rb diff --git a/railties/guides/code/getting_started/config/environments/production.rb b/guides/code/getting_started/config/environments/production.rb similarity index 100% rename from railties/guides/code/getting_started/config/environments/production.rb rename to guides/code/getting_started/config/environments/production.rb diff --git a/railties/guides/code/getting_started/config/environments/test.rb b/guides/code/getting_started/config/environments/test.rb similarity index 100% rename from railties/guides/code/getting_started/config/environments/test.rb rename to guides/code/getting_started/config/environments/test.rb diff --git a/railties/guides/code/getting_started/config/initializers/backtrace_silencers.rb b/guides/code/getting_started/config/initializers/backtrace_silencers.rb similarity index 100% rename from railties/guides/code/getting_started/config/initializers/backtrace_silencers.rb rename to guides/code/getting_started/config/initializers/backtrace_silencers.rb diff --git a/railties/guides/code/getting_started/config/initializers/inflections.rb b/guides/code/getting_started/config/initializers/inflections.rb similarity index 100% rename from railties/guides/code/getting_started/config/initializers/inflections.rb rename to guides/code/getting_started/config/initializers/inflections.rb diff --git a/railties/guides/code/getting_started/config/initializers/mime_types.rb b/guides/code/getting_started/config/initializers/mime_types.rb similarity index 100% rename from railties/guides/code/getting_started/config/initializers/mime_types.rb rename to guides/code/getting_started/config/initializers/mime_types.rb diff --git a/railties/guides/code/getting_started/config/initializers/secret_token.rb b/guides/code/getting_started/config/initializers/secret_token.rb similarity index 100% rename from railties/guides/code/getting_started/config/initializers/secret_token.rb rename to guides/code/getting_started/config/initializers/secret_token.rb diff --git a/railties/guides/code/getting_started/config/initializers/session_store.rb b/guides/code/getting_started/config/initializers/session_store.rb similarity index 100% rename from railties/guides/code/getting_started/config/initializers/session_store.rb rename to guides/code/getting_started/config/initializers/session_store.rb diff --git a/railties/guides/code/getting_started/config/initializers/wrap_parameters.rb b/guides/code/getting_started/config/initializers/wrap_parameters.rb similarity index 100% rename from railties/guides/code/getting_started/config/initializers/wrap_parameters.rb rename to guides/code/getting_started/config/initializers/wrap_parameters.rb diff --git a/railties/guides/code/getting_started/config/locales/en.yml b/guides/code/getting_started/config/locales/en.yml similarity index 100% rename from railties/guides/code/getting_started/config/locales/en.yml rename to guides/code/getting_started/config/locales/en.yml diff --git a/railties/guides/code/getting_started/config/routes.rb b/guides/code/getting_started/config/routes.rb similarity index 100% rename from railties/guides/code/getting_started/config/routes.rb rename to guides/code/getting_started/config/routes.rb diff --git a/railties/guides/code/getting_started/db/migrate/20110901012504_create_posts.rb b/guides/code/getting_started/db/migrate/20110901012504_create_posts.rb similarity index 100% rename from railties/guides/code/getting_started/db/migrate/20110901012504_create_posts.rb rename to guides/code/getting_started/db/migrate/20110901012504_create_posts.rb diff --git a/railties/guides/code/getting_started/db/migrate/20110901012815_create_comments.rb b/guides/code/getting_started/db/migrate/20110901012815_create_comments.rb similarity index 100% rename from railties/guides/code/getting_started/db/migrate/20110901012815_create_comments.rb rename to guides/code/getting_started/db/migrate/20110901012815_create_comments.rb diff --git a/railties/guides/code/getting_started/db/migrate/20110901013701_create_tags.rb b/guides/code/getting_started/db/migrate/20110901013701_create_tags.rb similarity index 100% rename from railties/guides/code/getting_started/db/migrate/20110901013701_create_tags.rb rename to guides/code/getting_started/db/migrate/20110901013701_create_tags.rb diff --git a/railties/guides/code/getting_started/db/schema.rb b/guides/code/getting_started/db/schema.rb similarity index 100% rename from railties/guides/code/getting_started/db/schema.rb rename to guides/code/getting_started/db/schema.rb diff --git a/railties/guides/code/getting_started/db/seeds.rb b/guides/code/getting_started/db/seeds.rb similarity index 100% rename from railties/guides/code/getting_started/db/seeds.rb rename to guides/code/getting_started/db/seeds.rb diff --git a/railties/guides/code/getting_started/doc/README_FOR_APP b/guides/code/getting_started/doc/README_FOR_APP similarity index 100% rename from railties/guides/code/getting_started/doc/README_FOR_APP rename to guides/code/getting_started/doc/README_FOR_APP diff --git a/railties/guides/code/getting_started/lib/assets/.gitkeep b/guides/code/getting_started/lib/assets/.gitkeep similarity index 100% rename from railties/guides/code/getting_started/lib/assets/.gitkeep rename to guides/code/getting_started/lib/assets/.gitkeep diff --git a/railties/guides/code/getting_started/lib/tasks/.gitkeep b/guides/code/getting_started/lib/tasks/.gitkeep similarity index 100% rename from railties/guides/code/getting_started/lib/tasks/.gitkeep rename to guides/code/getting_started/lib/tasks/.gitkeep diff --git a/railties/guides/code/getting_started/public/404.html b/guides/code/getting_started/public/404.html similarity index 100% rename from railties/guides/code/getting_started/public/404.html rename to guides/code/getting_started/public/404.html diff --git a/railties/guides/code/getting_started/public/422.html b/guides/code/getting_started/public/422.html similarity index 100% rename from railties/guides/code/getting_started/public/422.html rename to guides/code/getting_started/public/422.html diff --git a/railties/guides/code/getting_started/public/500.html b/guides/code/getting_started/public/500.html similarity index 100% rename from railties/guides/code/getting_started/public/500.html rename to guides/code/getting_started/public/500.html diff --git a/railties/guides/code/getting_started/public/favicon.ico b/guides/code/getting_started/public/favicon.ico similarity index 100% rename from railties/guides/code/getting_started/public/favicon.ico rename to guides/code/getting_started/public/favicon.ico diff --git a/railties/guides/code/getting_started/public/robots.txt b/guides/code/getting_started/public/robots.txt similarity index 100% rename from railties/guides/code/getting_started/public/robots.txt rename to guides/code/getting_started/public/robots.txt diff --git a/railties/guides/code/getting_started/script/rails b/guides/code/getting_started/script/rails similarity index 100% rename from railties/guides/code/getting_started/script/rails rename to guides/code/getting_started/script/rails diff --git a/railties/guides/code/getting_started/test/fixtures/.gitkeep b/guides/code/getting_started/test/fixtures/.gitkeep similarity index 100% rename from railties/guides/code/getting_started/test/fixtures/.gitkeep rename to guides/code/getting_started/test/fixtures/.gitkeep diff --git a/railties/guides/code/getting_started/test/fixtures/comments.yml b/guides/code/getting_started/test/fixtures/comments.yml similarity index 100% rename from railties/guides/code/getting_started/test/fixtures/comments.yml rename to guides/code/getting_started/test/fixtures/comments.yml diff --git a/railties/guides/code/getting_started/test/fixtures/posts.yml b/guides/code/getting_started/test/fixtures/posts.yml similarity index 100% rename from railties/guides/code/getting_started/test/fixtures/posts.yml rename to guides/code/getting_started/test/fixtures/posts.yml diff --git a/railties/guides/code/getting_started/test/fixtures/tags.yml b/guides/code/getting_started/test/fixtures/tags.yml similarity index 100% rename from railties/guides/code/getting_started/test/fixtures/tags.yml rename to guides/code/getting_started/test/fixtures/tags.yml diff --git a/railties/guides/code/getting_started/test/functional/.gitkeep b/guides/code/getting_started/test/functional/.gitkeep similarity index 100% rename from railties/guides/code/getting_started/test/functional/.gitkeep rename to guides/code/getting_started/test/functional/.gitkeep diff --git a/railties/guides/code/getting_started/test/functional/comments_controller_test.rb b/guides/code/getting_started/test/functional/comments_controller_test.rb similarity index 100% rename from railties/guides/code/getting_started/test/functional/comments_controller_test.rb rename to guides/code/getting_started/test/functional/comments_controller_test.rb diff --git a/railties/guides/code/getting_started/test/functional/home_controller_test.rb b/guides/code/getting_started/test/functional/home_controller_test.rb similarity index 100% rename from railties/guides/code/getting_started/test/functional/home_controller_test.rb rename to guides/code/getting_started/test/functional/home_controller_test.rb diff --git a/railties/guides/code/getting_started/test/functional/posts_controller_test.rb b/guides/code/getting_started/test/functional/posts_controller_test.rb similarity index 100% rename from railties/guides/code/getting_started/test/functional/posts_controller_test.rb rename to guides/code/getting_started/test/functional/posts_controller_test.rb diff --git a/railties/guides/code/getting_started/test/integration/.gitkeep b/guides/code/getting_started/test/integration/.gitkeep similarity index 100% rename from railties/guides/code/getting_started/test/integration/.gitkeep rename to guides/code/getting_started/test/integration/.gitkeep diff --git a/railties/guides/code/getting_started/test/performance/browsing_test.rb b/guides/code/getting_started/test/performance/browsing_test.rb similarity index 100% rename from railties/guides/code/getting_started/test/performance/browsing_test.rb rename to guides/code/getting_started/test/performance/browsing_test.rb diff --git a/railties/guides/code/getting_started/test/test_helper.rb b/guides/code/getting_started/test/test_helper.rb similarity index 100% rename from railties/guides/code/getting_started/test/test_helper.rb rename to guides/code/getting_started/test/test_helper.rb diff --git a/railties/guides/code/getting_started/test/unit/.gitkeep b/guides/code/getting_started/test/unit/.gitkeep similarity index 100% rename from railties/guides/code/getting_started/test/unit/.gitkeep rename to guides/code/getting_started/test/unit/.gitkeep diff --git a/railties/guides/code/getting_started/test/unit/comment_test.rb b/guides/code/getting_started/test/unit/comment_test.rb similarity index 100% rename from railties/guides/code/getting_started/test/unit/comment_test.rb rename to guides/code/getting_started/test/unit/comment_test.rb diff --git a/railties/guides/code/getting_started/test/unit/helpers/comments_helper_test.rb b/guides/code/getting_started/test/unit/helpers/comments_helper_test.rb similarity index 100% rename from railties/guides/code/getting_started/test/unit/helpers/comments_helper_test.rb rename to guides/code/getting_started/test/unit/helpers/comments_helper_test.rb diff --git a/railties/guides/code/getting_started/test/unit/helpers/home_helper_test.rb b/guides/code/getting_started/test/unit/helpers/home_helper_test.rb similarity index 100% rename from railties/guides/code/getting_started/test/unit/helpers/home_helper_test.rb rename to guides/code/getting_started/test/unit/helpers/home_helper_test.rb diff --git a/railties/guides/code/getting_started/test/unit/helpers/posts_helper_test.rb b/guides/code/getting_started/test/unit/helpers/posts_helper_test.rb similarity index 100% rename from railties/guides/code/getting_started/test/unit/helpers/posts_helper_test.rb rename to guides/code/getting_started/test/unit/helpers/posts_helper_test.rb diff --git a/railties/guides/code/getting_started/test/unit/post_test.rb b/guides/code/getting_started/test/unit/post_test.rb similarity index 100% rename from railties/guides/code/getting_started/test/unit/post_test.rb rename to guides/code/getting_started/test/unit/post_test.rb diff --git a/railties/guides/code/getting_started/test/unit/tag_test.rb b/guides/code/getting_started/test/unit/tag_test.rb similarity index 100% rename from railties/guides/code/getting_started/test/unit/tag_test.rb rename to guides/code/getting_started/test/unit/tag_test.rb diff --git a/railties/guides/code/getting_started/vendor/assets/stylesheets/.gitkeep b/guides/code/getting_started/vendor/assets/stylesheets/.gitkeep similarity index 100% rename from railties/guides/code/getting_started/vendor/assets/stylesheets/.gitkeep rename to guides/code/getting_started/vendor/assets/stylesheets/.gitkeep diff --git a/railties/guides/code/getting_started/vendor/plugins/.gitkeep b/guides/code/getting_started/vendor/plugins/.gitkeep similarity index 100% rename from railties/guides/code/getting_started/vendor/plugins/.gitkeep rename to guides/code/getting_started/vendor/plugins/.gitkeep diff --git a/railties/guides/rails_guides.rb b/guides/rails_guides.rb similarity index 90% rename from railties/guides/rails_guides.rb rename to guides/rails_guides.rb index feb5fe39373ef..e662ad2ed9d4d 100644 --- a/railties/guides/rails_guides.rb +++ b/guides/rails_guides.rb @@ -13,8 +13,8 @@ def bundler? begin # Guides generation in the Rails repo. - as_lib = File.join(pwd, "../../activesupport/lib") - ap_lib = File.join(pwd, "../../actionpack/lib") + as_lib = File.join(pwd, "../activesupport/lib") + ap_lib = File.join(pwd, "../actionpack/lib") $:.unshift as_lib if File.directory?(as_lib) $:.unshift ap_lib if File.directory?(ap_lib) diff --git a/railties/guides/rails_guides/generator.rb b/guides/rails_guides/generator.rb similarity index 100% rename from railties/guides/rails_guides/generator.rb rename to guides/rails_guides/generator.rb diff --git a/railties/guides/rails_guides/helpers.rb b/guides/rails_guides/helpers.rb similarity index 100% rename from railties/guides/rails_guides/helpers.rb rename to guides/rails_guides/helpers.rb diff --git a/railties/guides/rails_guides/indexer.rb b/guides/rails_guides/indexer.rb similarity index 100% rename from railties/guides/rails_guides/indexer.rb rename to guides/rails_guides/indexer.rb diff --git a/railties/guides/rails_guides/levenshtein.rb b/guides/rails_guides/levenshtein.rb similarity index 100% rename from railties/guides/rails_guides/levenshtein.rb rename to guides/rails_guides/levenshtein.rb diff --git a/railties/guides/rails_guides/textile_extensions.rb b/guides/rails_guides/textile_extensions.rb similarity index 100% rename from railties/guides/rails_guides/textile_extensions.rb rename to guides/rails_guides/textile_extensions.rb diff --git a/railties/guides/source/2_2_release_notes.textile b/guides/source/2_2_release_notes.textile similarity index 100% rename from railties/guides/source/2_2_release_notes.textile rename to guides/source/2_2_release_notes.textile diff --git a/railties/guides/source/2_3_release_notes.textile b/guides/source/2_3_release_notes.textile similarity index 100% rename from railties/guides/source/2_3_release_notes.textile rename to guides/source/2_3_release_notes.textile diff --git a/railties/guides/source/3_0_release_notes.textile b/guides/source/3_0_release_notes.textile similarity index 100% rename from railties/guides/source/3_0_release_notes.textile rename to guides/source/3_0_release_notes.textile diff --git a/railties/guides/source/3_1_release_notes.textile b/guides/source/3_1_release_notes.textile similarity index 100% rename from railties/guides/source/3_1_release_notes.textile rename to guides/source/3_1_release_notes.textile diff --git a/railties/guides/source/3_2_release_notes.textile b/guides/source/3_2_release_notes.textile similarity index 100% rename from railties/guides/source/3_2_release_notes.textile rename to guides/source/3_2_release_notes.textile diff --git a/railties/guides/source/_license.html.erb b/guides/source/_license.html.erb similarity index 100% rename from railties/guides/source/_license.html.erb rename to guides/source/_license.html.erb diff --git a/railties/guides/source/_welcome.html.erb b/guides/source/_welcome.html.erb similarity index 100% rename from railties/guides/source/_welcome.html.erb rename to guides/source/_welcome.html.erb diff --git a/railties/guides/source/action_controller_overview.textile b/guides/source/action_controller_overview.textile similarity index 100% rename from railties/guides/source/action_controller_overview.textile rename to guides/source/action_controller_overview.textile diff --git a/railties/guides/source/action_mailer_basics.textile b/guides/source/action_mailer_basics.textile similarity index 100% rename from railties/guides/source/action_mailer_basics.textile rename to guides/source/action_mailer_basics.textile diff --git a/railties/guides/source/action_view_overview.textile b/guides/source/action_view_overview.textile similarity index 100% rename from railties/guides/source/action_view_overview.textile rename to guides/source/action_view_overview.textile diff --git a/railties/guides/source/active_model_basics.textile b/guides/source/active_model_basics.textile similarity index 100% rename from railties/guides/source/active_model_basics.textile rename to guides/source/active_model_basics.textile diff --git a/railties/guides/source/active_record_basics.textile b/guides/source/active_record_basics.textile similarity index 100% rename from railties/guides/source/active_record_basics.textile rename to guides/source/active_record_basics.textile diff --git a/railties/guides/source/active_record_querying.textile b/guides/source/active_record_querying.textile similarity index 100% rename from railties/guides/source/active_record_querying.textile rename to guides/source/active_record_querying.textile diff --git a/railties/guides/source/active_record_validations_callbacks.textile b/guides/source/active_record_validations_callbacks.textile similarity index 100% rename from railties/guides/source/active_record_validations_callbacks.textile rename to guides/source/active_record_validations_callbacks.textile diff --git a/railties/guides/source/active_support_core_extensions.textile b/guides/source/active_support_core_extensions.textile similarity index 100% rename from railties/guides/source/active_support_core_extensions.textile rename to guides/source/active_support_core_extensions.textile diff --git a/railties/guides/source/active_support_instrumentation.textile b/guides/source/active_support_instrumentation.textile similarity index 100% rename from railties/guides/source/active_support_instrumentation.textile rename to guides/source/active_support_instrumentation.textile diff --git a/railties/guides/source/ajax_on_rails.textile b/guides/source/ajax_on_rails.textile similarity index 100% rename from railties/guides/source/ajax_on_rails.textile rename to guides/source/ajax_on_rails.textile diff --git a/railties/guides/source/api_documentation_guidelines.textile b/guides/source/api_documentation_guidelines.textile similarity index 100% rename from railties/guides/source/api_documentation_guidelines.textile rename to guides/source/api_documentation_guidelines.textile diff --git a/railties/guides/source/asset_pipeline.textile b/guides/source/asset_pipeline.textile similarity index 100% rename from railties/guides/source/asset_pipeline.textile rename to guides/source/asset_pipeline.textile diff --git a/railties/guides/source/association_basics.textile b/guides/source/association_basics.textile similarity index 100% rename from railties/guides/source/association_basics.textile rename to guides/source/association_basics.textile diff --git a/railties/guides/source/caching_with_rails.textile b/guides/source/caching_with_rails.textile similarity index 100% rename from railties/guides/source/caching_with_rails.textile rename to guides/source/caching_with_rails.textile diff --git a/railties/guides/source/command_line.textile b/guides/source/command_line.textile similarity index 100% rename from railties/guides/source/command_line.textile rename to guides/source/command_line.textile diff --git a/railties/guides/source/configuring.textile b/guides/source/configuring.textile similarity index 100% rename from railties/guides/source/configuring.textile rename to guides/source/configuring.textile diff --git a/railties/guides/source/contributing_to_ruby_on_rails.textile b/guides/source/contributing_to_ruby_on_rails.textile similarity index 100% rename from railties/guides/source/contributing_to_ruby_on_rails.textile rename to guides/source/contributing_to_ruby_on_rails.textile diff --git a/railties/guides/source/credits.html.erb b/guides/source/credits.html.erb similarity index 100% rename from railties/guides/source/credits.html.erb rename to guides/source/credits.html.erb diff --git a/railties/guides/source/debugging_rails_applications.textile b/guides/source/debugging_rails_applications.textile similarity index 100% rename from railties/guides/source/debugging_rails_applications.textile rename to guides/source/debugging_rails_applications.textile diff --git a/railties/guides/source/documents.yaml b/guides/source/documents.yaml similarity index 100% rename from railties/guides/source/documents.yaml rename to guides/source/documents.yaml diff --git a/railties/guides/source/engines.textile b/guides/source/engines.textile similarity index 100% rename from railties/guides/source/engines.textile rename to guides/source/engines.textile diff --git a/railties/guides/source/form_helpers.textile b/guides/source/form_helpers.textile similarity index 100% rename from railties/guides/source/form_helpers.textile rename to guides/source/form_helpers.textile diff --git a/railties/guides/source/generators.textile b/guides/source/generators.textile similarity index 100% rename from railties/guides/source/generators.textile rename to guides/source/generators.textile diff --git a/railties/guides/source/getting_started.textile b/guides/source/getting_started.textile similarity index 100% rename from railties/guides/source/getting_started.textile rename to guides/source/getting_started.textile diff --git a/railties/guides/source/i18n.textile b/guides/source/i18n.textile similarity index 100% rename from railties/guides/source/i18n.textile rename to guides/source/i18n.textile diff --git a/railties/guides/source/index.html.erb b/guides/source/index.html.erb similarity index 100% rename from railties/guides/source/index.html.erb rename to guides/source/index.html.erb diff --git a/railties/guides/source/initialization.textile b/guides/source/initialization.textile similarity index 100% rename from railties/guides/source/initialization.textile rename to guides/source/initialization.textile diff --git a/railties/guides/source/kindle/KINDLE.md b/guides/source/kindle/KINDLE.md similarity index 100% rename from railties/guides/source/kindle/KINDLE.md rename to guides/source/kindle/KINDLE.md diff --git a/railties/guides/source/kindle/copyright.html.erb b/guides/source/kindle/copyright.html.erb similarity index 100% rename from railties/guides/source/kindle/copyright.html.erb rename to guides/source/kindle/copyright.html.erb diff --git a/railties/guides/source/kindle/layout.html.erb b/guides/source/kindle/layout.html.erb similarity index 100% rename from railties/guides/source/kindle/layout.html.erb rename to guides/source/kindle/layout.html.erb diff --git a/railties/guides/source/kindle/rails_guides.opf.erb b/guides/source/kindle/rails_guides.opf.erb similarity index 100% rename from railties/guides/source/kindle/rails_guides.opf.erb rename to guides/source/kindle/rails_guides.opf.erb diff --git a/railties/guides/source/kindle/toc.html.erb b/guides/source/kindle/toc.html.erb similarity index 100% rename from railties/guides/source/kindle/toc.html.erb rename to guides/source/kindle/toc.html.erb diff --git a/railties/guides/source/kindle/toc.ncx.erb b/guides/source/kindle/toc.ncx.erb similarity index 100% rename from railties/guides/source/kindle/toc.ncx.erb rename to guides/source/kindle/toc.ncx.erb diff --git a/railties/guides/source/kindle/welcome.html.erb b/guides/source/kindle/welcome.html.erb similarity index 100% rename from railties/guides/source/kindle/welcome.html.erb rename to guides/source/kindle/welcome.html.erb diff --git a/railties/guides/source/layout.html.erb b/guides/source/layout.html.erb similarity index 100% rename from railties/guides/source/layout.html.erb rename to guides/source/layout.html.erb diff --git a/railties/guides/source/layouts_and_rendering.textile b/guides/source/layouts_and_rendering.textile similarity index 100% rename from railties/guides/source/layouts_and_rendering.textile rename to guides/source/layouts_and_rendering.textile diff --git a/railties/guides/source/migrations.textile b/guides/source/migrations.textile similarity index 100% rename from railties/guides/source/migrations.textile rename to guides/source/migrations.textile diff --git a/railties/guides/source/nested_model_forms.textile b/guides/source/nested_model_forms.textile similarity index 100% rename from railties/guides/source/nested_model_forms.textile rename to guides/source/nested_model_forms.textile diff --git a/railties/guides/source/performance_testing.textile b/guides/source/performance_testing.textile similarity index 100% rename from railties/guides/source/performance_testing.textile rename to guides/source/performance_testing.textile diff --git a/railties/guides/source/plugins.textile b/guides/source/plugins.textile similarity index 100% rename from railties/guides/source/plugins.textile rename to guides/source/plugins.textile diff --git a/railties/guides/source/rails_application_templates.textile b/guides/source/rails_application_templates.textile similarity index 100% rename from railties/guides/source/rails_application_templates.textile rename to guides/source/rails_application_templates.textile diff --git a/railties/guides/source/rails_on_rack.textile b/guides/source/rails_on_rack.textile similarity index 100% rename from railties/guides/source/rails_on_rack.textile rename to guides/source/rails_on_rack.textile diff --git a/railties/guides/source/routing.textile b/guides/source/routing.textile similarity index 100% rename from railties/guides/source/routing.textile rename to guides/source/routing.textile diff --git a/railties/guides/source/ruby_on_rails_guides_guidelines.textile b/guides/source/ruby_on_rails_guides_guidelines.textile similarity index 100% rename from railties/guides/source/ruby_on_rails_guides_guidelines.textile rename to guides/source/ruby_on_rails_guides_guidelines.textile diff --git a/railties/guides/source/security.textile b/guides/source/security.textile similarity index 100% rename from railties/guides/source/security.textile rename to guides/source/security.textile diff --git a/railties/guides/source/testing.textile b/guides/source/testing.textile similarity index 100% rename from railties/guides/source/testing.textile rename to guides/source/testing.textile diff --git a/railties/guides/source/upgrading_ruby_on_rails.textile b/guides/source/upgrading_ruby_on_rails.textile similarity index 100% rename from railties/guides/source/upgrading_ruby_on_rails.textile rename to guides/source/upgrading_ruby_on_rails.textile diff --git a/railties/guides/w3c_validator.rb b/guides/w3c_validator.rb similarity index 100% rename from railties/guides/w3c_validator.rb rename to guides/w3c_validator.rb diff --git a/rails.gemspec b/rails.gemspec index 2c47a88d7c4be..8314036ad1f72 100644 --- a/rails.gemspec +++ b/rails.gemspec @@ -10,12 +10,13 @@ Gem::Specification.new do |s| s.required_ruby_version = '>= 1.9.3' s.required_rubygems_version = ">= 1.8.11" - s.author = 'David Heinemeier Hansson' - s.email = 'david@loudthinking.com' - s.homepage = 'http://www.rubyonrails.org' + s.author = 'David Heinemeier Hansson' + s.email = 'david@loudthinking.com' + s.homepage = 'http://www.rubyonrails.org' - s.bindir = 'bin' - s.executables = [] + s.bindir = 'bin' + s.executables = [] + s.files = Dir['guides/**/*'] s.add_dependency('activesupport', version) s.add_dependency('actionpack', version) diff --git a/railties/Rakefile b/railties/Rakefile index 25e515e016d2f..c4a91a1d36294 100755 --- a/railties/Rakefile +++ b/railties/Rakefile @@ -44,18 +44,6 @@ task :update_readme do cp "./README.rdoc", readme end -desc 'Generate guides (for authors), use ONLY=foo to process just "foo.textile"' -task :generate_guides do - ENV["WARN_BROKEN_LINKS"] = "1" # authors can't disable this - ruby "guides/rails_guides.rb" -end - -# Validate guides ------------------------------------------------------------------------- -desc 'Validate guides, use ONLY=foo to process just "foo.html"' -task :validate_guides do - ruby "guides/w3c_validator.rb" -end - # Generate GEM ---------------------------------------------------------------------------- spec = eval(File.read('railties.gemspec')) diff --git a/railties/railties.gemspec b/railties/railties.gemspec index 82655ad394316..44be73ad7a006 100644 --- a/railties/railties.gemspec +++ b/railties/railties.gemspec @@ -12,7 +12,7 @@ Gem::Specification.new do |s| s.email = 'david@loudthinking.com' s.homepage = 'http://www.rubyonrails.org' - s.files = Dir['CHANGELOG.md', 'README.rdoc', 'bin/**/*', 'guides/**/*', 'lib/**/{*,.[a-z]*}'] + s.files = Dir['CHANGELOG.md', 'README.rdoc', 'bin/**/*', 'lib/**/{*,.[a-z]*}'] s.require_path = 'lib' s.bindir = 'bin'