Rename README to README.rdoc.

This commit is contained in:
Nathan Weizenbaum 2008-03-13 01:07:07 -07:00
parent 01f5e30174
commit 21451ee6bd
6 changed files with 10 additions and 10 deletions

View File

View File

@ -70,7 +70,7 @@ END
#' #'
readmes = FileList.new('*') do |list| readmes = FileList.new('*') do |list|
list.exclude(/[a-z]/) list.exclude(/(^|[^.a-z])[a-z]+/)
list.exclude('TODO') list.exclude('TODO')
end.to_a end.to_a
spec.executables = ['haml', 'html2haml', 'sass', 'css2sass'] spec.executables = ['haml', 'html2haml', 'sass', 'css2sass']
@ -81,7 +81,7 @@ END
spec.extra_rdoc_files = readmes spec.extra_rdoc_files = readmes
spec.rdoc_options += [ spec.rdoc_options += [
'--title', 'Haml', '--title', 'Haml',
'--main', 'README', '--main', 'README.rdoc',
'--exclude', 'lib/haml/buffer.rb', '--exclude', 'lib/haml/buffer.rb',
'--line-numbers', '--line-numbers',
'--inline-source' '--inline-source'
@ -116,7 +116,7 @@ END
rdoc_task = Proc.new do |rdoc| rdoc_task = Proc.new do |rdoc|
rdoc.title = 'Haml/Sass' rdoc.title = 'Haml/Sass'
rdoc.options << '--line-numbers' << '--inline-source' rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README') rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb') rdoc.rdoc_files.include('lib/**/*.rb')
rdoc.rdoc_files.exclude('lib/haml/buffer.rb') rdoc.rdoc_files.exclude('lib/haml/buffer.rb')
rdoc.rdoc_files.exclude('lib/haml/util.rb') rdoc.rdoc_files.exclude('lib/haml/util.rb')

View File

@ -46,11 +46,11 @@ module Haml
# Creates a new instace of Haml::Engine that will compile the given # Creates a new instace of Haml::Engine that will compile the given
# template string when <tt>render</tt> is called. # template string when <tt>render</tt> is called.
# See README for available options. # See README.rdoc for available options.
# #
#-- #--
# When adding options, remember to add information about them # When adding options, remember to add information about them
# to README! # to README.rdoc!
#++ #++
# #
def initialize(template, options = {}) def initialize(template, options = {})

View File

@ -5,12 +5,12 @@ module Haml
class << self class << self
@@options = {} @@options = {}
# Gets various options for Haml. See README for details. # Gets various options for Haml. See README.rdoc for details.
def options def options
@@options @@options
end end
# Sets various options for Haml. See README for details. # Sets various options for Haml. See README.rdoc for details.
def options=(value) def options=(value)
@@options = value @@options = value
end end

View File

@ -56,14 +56,14 @@ module Sass
# Creates a new instace of Sass::Engine that will compile the given # Creates a new instace of Sass::Engine that will compile the given
# template string when <tt>render</tt> is called. # template string when <tt>render</tt> is called.
# See README for available options. # See README.rdoc for available options.
# #
#-- #--
# #
# TODO: Add current options to REFRENCE. Remember :filename! # TODO: Add current options to REFRENCE. Remember :filename!
# #
# When adding options, remember to add information about them # When adding options, remember to add information about them
# to README! # to README.rdoc!
#++ #++
# #
def initialize(template, options={}) def initialize(template, options={})

View File

@ -21,7 +21,7 @@ module Sass
@@checked_for_updates @@checked_for_updates
end end
# Gets various options for Sass. See README for details. # Gets various options for Sass. See README.rdoc for details.
#-- #--
# TODO: *DOCUMENT OPTIONS* # TODO: *DOCUMENT OPTIONS*
#++ #++