From c88e3627cfdf1ab2c7f1a558f3010f60bf7120ba Mon Sep 17 00:00:00 2001 From: dave Date: Sun, 25 Jan 2004 20:19:16 +0000 Subject: [PATCH] Add one_page_html git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- MANIFEST | 1 + .../generators/template/html/one_page_html.rb | 116 ++++++++++++++++++ 2 files changed, 117 insertions(+) create mode 100644 lib/rdoc/generators/template/html/one_page_html.rb diff --git a/MANIFEST b/MANIFEST index 8fb1d5aac2..330aeabd17 100644 --- a/MANIFEST +++ b/MANIFEST @@ -236,6 +236,7 @@ lib/rdoc/generators/template/html/hefss.rb lib/rdoc/generators/template/html/html.rb lib/rdoc/generators/template/html/kilmer.rb lib/rdoc/generators/template/html/old_html.rb +lib/rdoc/generators/template/html/one_page_html.rb lib/rdoc/generators/template/xml/rdf.rb lib/rdoc/generators/template/xml/xml.rb lib/rdoc/generators/xml_generator.rb diff --git a/lib/rdoc/generators/template/html/one_page_html.rb b/lib/rdoc/generators/template/html/one_page_html.rb new file mode 100644 index 0000000000..ca69908c97 --- /dev/null +++ b/lib/rdoc/generators/template/html/one_page_html.rb @@ -0,0 +1,116 @@ +module RDoc +module Page +###################################################################### +# +# The following is used for the -1 option +# + +CONTENTS_XML = %{ +IF:description +%description% +ENDIF:description + +IF:requires +

Requires:

+ +ENDIF:requires + +IF:attributes +

Attributes

+ +START:attributes + +END:attributes +
%name%%rw%%a_desc%
+ENDIF:attributes + +IF:includes +

Includes

+ +ENDIF:includes + +IF:method_list +

Methods

+START:method_list +IF:methods +START:methods +

%type% %category% method: %name%%params%

+ +IF:m_desc +%m_desc% +ENDIF:m_desc + +IF:sourcecode +
+%sourcecode%
+
+ENDIF:sourcecode +END:methods +ENDIF:methods +END:method_list +ENDIF:method_list +} + +######################################################################## + +ONE_PAGE = %{ + + + + %title% + + + +START:files +

File: %short_name%

+ + + +
Path:%full_path%
Modified:%dtm_modified%
+} + CONTENTS_XML + %{ +END:files + +IF:classes +

Classes

+START:classes +IF:parent +

%classmod% %full_name% < HREF:par_url:parent:

+ENDIF:parent +IFNOT:parent +

%classmod% %full_name%

+ENDIF:parent + +IF:infiles +(in files +START:infiles +HREF:full_path_url:full_path: +END:infiles +) +ENDIF:infiles +} + CONTENTS_XML + %{ +END:classes +ENDIF:classes + + +} + +end +end