public
Description: YAML RDoc Generator and Rails Website for RDoc
Homepage: http://rannotate.rubyforge.org/
Clone URL: git://github.com/conorh/rannotate.git
rannotate / README_RANNOTATE
100644 56 lines (37 sloc) 2.192 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
== License ==
 
Rannotate - a program for adding user submitted notes to rdoc generated documentation
Copyright (C) 2005 Conor Hunt
 
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
== Using Rannotate ==
 
Step 1: Put the yaml_generator.rb file from the rdoc_extension directory into your
rdoc generator directory which is:
[RUBY_DIR]\lib\ruby\1.8\rdoc\generators\
 
Step 3: Setup config\database.yml for your DB and run 'rake migrate'
 
Step 4: Generate some rdoc for your application using:
rdoc --fmt=yaml --opname=appname-0.2.3 directory
 
NOTE: The format of the opname parameter MUST be name-[major]-[minor]-[release], or the generation will fail
 
Step 5: Create an admin login account
ruby script\console
User.create({:login => 'admin', :password => .., :password_confirmation => ..}).save
 
Step 6: Login to the admin section
Admin URL - http://server:3000/admin/
 
Step 7: Go to the Upload Documentation section and select the appname-0.2.3.out file that was generated at step 4.
 
Step 8: Open up the URL of the documentation http://server:3000/ and there it is!
 
== Generating documentation for rails or ruby ==
 
There are several tasks in the Rannotate Rakefile to help generate the documentation for rails or ruby.
 
rake doc:api:rails will generate the docs for the current version of rails
rake doc:api:ruby will generate the docs for ruby
 
These tasks will place the docs in the /doc directory
 
== Troubleshooting ==
 
For some reason under rails 1.0 there are issues with importing the documentation using YAML. Please
use later versions of rails.