Mercurial > projects > dil
diff trunk/src/docgen/page/plaintextwriter.d @ 470:e48a011e687a
Initial plain text output support.
author | Jari-Matti M?kel? <jmjm@iki.fi> |
---|---|
date | Wed, 31 Oct 2007 23:03:56 +0200 |
parents | db7e27b5c180 |
children |
line wrap: on
line diff
--- a/trunk/src/docgen/page/plaintextwriter.d Wed Oct 31 21:42:33 2007 +0200 +++ b/trunk/src/docgen/page/plaintextwriter.d Wed Oct 31 23:03:56 2007 +0200 @@ -8,51 +8,36 @@ import docgen.misc.textutils; import tango.io.FileConduit : FileConduit; -//TODO: this is mostly broken now - /** * Writes a plain text document skeleton. */ class PlainTextWriter : AbstractPageWriter!("plaintext") { this(PageWriterFactory factory, OutputStream[] outputs) { - super(factory, outputs); + super(factory); } - void generateTOC(Module[] modules) { - // TODO + override void generateTOC(Module[] modules) { print.format(getTemplate("toc")); } - void generateModuleSection() { - // TODO + override void generateModuleSection(Module[] modules) { print.format(getTemplate("modules")); } - void generateListingSection() { - // TODO + override void generateListingSection(Module[] modules) { print.format(getTemplate("listings")); } void generateDepGraphSection() { - // TODO print.format(getTemplate("dependencies")); } - void generateIndexSection() { } - - void generateLastPage() { } - void generateFirstPage() { - print( - plainTextHeading(factory.options.templates.title ~ " Reference Manual") ~ - factory.options.templates.versionString ~ \n ~ - "Generated by " ~ docgen_version ~ \n ~ - timeNow() ~ \n \n \n ~ - plainTextHorizLine() ~ \n \n ~ - plainTextHeading("Table of Contents") ~ \n ~ - plainTextHeading("Module documentation") ~ \n ~ - plainTextHeading("File listings") ~ \n ~ - plainTextHeading("Dependency diagram") ~ \n + print.format(getTemplate("firstpage"), + plainTextHeading(factory.options.templates.title ~ " Reference Manual"), + factory.options.templates.versionString, + docgen_version, + timeNow() ); }