From 07c6b7a6ad70fd021516d413caa5c3ac914933ac Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Wed, 16 Jun 2010 03:45:18 +0200 Subject: migrates the Jamis template to RDoc 2.x, the root Rakefile requires RDoc 2.2 To understand the changes in horo.rb check rdoc/template.rb in a RDoc 2.x --- doc/template/horo.rb | 259 ++++++++++++++++++++++++++------------------------- 1 file changed, 132 insertions(+), 127 deletions(-) (limited to 'doc/template/horo.rb') diff --git a/doc/template/horo.rb b/doc/template/horo.rb index e028422a2e..b38fa28cde 100644 --- a/doc/template/horo.rb +++ b/doc/template/horo.rb @@ -11,8 +11,12 @@ if defined?(RDoc::Diagram) end end +require 'rdoc/generator/html' + module RDoc -module Page +module Generator +class HTML +class HORO FONTS = "\"Bitstream Vera Sans\", Verdana, Arial, Helvetica, sans-serif" @@ -28,7 +32,7 @@ a:hover { } body, td, p { - font-family: %fonts%; + font-family: <%= values['fonts'] %>; background: #FFF; color: #000; margin: 0px; @@ -206,7 +210,7 @@ dd { } CSS -XHTML_PREAMBLE = %{ +XHTML_PREAMBLE = %{"?> @@ -221,9 +225,9 @@ XHTML_FRAMESET_PREAMBLE = %{ HEADER = XHTML_PREAMBLE + < - %title% - - + <%= values['title'] %> + +