class Crystal::Doc::Generator
inherits Reference
¶
Constants¶
FLAG_COLORS = {"BUG" => "red", "DEPRECATED" => "red", "EXPERIMENTAL" => "lime", "FIXME" => "yellow", "NOTE" => "purple", "OPTIMIZE" => "green", "TODO" => "orange"}
¶
{"BUG" => "red", "DEPRECATED" => "red", "EXPERIMENTAL" => "lime", "FIXME" => "yellow", "NOTE" => "purple", "OPTIMIZE" => "green", "TODO" => "orange"}
Adding a flag and associated css class will add support in parser
FLAGS = FLAG_COLORS.keys
¶
FLAG_COLORS.keys
Class methods¶
.new(program : Program, included_dirs : Array(String), output_dir : String, output_format : String, sitemap_base_url : String?, sitemap_priority : String, sitemap_changefreq : String, project_info : ProjectInfo)
¶
(program : Program, included_dirs : Array(String), output_dir : String, output_format : String, sitemap_base_url : String?, sitemap_priority : String, sitemap_changefreq : String, project_info : ProjectInfo)
Methods¶
#generate_flags(string)
¶
(string)
Replaces flag keywords with html equivalent
Assumes that flag keywords are at the beginning of respective p
element
#isolate_flag_lines(string)
¶
(string)
Adds extra line break to flag keyword lines
Guarantees that line is within its own paragraph element when parsed