U:RDoc::AnyMethod[iI" rdoc:EFI"Gem::Server#rdoc;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [ I"OCan be used for quick navigation to the rdoc documentation. You can then ;TI"Idefine a search shortcut for your browser. E.g. in Firefox connect ;TI"O'shortcut:rdoc' to http://localhost:8808/rdoc?q=%s template. Then you can ;TI"Mdirectly open the ActionPack documentation by typing 'rdoc actionp'. If ;TI"Othere are multiple hits for the search term, they are presented as a list ;TI"with links.;To:RDoc::Markup::BlankLineo; ; [I"3Search algorithm aims for an intuitive search:;To:RDoc::Markup::List: @type: NUMBER: @items[o:RDoc::Markup::ListItem: @label0; [o; ; [I"Efirst try to find the gems and documentation folders which name ;TI" starts with the search term;To;;0; [o; ; [I"7search for entries, that *contain* the search term;To;;0; [o; ; [I"show all the gems;T@o; ; [I"LIf there is only one search hit, user is immediately redirected to the ;TI"Ldocumentation for the particular gem, otherwise a list with results is ;TI" shown.;T@S:RDoc::Markup::Heading: leveli: textI";Additional trick - install documentation for Ruby core;T@o; ; [I"PNote: please adjust paths accordingly use for example 'locate yaml.rb' and ;TI"K'gem environment' to identify directories, that are specific for your ;TI"local installation;T@o; ; ;;[o;;0; [o; ; [I"install Ruby sources;To:RDoc::Markup::Verbatim; [I"cd /usr/src ;TI"sudo apt-get source ruby ;T: @format0o;;0; [o; ; [I"generate documentation;To;; [I"4rdoc -o /usr/lib/ruby/gems/1.8/doc/core/rdoc \ ;TI"* /usr/lib/ruby/1.8 ruby1.8-1.8.7.72 ;T;0o; ; [I"DBy typing 'rdoc core' you can now access the core documentation;T: @fileI"lib/rubygems/server.rb;T:0@omit_headings_from_table_of_contents_below000[I"(req, res);T@LFI" Server;TcRDoc::NormalClass00